/* ==========================================================================
   Tahreem Portfolio — Premium AI Agency Design System
   Customize colors, fonts, and spacing via CSS variables below.
   ========================================================================== */

:root {
    /* Colors - dark luxury AI palette */
    --color-bg: #050609;
    --color-bg-elevated: #090b12;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --color-text: #e8e8ed;
    --color-text-muted: #8b8b9a;
    --color-text-dim: #5a5a6e;

    --color-accent: #5eead4;
    --color-accent-light: #99f6e4;
    --color-accent-glow: rgba(94, 234, 212, 0.34);
    --color-accent-subtle: rgba(94, 234, 212, 0.1);
    --color-violet: #a78bfa;
    --color-gold: #f3d38b;
    --color-rose: #fb7185;

    --gradient-primary: linear-gradient(135deg, #5eead4 0%, #a78bfa 54%, #f3d38b 100%);
    --gradient-text: linear-gradient(135deg, #f6f7fb 0%, #99f6e4 38%, #a78bfa 72%, #f3d38b 100%);
    --gradient-glow: linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(167, 139, 250, 0.1), rgba(243, 211, 139, 0.08));

    /* Typography */
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --section-padding: clamp(5rem, 10vw, 8rem);
    --container-width: 1200px;
    --container-padding: clamp(1.25rem, 4vw, 2rem);

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 18px 70px rgba(94, 234, 212, 0.12), 0 0 40px rgba(167, 139, 250, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar */
    --nav-height: 72px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.site-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

::selection {
    background: var(--color-accent);
    color: #fff;
}

/* ─── Scroll Progress ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 9999;
    pointer-events: none;
}
.scroll-progress__bar {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform-origin: left;
    transform: scaleX(0);
}

/* ─── Three.js Canvas ─── */
.hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
.hero-canvas--fallback {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 50%),
                linear-gradient(225deg, rgba(243, 211, 139, 0.05), transparent 52%);
}

/* ─── Layout ─── */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 1;
}

.section--dark {
    background: var(--color-bg-elevated);
}

/* ─── Typography ─── */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 540px;
    line-height: 1.7;
}

.section-header { margin-bottom: 3.5rem; }
.section-header--center { text-align: center; }
.section-header--center .section-desc { margin: 0 auto; }

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--color-accent); }

/* ─── Glass Card ─── */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 22px rgba(94, 234, 212, 0.22), 0 10px 38px rgba(167, 139, 250, 0.12);
}
.btn--primary:hover {
    box-shadow: 0 6px 30px rgba(94, 234, 212, 0.3), 0 14px 42px rgba(243, 211, 139, 0.12);
    transform: translateY(-1px);
}

.btn--ghost {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: transparent;
}
.btn--ghost:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* Shine effect on primary CTAs */
.shine-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: none;
}
.shine-btn:hover::after {
    animation: btnShine 0.8s ease;
}
@keyframes btnShine {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* ─── Tag ─── */
.tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar--scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 10;
}

.navbar__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(247, 240, 216, 0.86), rgba(101, 215, 255, 0.72), rgba(138, 124, 255, 0.72));
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(101, 215, 255, 0.22);
    overflow: hidden;
}

.navbar__logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    background: var(--color-surface);
}

.navbar__logo-text {
    white-space: nowrap;
}

.navbar__nav { display: flex; }

.navbar__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    --underline-scale: 0;
    transition: color var(--transition);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(var(--underline-scale));
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar__link:hover { color: var(--color-text); }

.navbar__cta { display: none; }

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}

.navbar__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar--open .navbar__toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar--open .navbar__toggle-line:nth-child(2) { opacity: 0; }
.navbar--open .navbar__toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.hero__glow--1 {
    width: 500px; height: 500px;
    top: -10%; right: -5%;
    background: rgba(94, 234, 212, 0.12);
}
.hero__glow--2 {
    width: 400px; height: 400px;
    bottom: 10%; left: -10%;
    background: rgba(243, 211, 139, 0.08);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent-light);
    background: var(--color-accent-subtle);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero__badge-dot {
    width: 6px; height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero__title-line { display: block; }
.hero__title-line--accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 2.5rem;
}

