/* ═══════════════════════════════════════════════════
   CONTRAGRAVITON — Landing Page Styles
   Color System: Deep dark + Amber Gold accent
   ═══════════════════════════════════════════════════ */

:root {
    --bg-deep:      #0d0d12;
    --bg-surface:   #131320;
    --bg-card:      #181828;
    --bg-card-hover:#1e1e34;
    --amber:        #e0a040;
    --amber-light:  #f0c060;
    --amber-dim:    #c08830;
    --amber-glow:   rgba(224, 160, 64, 0.15);
    --amber-glow-strong: rgba(224, 160, 64, 0.3);
    --text-primary: #f0f0f2;
    --text-secondary:#8a8a9a;
    --text-dim:     #55556a;
    --border:       rgba(224, 160, 64, 0.1);
    --border-hover: rgba(224, 160, 64, 0.25);
    --radius:       12px;
    --radius-lg:    20px;
    --radius-xl:    28px;
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Reveal Animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════ NAV ═══════════════════ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition);
}
#nav.scrolled {
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--amber);
}
.nav-logo img {
    border-radius: 8px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-cta {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--amber);
    color: var(--bg-deep);
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--amber-light);
    box-shadow: 0 0 20px var(--amber-glow-strong);
}

/* ═══════════════════ HERO ═══════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(2px) saturate(0.5);
}
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(224, 160, 64, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(13,13,18,0.3) 0%, rgba(13,13,18,0.9) 70%, var(--bg-deep) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 32px;
    max-width: 860px;
    width: 100%;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid var(--amber-glow-strong);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 32px;
    background: rgba(224, 160, 64, 0.06);
}
.hero-logo {
    margin: 0 auto 24px;
    border-radius: 24px;
    filter: drop-shadow(0 0 60px rgba(224, 160, 64, 0.3));
    animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(224, 160, 64, 0.2)); }
    50%      { filter: drop-shadow(0 0 80px rgba(224, 160, 64, 0.4)); }
}
#hero h1 {
    font-size: clamp(28px, 5.5vw, 76px);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--amber) 50%, var(--amber-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.hero-sub {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}
.hero-desc {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}
.btn-primary {
    background: var(--amber);
    color: var(--bg-deep);
}
.btn-primary:hover {
    background: var(--amber-light);
    box-shadow: 0 0 30px var(--amber-glow-strong), 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
    border-color: var(--amber-glow-strong);
    color: var(--text-primary);
    background: rgba(224, 160, 64, 0.05);
}
.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 1px;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ═══════════════════ RIBBON ═══════════════════ */
.ribbon-section {
    padding: 24px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}
.ribbon-track {
    display: flex;
    gap: 48px;
    animation: ribbonScroll 30s linear infinite;
    width: max-content;
}
.ribbon-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}
@keyframes ribbonScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════ FEATURE SECTIONS ═══════════════════ */
.feature-section {
    padding: 120px 0;
}
.feature-section-alt {
    background: var(--bg-surface);
}
.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* Showcase */
.feature-showcase {
    margin: 48px 0;
    padding: 0 24px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.showcase-grid-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
}
.showcase-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: var(--bg-card);
}
.showcase-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--amber-glow);
}
.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card:hover img {
    transform: scale(1.03);
}
.showcase-card-large {
    grid-row: span 2;
}
.showcase-card-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(13, 13, 18, 0.8);
    backdrop-filter: blur(10px);
    color: var(--amber);
    letter-spacing: 0.5px;
}

/* Single showcase */
.showcase-single {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}
.showcase-single img {
    width: 100%;
    display: block;
}
.showcase-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, var(--amber-glow) 0%, transparent 60%);
    pointer-events: none;
}

/* Stats */
.stat-row {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.stat {
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--amber);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Split content */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 64px;
}
.split-img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.split-right h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.split-right p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(224, 160, 64, 0.08);
    border: 1px solid var(--border);
    color: var(--amber);
}

/* Capability list */
.capability-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.capability {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
}
.capability:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.capability-icon {
    font-size: 24px;
    flex-shrink: 0;
    color: var(--amber);
}
.capability strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.capability p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quote block */
.quote-block {
    text-align: center;
    margin-top: 64px;
    padding: 48px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.quote-block p {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    font-style: italic;
    color: var(--amber);
    margin-bottom: 12px;
}
.quote-block span {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ═══════════════════ FEATURE GRID ═══════════════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.grid-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
}
.grid-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.grid-icon {
    font-size: 28px;
    margin-bottom: 14px;
    color: var(--amber);
}
.grid-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.grid-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.grid-card code {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    color: var(--amber);
    background: rgba(224, 160, 64, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
}

/* ═══════════════════ CTA ═══════════════════ */
.cta-section {
    padding: 120px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.cta-content {
    text-align: center;
}
.cta-logo {
    margin: 0 auto 24px;
    border-radius: 20px;
    filter: drop-shadow(0 0 40px rgba(224, 160, 64, 0.3));
}
.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ═══════════════════ COMING SOON ═══════════════════ */
.coming-soon-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}
.coming-soon-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.coming-soon-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--bg-deep);
    background: var(--amber);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 160, 64, 0.4); }
    50%      { box-shadow: 0 0 20px 4px rgba(224, 160, 64, 0.2); }
}
.coming-soon-inner h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.coming-soon-inner > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}
.coming-soon-cta {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.coming-soon-follow {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--amber);
}
.footer-brand img {
    border-radius: 6px;
}
.footer-credit {
    font-size: 14px;
    color: var(--text-secondary);
}
.footer-credit a {
    color: var(--amber);
    transition: color var(--transition);
}
.footer-credit a:hover {
    color: var(--amber-light);
}
.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

/* ═══════════════════ INTELLIGENCE STEPS ═══════════════════ */
.intelligence-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.step {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
    position: relative;
}
.step:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}
.step-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--amber);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}
.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════ TECH STACK ═══════════════════ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.stack-col {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.stack-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.stack-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.stack-col li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.stack-col li strong {
    color: var(--text-primary);
}

/* ═══════════════════ TOOLSET TABLE ═══════════════════ */
.tools-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.tool-category {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.tool-category h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.tool-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tool-item:last-child {
    border-bottom: none;
}
.tool-item code {
    font-size: 13px;
    font-weight: 600;
    color: var(--amber);
    font-family: 'Courier New', monospace;
}
.tool-item span {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* code tags in descriptions */
.section-desc code,
.grid-card code,
.capability p code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--amber);
    background: rgba(224, 160, 64, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}
.stat-label small {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
    font-weight: 400;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
    .showcase-card-large {
        grid-row: span 1;
        grid-column: span 2;
    }
    .capability-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .intelligence-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .stack-grid {
        grid-template-columns: 1fr;
    }
    .tools-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .feature-section { padding: 80px 0; }
    .showcase-grid,
    .showcase-grid-2 {
        grid-template-columns: 1fr;
    }
    .showcase-card-large {
        grid-column: span 1;
    }
    .split-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .capability-list {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .intelligence-steps {
        grid-template-columns: 1fr;
    }
    .tools-table {
        grid-template-columns: 1fr;
    }
    .stat-row {
        flex-direction: column;
        gap: 24px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
