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

:root {
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --bg-dark: #0a0a0a;
    --text: #111111;
    --text-secondary: #6b7280;
    --accent: #007AFF;
    --accent-dark: #0055cc;
    --border: #e8eaed;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-xl: 0 32px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 32px 32px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.lang-select select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0 16px 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.lang-select select:hover {
    color: var(--text);
}

.lang-select select:focus {
    outline: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
    background: var(--text);
    color: var(--bg) !important;
    border-radius: 100px;
}

.btn-sm:hover {
    background: #333;
    color: var(--bg) !important;
}

.btn-primary {
    background: var(--accent);
    color: white;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
    border-radius: 16px;
}

.appstore-badge {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.appstore-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.appstore-badge img {
    height: 54px;
    border-radius: 13px;
    display: block;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(88, 86, 214, 0.08));
    border: 1px solid rgba(0, 122, 255, 0.12);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.75rem, 6.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.hero-actions {
    margin-bottom: 72px;
}

/* iPhone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.iphone-mockup {
    position: relative;
    width: 300px;
    padding: 14px;
    background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1e 100%);
    border-radius: 48px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.18),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Side button */
.iphone-mockup::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 120px;
    width: 3px;
    height: 44px;
    background: linear-gradient(180deg, #3a3a3e, #2a2a2e);
    border-radius: 0 2px 2px 0;
}

.iphone-screenshot {
    width: 100%;
    display: block;
    border-radius: 34px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features */
.features {
    padding: 120px 0;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--icon-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--icon-color) 10%, transparent);
    color: var(--icon-color);
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* How it works */
.how-it-works {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.67% + 28px);
    right: calc(16.67% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #AF52DE, var(--accent));
    opacity: 0.2;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5856D6);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Benefits */
.benefits {
    padding: 120px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.benefits-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.benefit-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.benefit-card.benefit-hero {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.06), rgba(0, 122, 255, 0.04));
    border-color: rgba(52, 199, 89, 0.15);
}

.benefit-card.benefit-hero .benefit-icon-wrap {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
}

.benefit-card.benefit-hero h3 {
    font-size: 1.1875rem;
}

.benefit-card.benefit-hero p {
    font-size: 0.9375rem;
}

.benefit-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: color-mix(in srgb, var(--icon-color) 10%, transparent);
    color: var(--icon-color);
    flex-shrink: 0;
}

.benefit-card.benefit-wide .benefit-icon-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
}

.benefit-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.benefit-card.benefit-wide h3 {
    font-size: 1.0625rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.benefits-quote {
    text-align: center;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.benefits-quote p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .benefits-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .benefits-bento {
        grid-template-columns: 1fr;
    }
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
}

.pricing-toggle-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.pricing-toggle-label.active {
    color: var(--text);
}

.pricing-save-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12), rgba(52, 199, 89, 0.06));
    color: #34C759;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 4px;
    vertical-align: middle;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 28px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Pricing */
.pricing {
    padding: 120px 0;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.pricing::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.pricing-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 24px 64px rgba(0, 122, 255, 0.1);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 32px 72px rgba(0, 122, 255, 0.15);
}

.pricing-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--accent), #5856D6);
    color: white;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text);
    padding-left: 28px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.pricing-card.featured .pricing-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-color: var(--accent);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    font-size: 0.9375rem;
    padding: 12px 24px;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--bg-alt);
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* CTA */
.cta {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.cta::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.06) 0%, rgba(88, 86, 214, 0.03) 40%, transparent 70%);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.15;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 48px 0 32px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge,
.hero h1,
.hero-sub,
.hero-actions {
    animation: fadeInUp 0.6s ease-out both;
}

.hero h1 { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.hero-visual { animation: fadeInUp 0.8s ease-out 0.4s both; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps::before {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .features,
    .how-it-works,
    .pricing,
    .cta {
        padding: 80px 0;
    }

    .pricing-card {
        padding: 36px 28px;
    }

    .feature-card {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .iphone-mockup {
        width: 260px;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
    }
}