.hero__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-dim);
}

/* Hero Visual / Orbit */
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero__orbit {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero__core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero__core-ring {
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__core-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100px; height: 100px;
    background: var(--glass-bg);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    justify-content: center;
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.hero__float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero__float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--color-accent-subtle);
    border-radius: 50%;
    color: var(--color-accent-light);
}

/* Badge positions around orbit */
.badge--1 { top: 5%; left: 50%; transform: translateX(-50%); }
.badge--2 { top: 25%; right: -5%; }
.badge--3 { bottom: 25%; right: -8%; }
.badge--4 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.badge--5 { top: 30%; left: -10%; }

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-dim);
    z-index: 2;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about__lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.about__text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about__cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__card {
    padding: 1.5rem;
    transition: border-color var(--transition);
}
.about__card:hover { border-color: var(--color-border-hover); }

.about__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-accent-light);
    margin-bottom: 1rem;
}

.about__card h3 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about__card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ECOSYSTEM
   ═══════════════════════════════════════════ */
.ecosystem__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.ecosystem__nodes {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    grid-template-areas:
        ". chat ."
        "call website whatsapp";
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    position: relative;
    width: 100%;
    max-width: 760px;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 2.5rem);
    overflow: visible;
}

.ecosystem__node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    text-align: center;
    transition: all var(--transition);
}

.ecosystem__node:hover {
    border-color: rgba(94, 234, 212, 0.3);
    box-shadow: var(--shadow-glow);
}

.ecosystem__node--center {
    grid-area: website;
    z-index: 2;
    padding: 1.5rem 2rem;
    min-width: min(220px, 100%);
}

.ecosystem__node--satellite {
    width: 100%;
    min-height: 145px;
    justify-content: center;
}

.ecosystem__node--satellite:nth-child(5) { grid-area: chat; }
.ecosystem__node--satellite:nth-child(6) { grid-area: whatsapp; }
.ecosystem__node--satellite:nth-child(7) { grid-area: call; }

.ecosystem__node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-subtle);
    color: var(--color-accent-light);
}

.ecosystem__node-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
}

.ecosystem__node-desc {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.ecosystem__connector {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.22), transparent);
    height: 1px;
    z-index: 1;
    pointer-events: none;
}
.ecosystem__connector--1 { top: 37%; left: 39%; width: 22%; transform: rotate(90deg); }
.ecosystem__connector--2 { bottom: 37%; right: 26%; width: 22%; transform: rotate(-18deg); }
.ecosystem__connector--3 { bottom: 37%; left: 26%; width: 22%; transform: rotate(18deg); }

.ecosystem__formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 600;
}

.ecosystem__formula-item {
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.ecosystem__formula-op {
    color: var(--color-accent);
    font-size: 1.25rem;
}

.ecosystem__formula-result {
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: #fff;
}

/* ═══════════════════════════════════════════
   SERVICES — Horizontal Scroll
   ═══════════════════════════════════════════ */
.services__scroll-wrapper {
    overflow: hidden;
    padding: 0 var(--container-padding);
}

.services__track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    width: max-content;
}

.service-card {
    position: relative;
    flex: 0 0 320px;
    padding: 2rem;
    transition: border-color var(--transition), transform var(--transition);
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(94, 234, 212, 0.25);
}

.service-card__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-md);
    color: var(--color-accent-light);
    margin-bottom: 1.25rem;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.service-card__index {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
}

/* ═══════════════════════════════════════════
   DEMOS
   ═══════════════════════════════════════════ */
.demos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.demo-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition);
    border-top: 2px solid transparent;
}

.demo-card:hover { border-color: var(--color-border-hover); }

