/* ============================================================
   CORDACS Marketing Website — Complete Stylesheet
   ============================================================
   Sections:
     1. Font Faces
     2. CSS Variables
     3. Reset & Base
     4. Utilities
     5. Gold CTA Button
     6. Scroll Reveal System
     7. Navigation
     8. Hero
     9. Problem Section (Warm)
    10. Platform Section (Dark / Navy)
    11. AI Engine
    12. Offline Section
    13. Compare Section
    14. Footer
    15. Mobile Override
   ============================================================ */


/* ============================================================
   1. FONT FACES
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../assets/fonts/inter-latin-800-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}


/* ============================================================
   2. CSS VARIABLES
   ============================================================ */

:root {
    --bg-primary: #0F1419;
    --bg-secondary: #1a2332;
    --bg-elevated: #252E39;
    --bg-warm: #d6c8a2;
    --bg-warm-dark: #beaf87;

    --text-primary: #F4F6F8;
    --text-secondary: #7a8da6;
    --text-warm-dark: #1a2332;
    --text-warm-muted: rgba(26, 35, 50, 0.5);

    --gold: #c4a34c;
    --gold-mid: #d4af37;
    --gold-dark: #b8942e;
    --gold-text: #d4c088;
    --gold-subtle: rgba(196, 163, 76, 0.15);

    --orange: #F97316;
    --orange-subtle: rgba(249, 115, 22, 0.08);
    --orange-glow: rgba(249, 115, 22, 0.15);

    --border: #4A5669;
    --border-light: #2a3a52;
    --grid-color: rgba(55, 65, 81, 0.3);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius: 12px;
    --radius-sm: 8px;

    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.45);

    --max-width: 1200px;
    --section-padding: 120px 24px;
    --section-padding-mobile: 80px 20px;
}


/* ============================================================
   3. RESET & BASE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ============================================================
   4. UTILITIES
   ============================================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subheading {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 48px;
}


/* ============================================================
   5. GOLD CTA BUTTON (.btn-gold)
   ============================================================ */

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-mid), var(--gold-dark));
    color: var(--bg-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 36px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d4b35c, #e4bf47, #c8a43e);
    box-shadow: 0 4px 20px rgba(196, 163, 76, 0.35);
    transform: translateY(-1px);
}

.btn-gold .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-gold:hover .arrow {
    transform: translateX(3px);
}


/* ============================================================
   6. SCROLL REVEAL SYSTEM
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-stagger > .reveal:nth-child(1)  { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(2)  { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(3)  { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(4)  { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(5)  { transition-delay: 0.40s; }
.reveal-stagger > .reveal:nth-child(6)  { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(7)  { transition-delay: 0.56s; }
.reveal-stagger > .reveal:nth-child(8)  { transition-delay: 0.64s; }
.reveal-stagger > .reveal:nth-child(9)  { transition-delay: 0.72s; }
.reveal-stagger > .reveal:nth-child(10) { transition-delay: 0.80s; }
.reveal-stagger > .reveal:nth-child(11) { transition-delay: 0.88s; }
.reveal-stagger > .reveal:nth-child(12) { transition-delay: 0.96s; }


/* ============================================================
   7. NAVIGATION (.navbar)
   ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(15, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar-brand {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--gold);
}

.navbar-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold-mid));
    color: var(--bg-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-login:hover {
    box-shadow: 0 2px 12px rgba(196, 163, 76, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }
}


/* ============================================================
   8. HERO (.hero)
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle, var(--orange-subtle) 1px, transparent 1px),
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size:
        32px 32px,
        32px 32px,
        32px 32px;
    background-position: center center;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.hero-logo-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--gold-subtle) 0%, transparent 70%);
    border-radius: 50%;
    animation: logo-glow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes logo-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-logo {
    max-width: 380px;
    width: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 24px rgba(196, 163, 76, 0.2));
}

.hero-acronym {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3em;
    margin-bottom: 8px;
}

.hero-full-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.hero-tagline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-cta {
    margin-bottom: 80px;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-chevron {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* ============================================================
   9. PROBLEM SECTION (.section-warm)
   ============================================================ */

