/* ============================================
   QUANTICA LAB – v2.0 Design System
   "Human Intelligence x Raw Power"
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
    --orange: #BB2649;
    --orange-hover: #9A1E3C;
    --orange-glow: rgba(187, 38, 73, 0.15);
    --orange-dim: rgba(187, 38, 73, 0.06);
    --deep-space: #0A0A0A;
    --surface: #111111;
    --surface-card: #141414;
    --surface-elevated: #1A1A1A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(187, 38, 73, 0.4);
    --text-primary: #F1F1F1;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --white: #FFFFFF;
    --font-display: 'Archivo Black', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --section-gap: 0;
    --container-width: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--deep-space);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    zoom: 1.1;
}

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

a {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--orange-hover); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================
   INTERACTIVE GRID BACKGROUND
   ============================================ */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Cursor glow on grid — applied via JS */
.grid-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187,38,73,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-out, top 0.3s ease-out;
    will-change: left, top;
}

/* ============================================
   HEADER – Floating Glassmorphism
   ============================================ */
header {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    padding: 0 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a,
.nav-links .dropdown-toggle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: color 0.2s;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after,
.nav-links .dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links .dropdown-toggle:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    padding: 1.5rem 0;
    margin: -1.5rem 0;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 0;
    min-width: 220px;
    z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0.02em;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
    color: var(--white);
    background: rgba(249,115,22,0.08);
}
.dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0.4rem 0;
}

/* Nav CTA — cut corner industrial button */
.nav-links .cta-button {
    background: var(--orange);
    color: var(--deep-space) !important;
    padding: 0.5rem 1.4rem !important;
    font-family: var(--font-body) !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: background 0.2s;
}
.nav-links .cta-button::after { display: none; }
.nav-links .cta-button:hover {
    background: var(--orange-hover);
    color: var(--deep-space) !important;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    background: var(--deep-space);
    padding: clamp(100px, 15vw, 200px) 0 clamp(60px, 10vw, 140px);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Outline watermark — parallax via JS */
.hero .watermark,
.demo-hero .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.10);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.hero .watermark {
    font-size: clamp(100px, 30vw, 9999px);
    will-change: transform;
}
.demo-hero .watermark {
    font-size: clamp(200px, 30vw, 500px);
}

/* Glow blob behind hero heading */
.hero .glow-blob,
.demo-hero .glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}
.hero .glow-blob {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 60%);
}
.hero .glow-blob--1 { top: 15%; left: 10%; }
.hero .glow-blob--2 { bottom: 10%; right: 5%; animation-delay: -3s; }
.demo-hero .glow-blob {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 60%);
}

@keyframes pulse-glow {
    0%   { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.15); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--orange);
    border: 1px solid rgba(249,115,22,0.3);
    padding: 0.35rem 1rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 130px);
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 2.5rem;
}

.hero h1 span {
    color: var(--orange);
    display: block;
}

.hero p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 0.8rem;
}

.hero p strong {
    color: var(--white);
    font-weight: 600;
}

