@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..900;1,9..40,100..900&display=swap');

:root {
    /* Brand Palette */
    --deep-navy: #070C1D;
    --navy: #0F172C;
    --blue: #2A6DEC;
    --sky: #48BAED;
    --amber: #F19C14;
    --white: #FEFEFE;
    --neutral: #D9D9D9;

    /* Semantic */
    --success: #16A34A;
    --warning: #F19C14;
    --error: #DC2626;
    --info: #48BAED;

    /* Typography */
    --font-sans: 'DM Sans', system-ui, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

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

body {
    background-color: var(--white);
    font-family: var(--font-sans);
    color: var(--navy);
    overflow-x: hidden;
    font-variation-settings: 'opsz' 14;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15,23,44,0.05); }
::-webkit-scrollbar-thumb { background: var(--neutral); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #a0a6ab; }

/* Layout */
.page-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.section-row > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .page-section { padding: 0 24px; }
    .section-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.section-row.hero-row {
    grid-template-columns: 5fr 7fr;
}
@media (max-width: 1024px) {
    .section-row.hero-row {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn-primary {
    background: var(--blue);
    color: white;
    padding: 0 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}
.btn-primary:hover {
    background: #1f5fd4;
    box-shadow: 0 4px 16px rgba(42,109,236,0.3);
    transform: translateY(-1px);
}

.btn-pill {
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--neutral);
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Cards */
.card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-elevated {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 32px 28px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.badge-blue {
    background: rgba(42,109,236,0.1);
    color: var(--blue);
}
.badge-amber {
    background: rgba(241,156,20,0.1);
    color: var(--amber);
}

/* Feature label */
.feature-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Hero dark sections */
.section-dark {
    background: var(--deep-navy);
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(42,109,236,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(72,186,237,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.section-dark > * {
    position: relative;
    z-index: 1;
}

/* Mockup styling */
.mockup-shadow {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

/* Hero animation classes */
#hero-anim .ha {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
#hero-anim .ha.visible {
    opacity: 1;
    transform: translateY(0);
}
#hero-anim .ha-svg {
    opacity: 0;
    transition: opacity 0.4s ease;
}
#hero-anim .ha-svg.visible {
    opacity: 1;
}
#hero-anim .ha-conv {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.5s ease 0.1s, max-width 0.5s ease;
}
#hero-anim .ha-conv.visible {
    opacity: 1;
    max-width: 56px;
}
#hero-anim.resetting .ha,
#hero-anim.resetting .ha-svg,
#hero-anim.resetting .ha-line,
#hero-anim.resetting .ha-conv {
    transition: none !important;
}
.ha-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 1s ease-in-out, opacity 0.4s ease;
}
.ha-line.drawn {
    stroke-dashoffset: 0;
}

/* Feature 1 animation */
#f1-anim .f1a {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#f1-anim .f1a.visible {
    opacity: 1;
    transform: translateY(0);
}
#f1-anim .f1-comment {
    opacity: 0;
    transition: opacity 0.4s ease;
}
#f1-anim .f1-comment.visible {
    opacity: 1;
}
#f1-anim .f1-update {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.6s ease;
}
#f1-anim .f1-update.visible {
    opacity: 1;
    max-height: 200px;
}
#f1-anim .f1-panel-fade {
    animation: f1FadeIn 0.35s ease both;
}
@keyframes f1FadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
#f1-anim .f1-highlight {
    transition: background-color 0.4s ease;
}
#f1-anim .f1-highlight.highlighted {
    background-color: rgba(42,109,236,0.1);
}
#f1-anim.resetting .f1a,
#f1-anim.resetting .f1-comment,
#f1-anim.resetting .f1-update,
#f1-anim.resetting .f1-highlight {
    transition: none !important;
}

/* Feature 2 animation */
#f2-anim .f2-hub {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
#f2-anim .f2-hub.visible {
    opacity: 1;
    transform: scale(1);
}
#f2-anim.resetting .f2-hub {
    transition: none !important;
}

/* Feature 3 animation */
#f3-anim .f3-col {
    width: 0;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}
#f3-anim .f3-card {
    opacity: 0;
    height: 88px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}
#f3-anim .f3-card.f3-vis {
    opacity: 1;
}
#f3-anim .f3-feed {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid transparent;
    transition: opacity 0.35s ease, max-height 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}
#f3-anim .f3-feed.f3-vis {
    opacity: 1;
    max-height: 56px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom-color: rgba(15,23,44,0.06);
}
#f3-anim [id^="f3-tag"] {
    transition: color 0.4s ease;
}
@keyframes f3pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(42,109,236,0); }
    50% { box-shadow: 0 0 8px 3px rgba(42,109,236,0.25); }
}
#f3-anim .f3-pulse {
    animation: f3pulse 0.7s ease-in-out 2;
}
#f3-anim.resetting .f3-card,
#f3-anim.resetting .f3-feed,
#f3-anim.resetting .f3-slot,
#f3-anim.resetting [id^="f3-tag"] {
    transition: none !important;
    animation: none !important;
}

/* Subtle grid pattern for dark sections */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
}
