*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #f0f5ff;
    --ink: #0d1b3e;
    --ink-soft: #3a4a6b;
    --accent: #1a56db;
    --accent-light: #dbeafe;
    --accent-mid: #3b82f6;
    --blue-dark: #1e3a8a;
    --card-bg: #fafcff;
    --border: rgba(13, 27, 62, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: rgba(240, 245, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: "Fraunces", serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

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

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

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

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    font-weight: 500 !important;
    transition:
        background 0.2s,
        transform 0.15s !important;
}

.nav-cta:hover {
    background: var(--blue-dark) !important;
    transform: translateY(-1px);
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem 2.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

h1 {
    font-family: "Fraunces", serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 440px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition:
        background 0.2s,
        transform 0.15s;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.1rem;
    transition: color 0.2s;
}

.btn-ghost:hover {
    color: var(--accent);
}

.hero-stat {
    margin-top: 2.5rem;
    display: flex;
    gap: 2rem;
}

.stat-num {
    font-family: "Fraunces", serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 0.1rem;
}

.phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(26, 86, 219, 0.18) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.phone {
    width: 260px;
    background: var(--ink);
    border-radius: 36px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 40px 80px rgba(13, 27, 62, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.phone-inner {
    background: #f0f5ff;
    border-radius: 28px;
    overflow: hidden;
    height: 520px;
    display: flex;
    flex-direction: column;
}

.phone-status {
    background: var(--ink);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-notch {
    width: 80px;
    height: 14px;
    background: var(--ink);
    border-radius: 0 0 10px 10px;
}

.app-header {
    background: var(--cream);
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.app-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.app-title {
    font-family: "Fraunces", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.streak-badge {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 100px;
}

.progress-bar-outer {
    height: 6px;
    background: rgba(13, 27, 62, 0.1);
    border-radius: 100px;
}

.progress-bar-fill {
    height: 100%;
    width: 60%;
    background: var(--accent);
    border-radius: 100px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.6rem;
    color: var(--ink-soft);
}

.card-area {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flashcard {
    background: white;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.card-lang-tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    background: var(--accent-light);
    padding: 2px 8px;
    border-radius: 100px;
}

.card-word {
    font-family: "Fraunces", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.card-phonetic {
    font-size: 0.7rem;
    color: var(--ink-soft);
    font-style: italic;
}

.card-divider {
    width: 30px;
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.card-translation {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.card-example {
    font-size: 0.68rem;
    color: var(--ink-soft);
    font-style: italic;
    line-height: 1.5;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    font-family: "DM Sans", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-again {
    background: #fee2e2;
    color: #b91c1c;
}
.btn-good {
    background: var(--accent-light);
    color: var(--accent);
}
.btn-easy {
    background: #d1fae5;
    color: #065f46;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2.5rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

h2 {
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 3.5rem;
}

h2 em {
    font-style: italic;
    color: var(--accent);
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 86, 219, 0.1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.icon-blue {
    background: var(--accent-light);
}
.icon-dark {
    background: rgba(13, 27, 62, 0.08);
}
.icon-green {
    background: #d1fae5;
}

.feature-title {
    font-family: "Fraunces", serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ink-soft);
    font-weight: 300;
}

.langs-section {
    background: var(--ink);
    color: var(--cream);
    padding: 5rem 2.5rem;
    overflow: hidden;
}

.langs-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.langs-inner h2 {
    color: var(--cream);
}
.langs-inner h2 em {
    color: #93c5fd;
}

.langs-strip {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.lang-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(240, 245, 255, 0.08);
    border: 1px solid rgba(240, 245, 255, 0.15);
    color: var(--cream);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 400;
    transition: background 0.2s;
}

.lang-pill:hover {
    background: rgba(240, 245, 255, 0.15);
}
.lang-flag {
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
}

.stars {
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: "Fraunces", serif;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.av-blue {
    background: var(--accent);
}
.av-dark {
    background: var(--blue-dark);
}
.av-mid {
    background: var(--accent-mid);
}

.author-name {
    font-size: 0.85rem;
    font-weight: 500;
}
.author-meta {
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2.5rem;
}

.cta-box {
    background: var(--ink);
    border-radius: 32px;
    padding: 5rem 4rem;
    text-align: center;
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(26, 86, 219, 0.3) 0%,
        transparent 70%
    );
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h2 {
    color: var(--cream);
    margin-bottom: 1rem;
}
.cta-box h2 em {
    color: #93c5fd;
}

.cta-sub {
    color: rgba(240, 245, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-main {
    background: var(--accent);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition:
        transform 0.15s,
        background 0.2s;
}

.btn-cta-main:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-cta-ghost {
    border: 1px solid rgba(240, 245, 255, 0.3);
    color: var(--cream);
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background 0.2s;
}

.btn-cta-ghost:hover {
    background: rgba(240, 245, 255, 0.08);
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: "Fraunces", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.footer-logo span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--ink);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--ink-soft);
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.35s;
}
.delay-4 {
    animation-delay: 0.5s;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-sub {
        margin: 0 auto 2.5rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stat {
        justify-content: center;
    }
    .phone-wrapper {
        order: -1;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    nav {
        padding: 1rem 1.5rem;
    }
    .nav-links li:not(:last-child) {
        display: none;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 3rem 2rem;
    }
}
