/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #007AFF;
    --primary-dark: #0056CC;
    --secondary: #5856D6;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--gray-600); }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.footer-logo {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(52, 199, 89, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Hero Screenshot */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 50px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        inset 0 0 0 3px #333;
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.hero-screenshot {
    display: block;
    width: 280px;
    height: auto;
    border-radius: 38px;
}

.feature-screenshot {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.iphone-mockup {
    position: relative;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
}

.iphone-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    position: relative;
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: var(--gray-50);
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 52px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.app-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.app-card.pending {
    border: 2px solid var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.card-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 100px;
    background: var(--primary);
    color: var(--white);
}

.card-status.paid {
    background: var(--success);
}

.card-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.card-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.app-tabbar {
    display: flex;
    justify-content: space-around;
    padding: 8px 0 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
    color: var(--gray-400);
}

.tab.active {
    color: var(--primary);
}

.tab svg {
    width: 20px;
    height: 20px;
}

/* Advantages Section */
.advantages {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 60px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.advantage-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.advantage-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--gray-50);
}

.features-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.tab-btn svg {
    width: 20px;
    height: 20px;
}

.features-content {
    position: relative;
}

.feature-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow);
}

.feature-panel.active {
    display: grid;
}

.feature-info h3 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.0625rem;
    color: var(--gray-700);
}

.feature-list svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-visual {
    display: flex;
    justify-content: center;
}

.mini-mockup {
    width: 260px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
}

.mockup-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.mockup-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
}

.mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    background: var(--primary);
    color: var(--white);
    border-radius: 100px;
}

.mockup-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.mockup-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.mockup-input .unit {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: center;
    min-width: 200px;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: -8px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success svg {
    margin-bottom: 24px;
}

.form-success h3 {
    margin-bottom: 8px;
    color: var(--gray-900);
}

.form-success p {
    color: var(--gray-500);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
}

.download-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.download-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.badge-large {
    font-size: 1.25rem;
    font-weight: 600;
}

.download-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Footer */
.footer {
    padding: 60px 0 24px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    
    .advantages-grid,
    .appstore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-panel {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-links,
    .nav .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .iphone-frame {
        width: 240px;
        height: 500px;
    }
    
    .advantages,
    .features,
    .contact-section,
    .faq,
    .download {
        padding: 60px 0;
    }
    
    .section-subtitle {
        margin-bottom: 40px;
    }
    
    .features-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .feature-panel {
        padding: 24px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 { font-size: 1.875rem; }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .features-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        justify-content: center;
    }
    
    .faq-question {
        padding: 16px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 16px 16px;
    }
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.legal-date {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.375rem;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.legal-section p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--gray-600);
}

.legal-section ul {
    margin: 12px 0 12px 24px;
    color: var(--gray-600);
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section a {
    color: var(--primary);
}

.legal-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
    }
}
