/* ═══════════════════════════════════════════════════════════
   productOS Landing Page — style.css
   Design: Dark glassmorphism, electric teal + purple accents
   ═══════════════════════════════════════════════════════════ */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    --bg-primary: #080c14;
    --bg-secondary: #0d1117;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 212, 184, 0.3);
    --teal: #00d4b8;
    --teal-dim: rgba(0, 212, 184, 0.15);
    --purple: #7c3aed;
    --purple-dim: rgba(124, 58, 237, 0.15);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow-teal: 0 0 40px rgba(0, 212, 184, 0.15);
    --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* Animated canvas background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--text-secondary);
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--teal) 0%, #4facfe 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-dim);
    border: 1px solid rgba(0, 212, 184, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 60px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), #4facfe);
    color: #080c14;
    padding: 12px 24px;
    box-shadow: 0 0 20px rgba(0, 212, 184, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 212, 184, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

#navbar.scrolled {
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--teal), #4facfe);
    color: #080c14;
    border-radius: 7px;
    font-weight: 900;
    font-size: 1rem;
    margin-right: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    flex: 1;
}

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

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile-menu {
    display: none;
    /* always hidden by default; toggled by JS */
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(8, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
}

.nav-mobile-menu.open {
    display: flex;
}

.nav-mobile-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.nav-mobile-menu .btn {
    text-align: center;
    justify-content: center;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px var(--teal);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-headline {
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}

.stat-unit {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 184, 0.15) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 70%);
    z-index: -1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 212, 184, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 212, 184, 0.1);
    display: block;
}

.hero-img-reflection {
    position: absolute;
    bottom: -20px;
    left: 5%;
    right: 5%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 184, 0.2) 0%, transparent 70%);
    filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════════
   PROBLEM
   ═══════════════════════════════════════════════════════════ */
#problem {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 50%, transparent 100%);
    text-align: center;
}

#problem .section-title {
    margin: 0 auto 60px;
}

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

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow-purple);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    filter: grayscale(0.3);
}

.problem-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SOLUTION BRIDGE
   ═══════════════════════════════════════════════════════════ */
#solution-bridge {
    padding: 80px 0;
}

.bridge-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.bridge-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 184, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bridge-text .section-label {
    margin-bottom: 16px;
}

.bridge-text h2 {
    margin-bottom: 20px;
}

.bridge-text p {
    margin-bottom: 32px;
}

.bridge-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
#features {
    text-align: center;
}

#features .section-sub {
    margin: 0 auto 80px;
}

/* Feature Highlights */
.feature-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    text-align: left;
    margin-bottom: 100px;
}

.feature-highlight--reversed .feature-highlight-content {
    order: 2;
}

.feature-highlight--reversed .feature-highlight-visual {
    order: 1;
}

.fh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-dim);
    border: 1px solid rgba(0, 212, 184, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.feature-highlight-content h3 {
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.feature-highlight-content p {
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check {
    width: 20px;
    height: 20px;
    background: var(--teal-dim);
    border: 1px solid rgba(0, 212, 184, 0.3);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--teal);
    flex-shrink: 0;
}

.feature-highlight-visual img {
    width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 212, 184, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 184, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-highlight-visual img:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 212, 184, 0.15);
}

/* Features Card Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--shadow-glow-teal);
}

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

.feature-card-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
#how-it-works {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 184, 0.02) 50%, transparent 100%);
    text-align: center;
}

#how-it-works .section-title {
    margin: 0 auto 60px;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 20px;
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--teal);
    opacity: 0.4;
    align-self: center;
    padding: 0 16px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   TIME SAVINGS
   ═══════════════════════════════════════════════════════════ */
#time-savings {
    text-align: center;
}

#time-savings .section-sub {
    margin: 0 auto 60px;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.savings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.savings-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-teal);
}

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

.savings-header h3 {
    font-size: 1.05rem;
}

.savings-freq {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 100px;
}