.section-warm {
    background: var(--bg-warm);
    background-image: radial-gradient(circle at 20% 30%, var(--bg-warm-dark) 0%, transparent 50%);
    color: var(--text-warm-dark);
    padding: var(--section-padding);
}

.section-warm .section-label {
    color: var(--text-warm-muted);
}

.section-warm .section-heading {
    color: var(--text-warm-dark);
}

.section-warm .section-subheading {
    color: var(--text-warm-muted);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.pain-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pain-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-warm-dark);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.pain-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bg-warm);
    stroke: var(--bg-warm);
}

.pain-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-warm-dark);
    line-height: 1.3;
}

.pain-card p {
    font-size: 0.9375rem;
    color: var(--text-warm-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* ============================================================
   10. PLATFORM SECTION (.section-dark, .section-navy)
   ============================================================ */

.section-dark {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle, var(--orange-subtle) 1px, transparent 1px),
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size:
        32px 32px,
        32px 32px,
        32px 32px;
    padding: var(--section-padding);
}

.section-navy {
    background-color: var(--bg-secondary);
    padding: var(--section-padding);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-elevated);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.feature-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    stroke: var(--gold);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ============================================================
   11. AI ENGINE (.section-ai)
   ============================================================ */

.section-ai {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(circle, rgba(249, 115, 22, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(55, 65, 81, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 65, 81, 0.06) 1px, transparent 1px);
    background-size:
        32px 32px,
        32px 32px,
        32px 32px;
    padding: var(--section-padding);
}

.section-ai .section-label {
    color: var(--orange);
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 800px;
    margin-top: 48px;
}

.ai-feature {
    border-left: 2px solid var(--orange);
    padding-left: 24px;
}

.ai-feature h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.ai-feature h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ai-feature p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ============================================================
   12. OFFLINE SECTION
   ============================================================ */

.sync-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 48px 0;
    flex-wrap: wrap;
    gap: 0;
}

.sync-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sync-node svg {
    width: 48px;
    height: 48px;
    padding: 10px;
    background: var(--text-warm-dark);
    border-radius: 50%;
    color: var(--bg-warm);
    stroke: var(--bg-warm);
    transition: all 0.3s ease;
}

.sync-node span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-warm-dark);
}

.sync-connector {
    width: 80px;
    height: 2px;
    background: var(--border);
    position: relative;
    flex-shrink: 0;
}

.sync-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width 0.6s ease;
}

.sync-visual.visible .sync-connector::after {
    width: 100%;
}

.sync-visual.visible .sync-node svg {
    animation: sync-pulse 3s ease-in-out infinite;
}

.sync-visual.visible .sync-node:nth-child(1) svg {
    animation-delay: 0s;
}

.sync-visual.visible .sync-node:nth-child(3) svg {
    animation-delay: 0.4s;
}

.sync-visual.visible .sync-node:nth-child(5) svg {
    animation-delay: 0.8s;
}

@keyframes sync-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 163, 76, 0.3); }
    50%      { box-shadow: 0 0 0 12px rgba(196, 163, 76, 0); }
}

@media (max-width: 640px) {
    .sync-connector {
        width: 40px;
    }
}


/* ============================================================
   13. COMPARE SECTION (.compare-blocks)
   ============================================================ */

.compare-blocks {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 800px;
    margin-top: 48px;
}

.compare-block {
    border-left: 3px solid var(--gold);
    padding-left: 24px;
}

.compare-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.compare-block p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ============================================================
   14. FOOTER
   ============================================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--gold);
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    margin-bottom: 48px;
}

.footer-brand h4 {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-contact h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-contact a {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-action {
        align-items: center;
    }
}


/* ============================================================
   15. MOBILE OVERRIDE
   ============================================================ */

@media (max-width: 640px) {
    .section-warm,
    .section-dark,
    .section-navy,
    .section-ai {
        padding: var(--section-padding-mobile);
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-logo {
        max-width: 260px;
    }

    .hero-logo-wrap::before {
        width: 300px;
        height: 300px;
    }

    .section-heading {
        letter-spacing: -0.01em;
    }

    .section-subheading {
        margin-bottom: 32px;
    }

    .ai-features {
        gap: 32px;
    }

    .compare-blocks {
        gap: 32px;
    }

    .footer {
        padding: 48px 20px 24px;
    }
}
