/* ========================================
   NOVIXX - Main Stylesheet v2.0
   Dark Navy + Gold Design System (from PDF specs)
   ======================================== */

/* ========================================
   1. CSS RESET & BASE
   ======================================== */

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

:root {
    /* === BRAND COLORS (exact from PDF) === */
    --bg-primary: #0F172A;
    /* Deep Navy */
    --bg-secondary: #111827;
    /* Slightly lighter */
    --bg-footer: #0B1220;
    /* Darkest — footer */
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    /* Gold */
    --gold: #E6B85C;
    --gold-hover: #D4A44A;
    --gold-glow: rgba(230, 184, 92, 0.15);

    /* Purple */
    --purple: #7C3AED;
    --purple-soft: #A78BFA;
    --purple-glow: rgba(124, 58, 237, 0.25);
    --purple-border: rgba(167, 139, 250, 0.4);

    /* Text */
    --text-primary: #F3F4F6;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-subtle: #6B7280;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.18);

    /* Shadows */
    --shadow-card: 0 15px 40px rgba(124, 58, 237, 0.12);
    --shadow-cta: 0 10px 30px rgba(124, 58, 237, 0.25);

    /* Spacing Scale */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.75;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ========================================
   2. TYPOGRAPHY
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gold);
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(40px, 5vw, 64px);
}

h2 {
    font-size: clamp(32px, 4vw, 52px);
}

h3 {
    font-size: clamp(22px, 2.5vw, 32px);
}

h4 {
    font-size: clamp(18px, 2vw, 24px);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--purple-soft);
    text-decoration: none;
    transition: color 250ms ease;
}

a:hover,
a:focus {
    color: var(--gold);
    outline: none;
}

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

.text-subtle {
    color: var(--text-subtle);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--text-primary);
}

.text-gold {
    color: var(--gold);
}

/* Overline label — used in section headers */
.overline {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ========================================
   3. LAYOUT
   ======================================== */

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

.section {
    padding: 120px 0 140px;
}

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

/* ========================================
   4. NAVIGATION
   ======================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 300ms ease, box-shadow 300ms ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links {
    display: none;
    gap: 40px;
    list-style: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: color 250ms ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Mobile nav — open state */
@media (max-width: 767px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--glass-border);
    }
}

/* Nav CTA Button */
.nav-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple), var(--purple-soft));
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-cta);
    transition: transform 250ms ease, filter 250ms ease;
    white-space: nowrap;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

.nav-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle .icon {
    stroke: var(--text-secondary);
}

/* ========================================
   5. BUTTONS (Purple Gradient — from PDF)
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: transform 250ms ease, filter 250ms ease, background 250ms ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Primary — Purple gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-soft));
    color: #fff;
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Secondary — Ghost */
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Full-width on mobile */
@media (max-width: 480px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   6. GLASSMORPHISM CARDS
   ======================================== */

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
    height: 100%;
}

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

/* Card icon container */
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(167, 139, 250, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg,
.card-icon .icon {
    width: 24px;
    height: 24px;
    stroke: var(--purple-soft);
    fill: none;
}

.card h3 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.card h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Microline below card title */
.card-microline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 14px;
}

/* Card divider (Why Novixx) */
.card-divider {
    height: 1px;
    width: 40px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0 16px;
}

/* Learn more link */
.card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--purple-soft);
    font-weight: 500;
    transition: color 250ms ease;
}

.card-link:hover {
    color: var(--gold);
}

/* Solution card hover — stronger purple shadow */
.card-solution:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

/* Impact metric card */
.card-metric {
    text-align: center;
    padding: 40px 32px;
}

.metric-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 600;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 0;
}

.metric-divider {
    height: 1px;
    width: 60px;
    background: rgba(255, 255, 255, 0.15);
    margin: 16px auto 24px;
}

.metric-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.metric-mechanism {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   7. GRID LAYOUTS
   ======================================== */

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

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

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

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   8. HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Radial purple glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(147, 51, 234, 0.15), transparent);
    pointer-events: none;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.18;
}

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

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