.demo-card--purple { border-top-color: #a78bfa; }
.demo-card--orange { border-top-color: #f59e0b; }
.demo-card--teal { border-top-color: #14b8a6; }
.demo-card--blue { border-top-color: #3b82f6; }
.demo-card--pink { border-top-color: #ec4899; }
.demo-card--green { border-top-color: #22c55e; }

.demo-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.demo-card__field { margin-bottom: 1rem; }

.demo-card__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-light);
    margin-bottom: 0.35rem;
}

.demo-card__field p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.demo-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent-light);
    transition: gap var(--transition);
}
.demo-card__cta:hover { gap: 0.75rem; }

/* ═══════════════════════════════════════════
   PROCESS TIMELINE
   ═══════════════════════════════════════════ */
.process__timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process__line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.process__line-fill {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform-origin: top;
    transform: scaleY(0);
}

.process__step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.process__marker {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
}

.process__num {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.process__content {
    flex: 1;
    padding: 1.5rem;
}

.process__title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════
   TECH STACK
   ═══════════════════════════════════════════ */
.tech__categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.tech__category-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.tech__list { display: flex; flex-direction: column; gap: 0.75rem; }

.tech__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.tech__dot {
    width: 6px; height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.tech__orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tech__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.tech__orb--1 { width: 300px; height: 300px; top: 10%; right: 10%; background: rgba(94,234,212,0.06); }
.tech__orb--2 { width: 200px; height: 200px; bottom: 20%; left: 15%; background: rgba(243,211,139,0.05); }
.tech__orb--3 { width: 250px; height: 250px; top: 50%; left: 50%; background: rgba(167,139,250,0.04); }

/* ═══════════════════════════════════════════
   CASE STUDY
   ═══════════════════════════════════════════ */
.case-study__wrapper {
    padding: clamp(2rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.case-study__lead {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-top: 1rem;
}

.case-study__factors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.case-study__factor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color var(--transition);
}
.case-study__factor:hover { border-color: var(--color-border-hover); }

.case-study__factor-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--color-accent-subtle);
    border-radius: var(--radius-sm);
    color: var(--color-accent-light);
    flex-shrink: 0;
}

.case-study__cta {
    grid-column: 1 / -1;
    justify-self: start;
}

/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact__desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.contact__link:hover { color: var(--color-accent-light); }

.contact__form {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    scroll-margin-top: 120px;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-input {
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder { color: var(--color-text-dim); }

.form-input--focused {
    border-color: rgba(94, 234, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.14), 0 0 20px rgba(94, 234, 212, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8b9a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-status {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-status--success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.form-status--error {
    color: #fecdd3;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.28);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--color-text-dim);
    margin-top: 0.75rem;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer__nav a {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--color-text); }

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8125rem;
    color: var(--color-text-dim);
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    color: var(--color-text);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}
.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
}

/* ==========================================================================
   PREMIUM EXPERIENCE REFINEMENTS
   This layer controls the luxury AI atmosphere without adding heavy assets.
   ========================================================================== */
body.site-body {
    background:
        linear-gradient(180deg, rgba(5, 6, 9, 0.96) 0%, rgba(9, 11, 18, 0.98) 48%, rgba(5, 6, 9, 1) 100%),
        linear-gradient(135deg, rgba(94, 234, 212, 0.1), transparent 28%),
        linear-gradient(225deg, rgba(243, 211, 139, 0.08), transparent 26%);
}

main {
    position: relative;
    isolation: isolate;
}

main::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 75%);
}

.section {
    overflow: clip;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(94, 234, 212, 0.035) 38%, transparent 68%),
        linear-gradient(240deg, transparent 0%, rgba(243, 211, 139, 0.025) 42%, transparent 70%);
}

.section--dark {
    background:
        linear-gradient(180deg, rgba(10, 13, 22, 0.88), rgba(5, 6, 9, 0.92)),
        rgba(9, 11, 18, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.glass-card,
.service-card,
.demo-card,
.contact__form,
.case-study__wrapper {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
        rgba(8, 10, 16, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 60px rgba(0, 0, 0, 0.22);
}

.hero {
    min-height: 100svh;
}

.hero__glow {
    display: none;
}

.hero::before {
    opacity: 0.9;
    background:
        linear-gradient(125deg, rgba(94, 234, 212, 0.12), transparent 35%),
        linear-gradient(235deg, rgba(167, 139, 250, 0.12), transparent 40%),
        linear-gradient(0deg, rgba(243, 211, 139, 0.05), transparent 45%);
}

.hero__grid {
    min-height: calc(100svh - var(--nav-height));
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero__title {
    max-width: 760px;
}

.hero__badge,
.section-label {
    letter-spacing: 0.14em;
}

.hero__visual {
    perspective: 1000px;
}

.hero__orbit {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent),
        radial-gradient(ellipse at center, rgba(94, 234, 212, 0.12), transparent 62%);
    box-shadow: inset 0 0 80px rgba(94, 234, 212, 0.07), 0 28px 90px rgba(0, 0, 0, 0.34);
}

.hero__orbit::before,
.hero__orbit::after {
    content: '';
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 50%;
}

.hero__orbit::after {
    inset: 26%;
    border-color: rgba(94, 234, 212, 0.16);
}

.hero__core-inner {
    background:
        linear-gradient(145deg, rgba(94, 234, 212, 0.14), rgba(167, 139, 250, 0.12)),
        rgba(8, 10, 16, 0.86);
}

.hero__float-badge {
    border-color: rgba(255, 255, 255, 0.12);
}

.services__scroll-wrapper {
    position: relative;
}

.services__scroll-wrapper::before,
.services__scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10vw;
    z-index: 2;
    pointer-events: none;
}

.services__scroll-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg), transparent);
}

.services__scroll-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-bg), transparent);
}

