@font-face {
    font-family: 'ClashGrotesk';
    src: url('assets/fonts/ClashGrotesk-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashGrotesk';
    src: url('assets/fonts/ClashGrotesk-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ClashGrotesk';
    src: url('assets/fonts/ClashGrotesk-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SofiaSans';
    src: url('assets/fonts/SofiaSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SofiaSans';
    src: url('assets/fonts/SofiaSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'SofiaSans';
    src: url('assets/fonts/SofiaSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SofiaSans';
    src: url('assets/fonts/SofiaSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DoHyeon';
    src: url('assets/fonts/DoHyeon-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-deep:       #080809;
    --bg-base:       #0e0e10;
    --bg-elevated:   #141416;
    --surface:       rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --fg:            #edeef0;
    --fg-muted:      #8a8f9a;
    --fg-subtle:     #52565f;

    --accent:        #6366f1;
    --accent-light:  #818cf8;
    --accent-glow:   rgba(99, 102, 241, 0.18);
    --accent-dim:    rgba(99, 102, 241, 0.08);

    --red:           #f87171;

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:  cubic-bezier(0.4, 0, 1, 1);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    font-family: 'SofiaSans', sans-serif;
    background-color: var(--bg-deep);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'ClashGrotesk', sans-serif;
}

/* ── Header ───────────────────────────────────────────── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 9, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    flex-shrink: 0;
}

.header-text h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--fg);
    line-height: 1.2;
}

.tagline {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 400;
    font-family: 'DoHyeon', sans-serif;
    letter-spacing: 0.04em;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 6px 14px;
    margin-bottom: 28px;
}

.hero h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--fg);
}

.hero h2 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-light) 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--fg-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* ── Buttons ──────────────────────────────────────────── */
.download-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 200ms var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 8px 24px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4), 0 12px 32px rgba(99, 102, 241, 0.35);
}

.app-store-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Section shared ───────────────────────────────────── */
.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light);
    text-align: center;
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--fg);
}

.section-subtitle {
    text-align: center;
    color: var(--fg-muted);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 56px;
    line-height: 1.7;
    font-weight: 400;
}

/* ── Features ─────────────────────────────────────────── */
.features {
    padding: 96px 0;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 36px 32px;
    transition: background 200ms var(--ease-out);
}

.feature-card:hover {
    background: var(--surface-hover);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--fg-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    font-weight: 400;
}

/* ── Screenshots ──────────────────────────────────────── */
.screenshots {
    padding: 96px 0;
    background: var(--bg-deep);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

.screenshot-item:hover img {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-strong);
}

.screenshot-caption {
    font-size: 0.72rem;
    color: var(--fg-subtle);
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ── Premium ──────────────────────────────────────────── */
.premium {
    padding: 96px 0;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.premium-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.premium-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 20px;
}

.premium-description {
    color: var(--fg-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 400;
}

.premium-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.premium-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--fg);
}

.premium-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23818cf8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* ── CTA ──────────────────────────────────────────────── */
.cta {
    padding: 96px 0;
    text-align: center;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta p {
    font-size: 1rem;
    color: var(--fg-muted);
    margin-bottom: 36px;
    font-weight: 400;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-base);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

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

.footer-links a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 150ms;
}

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

footer p {
    color: var(--fg-subtle);
    font-size: 0.82rem;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .screenshot-grid .screenshot-item:last-child:nth-child(9) {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 72px 0 60px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .premium-card {
        padding: 32px 28px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h2 {
        font-size: 1.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