.savings-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.savings-before,
.savings-after {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.time-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.time-fill {
    height: 100%;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-bar--after .time-fill {
    background: linear-gradient(90deg, var(--teal), #4facfe);
}

.time-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.time-value.teal {
    color: var(--teal);
}

.savings-tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--teal-dim);
    border: 1px solid rgba(0, 212, 184, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
}

.savings-tag strong {
    color: var(--teal);
}

/* ═══════════════════════════════════════════════════════════
   WHO IT'S FOR
   ═══════════════════════════════════════════════════════════ */
#who-for {
    text-align: center;
}

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

.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.persona-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-purple);
}

.persona-avatar {
    font-size: 2rem;
    margin-bottom: 16px;
}

.persona-card h4 {
    margin-bottom: 10px;
}

.persona-card p {
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   INTEGRATIONS
   ═══════════════════════════════════════════════════════════ */
#integrations {
    text-align: center;
}

#integrations .section-sub {
    margin: 0 auto 60px;
}

.integrations-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.integration-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.integration-group-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.integration-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.integration-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 90px;
    transition: var(--transition);
    cursor: default;
}

.integration-logo:hover {
    background: var(--teal-dim);
    border-color: rgba(0, 212, 184, 0.3);
    transform: translateY(-3px);
}

.int-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.integration-logo span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.integration-divider {
    height: 1px;
    background: var(--border);
    margin: 0 -48px;
}

/* ═══════════════════════════════════════════════════════════
   DATA OWNERSHIP
   ═══════════════════════════════════════════════════════════ */
#data-ownership {
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 50%, transparent 100%);
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.data-text .section-label {
    margin-bottom: 16px;
}

.data-text h2 {
    margin-bottom: 20px;
}

.data-text>p {
    margin-bottom: 36px;
}

.data-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-bullet {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.bullet-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.data-bullet div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-bullet strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.data-bullet span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Code Block */
.code-block {
    background: #0d1117;
    border: 1px solid rgba(0, 212, 184, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ff5f56;
}

.code-dot.yellow {
    background: #ffbd2e;
}

.code-dot.green {
    background: #27c93f;
}

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.code-content {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
}

code {
    display: block;
}

.code-dir {
    color: #4facfe;
}

.code-file {
    color: #e3e3e3;
}

.code-comment {
    color: var(--text-muted);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════════════════════ */
#tech-stack {
    text-align: center;
}


.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
    text-align: left;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.tech-card h4 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.tech-card p {
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
#cta {
    text-align: center;
    padding: 120px 0;
}

.cta-inner {
    max-width: 780px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 212, 184, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
    border: 1px solid rgba(0, 212, 184, 0.15);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse at center, rgba(0, 212, 184, 0.1) 0%, rgba(124, 58, 237, 0.05) 40%, transparent 70%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

.cta-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    background: var(--teal-dim);
    border: 1px solid rgba(0, 212, 184, 0.2);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
}

.cta-headline {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.cta-download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    transition: var(--transition);
    color: var(--text-primary);
    min-width: 180px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 184, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.download-btn div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dl-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dl-platform {
    font-size: 0.95rem;
    font-weight: 600;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.github-link:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 240px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--font-mono);
}

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

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h5 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-links-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    #hero {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        order: 0;
    }

    .hero-visual {
        order: 1;
    }

    .hero-sub,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .feature-highlight--reversed .feature-highlight-content {
        order: 0;
    }

    .feature-highlight--reversed .feature-highlight-visual {
        order: 1;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .bridge-inner {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .nav-links {
        display: none;
    }

    #nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    /* mobile menu hidden by default; JS adds .open class */
    .nav-mobile-menu.open {
        display: flex;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .savings-grid {
        grid-template-columns: 1fr;
    }

    .personas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 8px;
    }

    .cta-inner {
        padding: 48px 24px;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .integrations-container {
        padding: 32px 20px;
    }

    .integration-divider {
        margin: 0 -20px;
    }
}

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .cta-download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
    }
}