.hero-text-block {
    max-width: 100%;
}
.hero-text-block p {
    max-width: 100%;
    width: 100%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* --- CTA Buttons (Industrial, cut-corner) --- */
.cta-button {
    display: inline-block;
    background: var(--orange);
    color: var(--deep-space);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 2.2rem;
    border-radius: 0;
    border: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.cta-button:hover {
    background: var(--orange-hover);
    color: var(--deep-space);
    transform: translateY(-1px);
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 2.2rem;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.cta-button-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}


/* ============================================
   SECTION TITLES – Bold System
   ============================================ */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 5.5vw, 68px);
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.section-title span {
    color: var(--orange);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* Hairline accent */
.section-header::after {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--orange);
    margin-top: 1.5rem;
}

/* ============================================
   SERVICES / OFFER SECTION (Dark)
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
}

/* Hairline at top */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

/* --- Cards (Dark, industrial) --- */
.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Orange top-line accent on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(249,115,22,0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 44px;
    height: 44px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.service-card ul {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.service-card ul li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.2rem;
}
.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 0;
    border-top: 1px solid var(--orange);
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    border-bottom: 1px solid var(--orange);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.card-link:hover {
    color: var(--orange-hover);
    border-color: var(--orange-hover);
}

/* ============================================
   WHY QUANTICA SECTION
   ============================================ */
.why {
    padding: 120px 0;
    background: var(--deep-space);
    position: relative;
}

.why::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.why-item h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   FOR WHOM SECTION
   ============================================ */
.for-whom {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
}

.for-whom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.target-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.target-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(249,115,22,0.08);
}

.target-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.target-card h3 {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.target-intro {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.target-card ul {
    padding-left: 0;
    margin-bottom: 1rem;
}

.target-card ul li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.15rem;
}
.target-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 0;
    border-top: 1px solid var(--orange);
}

.target-summary {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--surface);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.cta-section h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 52px);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ============================================
   FIRST STEPS SECTION
   ============================================ */
.first-steps {
    padding: 120px 0;
    text-align: center;
    background: var(--deep-space);
    position: relative;
}

.first-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.first-steps h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 5.5vw, 68px);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
}

.first-steps > .container > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 2.5rem;
}

.contact-info strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.contact-info p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--deep-space);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-mascot img {
    height: 64px;
    width: auto;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

footer p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    letter-spacing: 0.02em;
}

.llms-link {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}
.llms-link:hover {
    color: var(--orange);
}

/* ============================================
   SERVICE DETAIL (Sub-pages)
   ============================================ */
.service-detail {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-detail h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 1rem;
}

.service-detail h5 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--orange);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.service-detail h6 {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-detail p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.service-detail ul {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.service-detail ul li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.2rem;
}
.service-detail ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 0;
    border-top: 1px solid var(--orange);
}

/* ============================================
   INFO GRID (O nas page)
   ============================================ */
.info-grid {
    margin-bottom: 2rem;
}
.info-row {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    min-width: 80px;
    padding-top: 0.15rem;
}
.info-value {
    color: var(--text-primary);
}
body.light .info-row {
    border-bottom-color: rgba(0,0,0,0.08);
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-trigger {
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    margin-bottom: 0 !important;
}
.accordion-trigger:hover { opacity: 0.75; }
.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 1em;
    line-height: 1;
    transition: transform 0.3s ease;
}
.accordion-item.open > .accordion-trigger .accordion-icon {
    transform: rotate(45deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-item.open > .accordion-body {
    max-height: 4000px;
}
.accordion-item {
    margin-top: 1.5rem;
}

/* ============================================
   PROCESS STEPS (Doradztwo)
   ============================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.process-step {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem 2rem;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(249,115,22,0.08);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.process-step h4 {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.step-meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.process-step ul { padding-left: 0; }
.process-step ul li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.15rem;
}
.process-step ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 0;
    border-top: 1px solid var(--orange);
}

/* Deliverables */
.deliverables {
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem;
    background: var(--surface-card);
}

.deliverables h3 {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 1rem;
}

.deliverables ul li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.deliverables ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 0;
    border-top: 1px solid var(--orange);
}

/* ============================================
   DEMO / CASE STUDY PAGES
   ============================================ */
.demo-hero {
    position: relative;
    background: var(--deep-space);
    padding: 200px 0 120px;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.demo-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 8vw, 110px);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.demo-hero p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 580px;
    line-height: 1.8;
}

.demo-info {
    padding: 120px 0;
    background: var(--surface);
}

.demo-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.demo-info-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem;
}