.hero h1 {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(230, 184, 92, 0.15);
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.65;
    margin-bottom: var(--spacing-lg);
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Trust strip */
.trust-strip {
    border-top: 1px solid var(--glass-border);
    padding-top: 32px;
    margin-top: 16px;
}

.trust-strip p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0.7;
    transition: opacity 250ms ease;
}

.trust-logos:hover {
    opacity: 1;
}

.trust-logo {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================
   9. PROBLEM-SOLUTION SECTION
   ======================================== */

.problem-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

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

    .problem-arrow {
        display: none;
    }

    .problem-row::after {
        content: '';
        display: block;
        height: 1px;
        background: var(--glass-border);
        margin: 8px 0;
    }
}

.problem-arrow {
    font-size: 20px;
    color: var(--purple-soft);
    opacity: 0.7;
    text-align: center;
}

.problem-block {
    background: var(--glass-bg);
}

.solution-block {
    background: var(--glass-bg);
}

/* Outcome line */
.outcome-line {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    font-size: 14px;
}

.outcome-label {
    font-weight: 700;
    color: var(--gold);
    font-size: 13px;
}

/* ========================================
   10. HOW WE WORK — Steps
   ======================================== */

.steps-wrapper {
    position: relative;
}

/* Connector line between steps (desktop only) */
.steps-connector {
    display: none;
}

@media (min-width: 768px) {
    .steps-connector {
        display: block;
        position: absolute;
        top: 32px;
        left: calc(16.66% + 20px);
        width: calc(66.66% - 40px);
        height: 2px;
        background: rgba(167, 139, 250, 0.2);
        pointer-events: none;
        z-index: 0;
    }
}

/* Step label */
.step-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Deliverable list */
.deliverable-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 8px;
}

.deliverable-list {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   11. FOOTER
   ======================================== */

footer {
    background: var(--bg-footer);
    color: var(--text-secondary);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

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

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

.footer-col h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.footer-col .logo {
    font-size: 28px;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
    margin-bottom: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: color 250ms ease;
}

.footer-col ul li a:hover {
    color: var(--purple-soft);
}

/* Legal row */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    padding: 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-legal a,
.footer-legal span {
    font-size: 13px;
    color: var(--text-subtle);
    transition: color 250ms ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.footer-legal .sep {
    color: var(--text-subtle);
    user-select: none;
}

/* ========================================
   12. UTILITY CLASSES
   ======================================== */

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

/* Section BG variants */
.bg-secondary {
    background: var(--bg-secondary);
}

/* ========================================
   13. ICONS
   ======================================== */

.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.icon-sm {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* ========================================
   14. ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: countUp 0.5s ease-out both;
}

/* ========================================
   15. RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .hero-ctas {
        flex-direction: column;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   16. FOCUS STATES (Accessibility)
   ======================================== */

*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ========================================
   17. AI DEMO — iframe card
   ======================================== */

.demo-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    overflow: hidden;
}

.demo-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.demo-topbar .demo-brand {
    color: var(--gold);
}

.demo-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 20px;
    text-align: center;
}

.demo-card iframe {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .demo-card iframe {
        height: 420px;
    }
}

.demo-open-link {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--purple-soft);
    border-top: 1px solid var(--glass-border);
    transition: color 250ms ease, background 250ms ease;
}

.demo-open-link:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.02);
}

/* Spotlight layout (services page) */
.spotlight-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 768px) {
    .spotlight-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   13. UTILITY CLASSES
   ======================================== */
.bg-secondary {
    background: var(--bg-secondary);
}

.overline {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.card-solution {
    border-left: 3px solid var(--purple-soft);
}

/* ========================================
   15. FORM ELEMENTS (dark theme)
   ======================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--purple-soft) !important;
    outline: none;
    box-shadow: 0 0 0 3px var(--purple-glow);
}

select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}