.service-card,
.demo-card {
    min-height: 270px;
}

.demo-card__cta:focus-visible,
.navbar__link:focus-visible,
.contact__link:focus-visible,
.btn:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.tech__orbs {
    background:
        linear-gradient(115deg, rgba(94, 234, 212, 0.055), transparent 32%),
        linear-gradient(245deg, rgba(243, 211, 139, 0.035), transparent 36%);
}

.tech__orb {
    display: none;
}

.contact__form {
    position: relative;
}

.contact__form::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 34%, rgba(243, 211, 139, 0.06));
    opacity: 0.7;
}

.contact__form > * {
    position: relative;
}

.contact__form .btn--full {
    grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (min-width: 769px) {
    .navbar__cta { display: inline-flex; }
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__visual { min-height: 300px; }
    .hero__orbit { width: 300px; height: 300px; transform: scale(0.85); }

    .about__grid { grid-template-columns: 1fr; }
    .tech__categories { grid-template-columns: 1fr; gap: 2.5rem; }
    .case-study__wrapper { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar__nav {
        position: fixed;
        inset: 0;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .navbar--open .navbar__nav {
        opacity: 1;
        visibility: visible;
    }

    .navbar__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .navbar__link { font-size: 1.25rem; }
    .navbar__toggle { display: flex; }

    .hero__stats { flex-direction: column; gap: 1rem; align-items: center; }
    .hero__visual { display: none; }
    .hero__scroll-hint { display: none; }

    .services__scroll-wrapper {
        overflow: visible;
        padding-inline: var(--container-padding);
    }

    .services__scroll-wrapper::before,
    .services__scroll-wrapper::after {
        display: none;
    }

    .services__track {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: none;
        padding: 1rem 0 1.25rem;
        transform: none !important;
        will-change: auto;
    }

    .service-card {
        width: 100%;
        min-height: auto;
        padding: 1.5rem;
    }

    .demos__grid { grid-template-columns: 1fr; }
    .contact__form { grid-template-columns: 1fr; padding: 1.5rem; }
    .case-study__factors { grid-template-columns: 1fr; }

    .ecosystem__nodes { height: auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
    .ecosystem__node { position: static !important; transform: none !important; width: 100%; max-width: 280px; }
    .ecosystem__connector { display: none; }

    .process__step { gap: 1rem; }
    .process__line { left: 18px; }
    .process__marker { width: 38px; height: 38px; }

    .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-canvas { display: none; }
    .hero__scroll-line { animation: none; }
    .hero__badge-dot { animation: none; }
    .hero__core-ring { animation: none; }
}
