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

:root {
    --color-bg: #ffffff;
    --color-surface: rgba(0, 0, 0, 0.02);
    --color-surface-strong: rgba(0, 0, 0, 0.04);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.14);
    --color-text: #111118;
    --color-text-muted: #6b6b80;
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-glow: rgba(99, 102, 241, 0.18);
    --color-accent: #7c3aed;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* #endregion */

/* #region Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 1.5rem;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
/* #endregion */

/* #region Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border-strong);
}

.btn-ghost:hover {
    background: var(--color-surface-strong);
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.22);
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}
/* #endregion */

/* #region Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 80% 60%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
/* #endregion */

/* #region Hero Video-in-Text Effect */
.hero-text-video {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
    isolation: isolate;
    background: #ffffff;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 110%;
    min-height: 110%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: contrast(1.2) brightness(0.85);
}

.hero-title {
    position: relative;
    z-index: 1;
    font-size: clamp(4.5rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #000;
    mix-blend-mode: multiply;
    padding: 0.1em 0.15em;
    -webkit-text-stroke: 0;
}

/*
 * Video-in-text technique (white bg):
 * The parent (.hero-text-video) clips overflow with white bg.
 * The video sits behind the title.
 * The title uses mix-blend-mode: multiply on the white background,
 * which makes white pixels transparent, revealing the video only
 * where the dark text is.
 */
/* #endregion */

/* #region Hero Subtitle & CTA */
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
/* #endregion */

/* #region Hero Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-hint span {
    display: block;
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-border-strong);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-hint span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 2px;
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}
/* #endregion */

/* #region Features Section */
.features {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
/* #endregion */

/* #region Feature Card (White Glassmorphism) */
.feature-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

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

.feature-card > p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
/* #endregion */

/* #region Screenshot Placeholder */
.feature-screenshot {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.screenshot-placeholder {
    background: var(--color-surface);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-sm);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
/* #endregion */

/* #region Stats Section */
.stats {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
/* #endregion */

/* #region CTA Section */
.cta {
    padding: 7rem 0;
}

.cta-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    opacity: 1;
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    position: relative;
}

.cta-card p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    position: relative;
}

.cta-card .btn {
    position: relative;
}
/* #endregion */

/* #region Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text-muted);
    letter-spacing: -0.02em;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}
/* #endregion */

/* #region Scroll Reveal Animation */
.feature-card,
.stat-item,
.cta-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.stat-item.visible,
.cta-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger feature cards */
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }

/* Stagger stat items */
.stat-item:nth-child(2) { transition-delay: 0.06s; }
.stat-item:nth-child(3) { transition-delay: 0.12s; }
.stat-item:nth-child(4) { transition-delay: 0.18s; }
/* #endregion */

/* #region Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.25rem 3rem;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        height: 56px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}
/* #endregion */