.demo-info-card h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.demo-info-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.powered-by p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid,
    .target-grid,
    .process-steps,
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

    .demo-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        top: 0;
        left: 0;
        right: 0;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 1.5rem 2rem;
        gap: 1rem;
    }
    .nav-links.active { display: flex; }

    .nav-links a::after,
    .nav-links .dropdown-toggle::after { display: none; }

    .dropdown-menu {
        position: static;
        transform: none;
        backdrop-filter: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
    }
    .dropdown:hover .dropdown-menu { display: block; }

    .hero {
        padding: 150px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 72px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .demo-hero {
        padding: 150px 0 80px;
        min-height: auto;
    }
}

/* ============================================
   LIGHT THEME
   ============================================ */
body.light {
    --deep-space: #F2F2F2;
    --surface: #E8E8E8;
    --surface-card: #FFFFFF;
    --surface-elevated: #F0F0F0;
    --border: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(249, 115, 22, 0.5);
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #999999;
    --white: #1A1A1A;
}

/* Header in light mode */
body.light header {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .logo img {
    filter: none;
}

body.light .menu-toggle span {
    background: var(--text-primary);
}

body.light .nav-links a,
body.light .nav-links .dropdown-toggle {
    color: #555;
}

body.light .nav-links a:hover,
body.light .nav-links .dropdown-toggle:hover {
    color: #1A1A1A;
}

body.light .dropdown-menu {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .dropdown-menu a {
    color: #555;
}
body.light .dropdown-menu a:hover {
    color: #1A1A1A;
    background: rgba(249, 115, 22, 0.06);
}

/* Hero in light mode */
body.light .hero,
body.light .demo-hero {
    background: var(--surface);
}

body.light .hero h1,
body.light .demo-hero h1 {
    color: #1A1A1A;
}

body.light .hero h1 span {
    color: var(--orange);
}

body.light .hero p,
body.light .demo-hero p {
    color: #555;
}

body.light .hero p strong {
    color: #1A1A1A;
}

body.light .hero .watermark,
body.light .demo-hero .watermark {
    -webkit-text-stroke-color: rgba(0, 0, 0, 0.08);
}

body.light .hero .glow-blob,
body.light .demo-hero .glow-blob {
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 60%);
}

body.light .hero-badge {
    border-color: rgba(249, 115, 22, 0.25);
}

/* CTA outline on light */
body.light .cta-button-outline {
    color: #1A1A1A;
    border-color: rgba(0, 0, 0, 0.2);
}
body.light .cta-button-outline:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* Grid bg in light mode */
body.light .grid-bg {
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

body.light .grid-glow {
    background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%);
}

/* Section titles */
body.light .section-title {
    color: #1A1A1A;
}

/* Cards in light mode */
body.light .service-card,
body.light .target-card,
body.light .process-step,
body.light .demo-info-card,
body.light .deliverables {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light .service-card:hover,
body.light .target-card:hover,
body.light .process-step:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08);
}

/* CTA section in light mode */
body.light .cta-section {
    background: #1A1A1A;
}

body.light .cta-section h3 {
    color: #F1F1F1;
}

body.light .cta-section p {
    color: #A0A0A0;
}

/* Footer in light mode */
body.light footer {
    background: #1A1A1A;
}

body.light footer p {
    color: #F1F1F1;
}

/* First steps in light mode */
body.light .first-steps {
    background: var(--deep-space);
}

/* Mobile nav in light mode */
@media (max-width: 768px) {
    body.light .nav-links {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(0, 0, 0, 0.1);
    }

    body.light header {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    color: var(--orange);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
}

.theme-toggle:hover {
    border-color: var(--orange);
    background: rgba(249, 115, 22, 0.1);
}

body.light .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light .theme-toggle:hover {
    border-color: var(--orange);
    background: rgba(249, 115, 22, 0.08);
}

/* Icon swap */
.theme-toggle .icon-moon,
body.light .theme-toggle .icon-sun { display: none; }
body.light .theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: block; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .hero .glow-blob,
    .demo-hero .glow-blob {
        animation: none;
    }
    .grid-glow {
        transition: none;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
