/* ── TOKENS ── */
:root {
    --bg: #FAFAFC;
    --text: #0F0F14;
    --text-2: #5A5A72;
    --text-3: #9898B0;
    --border: rgba(100,80,200,0.1);
    --border-mid: rgba(100,80,200,0.18);
    --nav-bg: rgba(250,250,252,0.75);
    --glass: rgba(255,255,255,0.55);
    --glass-border: rgba(255,255,255,0.75);
    --card-bg: rgba(255,255,255,0.48);
    --card-border: rgba(100,80,200,0.12);
    --tag-bg: rgba(100,80,200,0.07);
    --tag-color: #5A3FC0;
    --stat-bg: rgba(255,255,255,0.5);
    --cap-bg: rgba(255,255,255,0.42);
    --manifesto-bg: rgba(255,255,255,0.5);
    --footer-bg: rgba(255,255,255,0.4);
    /* Blue-purple orbs */
    --orb1: #8B6FE8;
    --orb2: #5B8DEF;
    --orb3: #C084FC;
    --orb4: #60A5FA;
    --orb5: #A78BFA;
    --grad-a: #6D4AE8;
    --grad-b: #3B82F6;
}

[data-theme="dark"] {
    --bg: #07070F;
    --text: #F0F0FA;
    --text-2: #8888A8;
    --text-3: #55556A;
    --border: rgba(130,100,255,0.1);
    --border-mid: rgba(130,100,255,0.2);
    --nav-bg: rgba(7,7,15,0.78);
    --glass: rgba(18,16,36,0.55);
    --glass-border: rgba(130,100,255,0.12);
    --card-bg: rgba(18,16,36,0.55);
    --card-border: rgba(130,100,255,0.14);
    --tag-bg: rgba(130,100,255,0.12);
    --tag-color: #B09EFF;
    --stat-bg: rgba(14,12,28,0.65);
    --cap-bg: rgba(14,12,28,0.5);
    --manifesto-bg: rgba(14,12,28,0.6);
    --footer-bg: rgba(7,7,15,0.6);
    --orb1: #2E1B8A;
    --orb2: #1A3A7A;
    --orb3: #4A1A7A;
    --orb4: #1A2F6A;
    --orb5: #3A1A6A;
    --grad-a: #8B6FE8;
    --grad-b: #60A5FA;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

body {
    background: transparent;
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: color 0.5s ease;
}

.container { max-width:1140px; margin:0 auto; padding:0 40px; }

/* ── MESH BACKGROUND ── */
.mesh-bg {
    position:fixed; inset:0; z-index:-1;
    background: var(--bg);
    overflow:hidden;
    transition: background 0.5s ease;
    animation: bg-breathe 60s ease-in-out infinite;
}

.orb {
    position:absolute; border-radius:50%;
    filter:blur(140px);
    will-change:transform, border-radius;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: background-color 0.5s ease;
}

/* Each orb gets its own size, color, opacity, and timing offset */
.orb-1 {
    width:60vw; height:60vw;
    top:-14%; left:-10%;
    background:var(--orb1);
    opacity:0.24;
    animation: drift-1 32s ease-in-out infinite alternate;
}
.orb-2 {
    width:50vw; height:50vw;
    top:28%; right:-14%;
    background:var(--orb2);
    opacity:0.20;
    animation: drift-2 40s ease-in-out infinite alternate;
    animation-delay: -10s;
}
.orb-3 {
    width:65vw; height:65vw;
    bottom:-20%; left:10%;
    background:var(--orb3);
    opacity:0.16;
    animation: drift-3 27s ease-in-out infinite alternate;
    animation-delay: -6s;
}
.orb-4 {
    width:40vw; height:40vw;
    top:6%; left:30%;
    background:var(--orb4);
    opacity:0.13;
    animation: drift-4 35s ease-in-out infinite alternate;
    animation-delay: -18s;
}
.orb-5 {
    width:34vw; height:34vw;
    bottom:10%; right:6%;
    background:var(--orb5);
    opacity:0.15;
    animation: drift-5 24s ease-in-out infinite alternate;
    animation-delay: -4s;
}

.noise-overlay {
    position:absolute; inset:0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    background-size:256px 256px;
    pointer-events:none; opacity:0.6;
}

/* ── Organic drift keyframes — 5 waypoints each, all different paths ── */
@keyframes drift-1 {
    0%   { transform: translate(0,0)          scale(1)    ; border-radius: 50% 55% 48% 60%; }
    20%  { transform: translate(6vw, 8vh)     scale(1.08) ; border-radius: 60% 48% 55% 45%; }
    40%  { transform: translate(12vw,-3vh)    scale(0.96) ; border-radius: 45% 62% 50% 52%; }
    60%  { transform: translate(4vw, 12vh)    scale(1.12) ; border-radius: 55% 45% 60% 48%; }
    80%  { transform: translate(9vw, -7vh)    scale(1.04) ; border-radius: 48% 55% 45% 58%; }
    100% { transform: translate(2vw,  5vh)    scale(0.94) ; border-radius: 52% 48% 58% 46%; }
}

@keyframes drift-2 {
    0%   { transform: translate(0,0)           scale(1)    ; border-radius: 50% 60% 45% 55%; }
    25%  { transform: translate(-8vw,-6vh)     scale(1.1)  ; border-radius: 62% 44% 58% 48%; }
    50%  { transform: translate(-2vw, 10vh)    scale(0.92) ; border-radius: 48% 56% 46% 62%; }
    75%  { transform: translate(-11vw, 4vh)    scale(1.06) ; border-radius: 56% 48% 62% 44%; }
    100% { transform: translate(-5vw,-9vh)     scale(0.97) ; border-radius: 44% 58% 50% 54%; }
}

@keyframes drift-3 {
    0%   { transform: translate(0,0)           scale(1)    ; border-radius: 55% 48% 60% 45%; }
    20%  { transform: translate(7vw,-8vh)      scale(1.07) ; border-radius: 45% 60% 48% 58%; }
    45%  { transform: translate(-6vw,-4vh)     scale(0.93) ; border-radius: 60% 50% 44% 62%; }
    65%  { transform: translate(10vw, 6vh)     scale(1.14) ; border-radius: 50% 44% 60% 50%; }
    85%  { transform: translate(-3vw, 11vh)    scale(1.02) ; border-radius: 44% 58% 52% 48%; }
    100% { transform: translate(5vw,-5vh)      scale(0.96) ; border-radius: 58% 52% 48% 56%; }
}

@keyframes drift-4 {
    0%   { transform: translate(0,0)           scale(1)    rotate(0deg)  ; border-radius: 50%; }
    30%  { transform: translate(-5vw, 6vh)     scale(1.15) rotate(22deg) ; border-radius: 58% 46% 52% 60%; }
    60%  { transform: translate(8vw,  2vh)     scale(0.9)  rotate(-16deg); border-radius: 46% 60% 48% 52%; }
    100% { transform: translate(-3vw,-5vh)     scale(1.08) rotate(10deg) ; border-radius: 54% 50% 56% 44%; }
}

@keyframes drift-5 {
    0%   { transform: translate(0,0)           scale(1)    ; border-radius: 50% 55% 50% 58%; }
    25%  { transform: translate(4vw,-10vh)     scale(1.18) ; border-radius: 60% 48% 56% 46%; }
    55%  { transform: translate(-6vw, 5vh)     scale(0.88) ; border-radius: 46% 58% 48% 60%; }
    80%  { transform: translate(7vw,  8vh)     scale(1.1)  ; border-radius: 54% 46% 62% 50%; }
    100% { transform: translate(-4vw,-3vh)     scale(0.95) ; border-radius: 48% 62% 44% 56%; }
}

/* ── Slow hue + brightness breathe on the whole mesh layer ── */
@keyframes bg-breathe {
    0%   { filter: hue-rotate(0deg)   brightness(1);    }
    18%  { filter: hue-rotate(14deg)  brightness(1.03); }
    36%  { filter: hue-rotate(28deg)  brightness(1.05); }
    55%  { filter: hue-rotate(18deg)  brightness(1.02); }
    72%  { filter: hue-rotate(8deg)   brightness(1.04); }
    88%  { filter: hue-rotate(22deg)  brightness(1.02); }
    100% { filter: hue-rotate(0deg)   brightness(1);    }
}



/* ── NAV ── */
.navigation {
    position:fixed; top:0; width:100%; height:58px;
    background:var(--nav-bg);
    backdrop-filter:blur(30px) saturate(180%);
    -webkit-backdrop-filter:blur(30px) saturate(180%);
    border-bottom:1px solid var(--border);
    z-index:200;
    transition:background 0.5s ease, border-color 0.5s ease;
}

/* ── Fix anchor links cutting off under the fixed nav ── */
html {
    scroll-padding-top: 80px;
}
/* Belt-and-suspenders for older browsers */
#product, #disciplines, #capabilities, #contact {
    scroll-margin-top: 80px;
}

.nav-container {
    display:flex; justify-content:space-between; align-items:center;
    height:100%; max-width:1140px; margin:0 auto; padding:0 40px;
}

/* Logo */
.logo {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.5s ease;
}

.footer-logo {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.5s ease;
    margin-bottom: 6px;
}

/* ── App4That gradient wordmark ── */
.wordmark {
    display: inline-block;
    background: linear-gradient(125deg, #7C4FE0 0%, #6D4AE8 30%, #4F8EF7 70%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.035em;
    font-style: normal;
}
/* Slightly softer in dark mode so it doesn't blow out */
[data-theme="dark"] .wordmark {
    background: linear-gradient(125deg, #9B78FF 0%, #7C4FE0 30%, #60A5FA 70%, #67E8F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
}



.nav-center {
    display: flex;
    gap: 4px;       /* tighter — pill needs less gap than raw text */
    position: relative;
}

/* ── Gliding pill (injected by JS) ── */
.nav-pill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid transparent;
    background-clip: padding-box;
    /* gradient border trick */
    box-shadow:
        inset 0 0 0 1px rgba(124,79,224,0.25),
        0 0 14px rgba(124,79,224,0.12),
        0 2px 8px rgba(0,0,0,0.08);
    pointer-events: none;
    opacity: 0;
    transition:
        left   0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
        width  0.32s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity 0.18s ease;
    z-index: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-pill.visible { opacity: 1; }

.nav-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-2);
    text-decoration: none;
    letter-spacing: 0.01em;
    padding: 6px 14px;
    border-radius: 100px;
    position: relative;
    z-index: 1;
    /* gradient text on hover */
    background: linear-gradient(125deg, #7C4FE0 0%, #6D4AE8 35%, #4F8EF7 75%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--text-2);
    transition: -webkit-text-fill-color 0.2s ease;
}
.nav-link:hover,
.nav-link.nav-active {
    -webkit-text-fill-color: transparent;
}


/* ── CELESTIAL THEME TOGGLE ── */
.celestial-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 100px;
    transition: background 0.3s ease;
}
.celestial-toggle:hover { background: rgba(109,74,232,0.06); }

/* The container that holds everything */
.celestial-body {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* Glowing core orb */
.orb-core {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD93D, #FF8C42);
    box-shadow: 0 0 12px 4px rgba(255,200,50,0.5),
                0 0 28px 8px rgba(255,160,30,0.25);
    transition: background 0.6s ease, box-shadow 0.6s ease, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 2;
}

/* Eclipse disc — slides in from top-right to cover core */
.eclipse-disc {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1A1030;
    z-index: 3;
    top: 2px;
    right: 2px;
    transform: translate(14px, -14px) scale(0.4);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.34,1.1,0.64,1),
                opacity 0.3s ease;
    box-shadow: -3px 3px 12px rgba(0,0,0,0.5);
}

/* Sun Rays */
.rays {
    position: absolute;
    inset: 0;
    animation: spin-rays 12s linear infinite;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.ray {
    position: absolute;
    width: 2px;
    height: 6px;
    background: linear-gradient(to bottom, rgba(255,210,50,0.9), transparent);
    border-radius: 2px;
    left: 50%;
    transform-origin: 50% 18px;
    margin-left: -1px;
    top: 0;
}

/* Position 8 rays evenly */
.ray:nth-child(1)  { transform: rotate(0deg); }
.ray:nth-child(2)  { transform: rotate(45deg); }
.ray:nth-child(3)  { transform: rotate(90deg); }
.ray:nth-child(4)  { transform: rotate(135deg); }
.ray:nth-child(5)  { transform: rotate(180deg); }
.ray:nth-child(6)  { transform: rotate(225deg); }
.ray:nth-child(7)  { transform: rotate(270deg); }
.ray:nth-child(8)  { transform: rotate(315deg); }

@keyframes spin-rays {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Stars hidden in light mode */
.stars { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.star-1 { width: 3px; height: 3px; top: 2px;  left: 4px;  transition-delay: 0.3s; }
.star-2 { width: 2px; height: 2px; top: 8px;  right: 1px; transition-delay: 0.45s; }
.star-3 { width: 2px; height: 2px; bottom: 3px; left: 6px; transition-delay: 0.55s; }

@keyframes twinkle {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.2; transform: scale(0.6); }
}

[data-theme="dark"] .star-1 { animation: twinkle 1.6s ease-in-out infinite; animation-delay: 0s; }
[data-theme="dark"] .star-2 { animation: twinkle 2.2s ease-in-out infinite; animation-delay: 0.7s; }
[data-theme="dark"] .star-3 { animation: twinkle 1.9s ease-in-out infinite; animation-delay: 1.3s; }

/* Celestial label */
.celestial-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color 0.5s ease, opacity 0.4s ease;
    user-select: none;
    min-width: 32px;
}

/* ── CLOUD PUFF (light mode only) ── */
.cloud-puff {
    position: absolute;
    bottom: 0px;
    right: -2px;
    width: 16px;
    height: 8px;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: cloud-drift 5s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.cloud-bump {
    position: absolute;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
}
.cloud-bump-1 { width:10px; height:10px; top:-5px; left:2px; }
.cloud-bump-2 { width:7px;  height:7px;  top:-3px; left:8px; }

@keyframes cloud-drift {
    0%,100% { transform: translateX(0px) translateY(0px); }
    50%      { transform: translateX(2px) translateY(-1px); }
}
[data-theme="dark"] .cloud-puff { opacity: 0; pointer-events: none; }

/* ── BIRDS (light / sun mode only) ── */
.birds {
    position: absolute;
    inset: 0;
    z-index: 6;           /* above cloud (z5) */
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.bird {
    position: absolute;
    color: rgba(30, 20, 55, 0.75);   /* dark ink, slightly translucent */
    overflow: visible;
}

/* bird-1: upper-left over sun, larger, soars slowly */
.bird-1 {
    width: 12px;
    height: 6px;
    top: -1px;
    left: 2px;
    animation: soar-1 4.2s ease-in-out infinite;
}

/* bird-2: upper-right over sun, smaller, different phase */
.bird-2 {
    width: 9px;
    height: 5px;
    top: 1px;
    left: 19px;
    animation: soar-2 5.1s ease-in-out infinite;
    animation-delay: -1.8s;
}

@keyframes soar-1 {
    0%,100% { transform: translate(0px, 0px)  scaleX(1);   }
    30%     { transform: translate(1px, -2px) scaleX(1.05); }
    60%     { transform: translate(2px, -1px) scaleX(0.97); }
    80%     { transform: translate(1px,  1px) scaleX(1.02); }
}

@keyframes soar-2 {
    0%,100% { transform: translate(0px,  0px) scaleX(1);   }
    25%     { transform: translate(-1px,-1.5px) scaleX(0.96); }
    55%     { transform: translate(1px, -2px) scaleX(1.04); }
    78%     { transform: translate(2px,  0px) scaleX(0.98); }
}

/* Hide in dark mode — stars take over */
[data-theme="dark"] .birds { opacity: 0; }



/* ═══════════════════════════════════
   PRODUCT SPOTLIGHT
═══════════════════════════════════ */
.product-focus { padding: 40px 0 64px; }

/* ── Card base: always dark navy + red/purple mesh regardless of theme ── */
.product-spotlight {
    background:
        radial-gradient(ellipse at 88% 12%, rgba(210, 20, 75, 0.42) 0%, transparent 46%),
        radial-gradient(ellipse at 12% 88%, rgba(120, 35, 230, 0.48) 0%, transparent 50%),
        radial-gradient(ellipse at 52% 52%, rgba(55, 18, 175, 0.28) 0%, transparent 42%),
        radial-gradient(ellipse at 70% 80%, rgba(180, 15, 60, 0.2) 0%, transparent 38%),
        #060A1E;
    border: 1.5px solid rgba(190, 70, 230, 0.38);
    border-radius: 28px;
    padding: 52px;
    box-shadow:
        0 0 0 5px rgba(180, 20, 80, 0.07),
        0 0 50px rgba(130, 40, 210, 0.18),
        0 8px 32px rgba(0, 0, 40, 0.45),
        0 40px 100px rgba(0, 0, 20, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}
/* Slightly more vivid in dark mode since the whole page is dark */
[data-theme="dark"] .product-spotlight {
    border-color: rgba(200, 80, 240, 0.45);
    box-shadow:
        0 0 0 5px rgba(200, 30, 100, 0.09),
        0 0 60px rgba(140, 50, 225, 0.22),
        0 8px 32px rgba(0, 0, 50, 0.55),
        0 40px 100px rgba(0, 0, 20, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Animated top-right glow sweep */
.product-spotlight::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle,
        rgba(210, 30, 80, 0.22) 0%,
        rgba(130, 40, 210, 0.14) 40%,
        transparent 70%);
    pointer-events: none;
    animation: card-glow-pulse 6s ease-in-out infinite;
}
/* Second accent — bottom left purple bloom */
.product-spotlight::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle,
        rgba(120, 30, 220, 0.2) 0%,
        rgba(180, 20, 70, 0.1) 45%,
        transparent 70%);
    pointer-events: none;
    animation: card-glow-pulse 6s ease-in-out infinite reverse;
}
@keyframes card-glow-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.65; transform: scale(1.1); }
}

.product-spotlight-inner {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    align-items: flex-start;
    position: relative; /* sit above ::before/::after */
    z-index: 1;
}
@media (max-width: 768px) {
    .product-spotlight-inner { grid-template-columns: 1fr; }
    .product-spotlight-icon { display: none; }
}

/* Icon — red/purple tint */
.product-spotlight-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, rgba(210,30,80,0.25) 0%, rgba(120,40,220,0.25) 100%);
    border: 1px solid rgba(200, 80, 230, 0.35);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D080FF;
    flex-shrink: 0;
}

/* ── All text inside the card is permanently light ── */
.product-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4ADE80;
    margin-bottom: 14px;
}

.product-spotlight-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #F0EEFF;
    margin-bottom: 8px;
}

.product-spotlight-sub {
    font-size: 16px;
    font-weight: 400;
    color: rgba(210, 200, 240, 0.82);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-spotlight-body {
    font-size: 15px;
    font-weight: 300;
    color: rgba(190, 182, 225, 0.72);
    line-height: 1.75;
    margin-bottom: 14px;
}
.product-spotlight-body strong {
    color: #EDE8FF;
    font-weight: 500;
}

.product-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin: 24px 0;
}
@media (max-width: 600px) { .product-feature-grid { grid-template-columns: 1fr; } }

.product-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(195, 185, 230, 0.75);
}
.product-feature-item svg { color: #4ADE80; flex-shrink: 0; }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 28px;
}

.product-tag {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255,255,255,0.07);
    color: rgba(210, 200, 240, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
}
.product-tag--apple {
    background: rgba(190, 60, 230, 0.22);
    color: #D890FF;
    border-color: rgba(190, 70, 230, 0.38);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #FF80A8;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 100, 140, 0.35);
    padding-bottom: 2px;
    transition: border-color 0.2s ease, gap 0.2s ease;
}
.product-link:hover { border-color: #FF80A8; gap: 8px; }


/* ═══════════════════════════════════
   DARK MODE STATE
═══════════════════════════════════ */
[data-theme="dark"] .orb-core {
    background: linear-gradient(135deg, #B8C5E0, #8899CC);
    box-shadow: 0 0 10px 3px rgba(150,170,220,0.25),
                0 0 24px 6px rgba(100,130,200,0.12);
    transform: scale(0.88);
}

[data-theme="dark"] .eclipse-disc {
    transform: translate(4px, -4px) scale(1);
    opacity: 1;
}

[data-theme="dark"] .rays {
    opacity: 0;
    animation-play-state: paused;
}

[data-theme="dark"] .star {
    opacity: 1;
    transform: scale(1);
}

/* Pulse animation on the orb in dark mode (moon shimmer) */
[data-theme="dark"] .orb-core {
    animation: moon-shimmer 4s ease-in-out infinite alternate;
}

@keyframes moon-shimmer {
    0%   { box-shadow: 0 0 10px 3px rgba(150,170,220,0.25), 0 0 24px 6px rgba(100,130,200,0.12); }
    100% { box-shadow: 0 0 14px 5px rgba(170,190,240,0.35), 0 0 36px 10px rgba(120,150,220,0.18); }
}

/* Light mode orb pulse */
.orb-core {
    animation: sun-pulse 3s ease-in-out infinite alternate;
}

@keyframes sun-pulse {
    0%   { box-shadow: 0 0 12px 4px rgba(255,200,50,0.5), 0 0 28px 8px rgba(255,160,30,0.25); }
    100% { box-shadow: 0 0 18px 6px rgba(255,210,60,0.65), 0 0 40px 12px rgba(255,160,30,0.35); }
}



/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.8s cubic-bezier(0.4,0,0.2,1),transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.revealed { opacity:1; transform:none; }
.reveal-d1 { transition-delay:0.1s; }
.reveal-d2 { transition-delay:0.2s; }
.reveal-d3 { transition-delay:0.32s; }
.reveal-d4 { transition-delay:0.44s; }
.reveal-d5 { transition-delay:0.56s; }

/* ── HERO ── */
.hero { padding:170px 0 80px; text-align:center; }
.hero-container { max-width:860px; margin:0 auto; padding:0 40px; display:flex; flex-direction:column; align-items:center; }

.hero-badge {
    display:inline-flex; align-items:center; gap:10px;
    font-size:11px; font-weight:500; letter-spacing:0.12em; text-transform:uppercase;
    color:var(--text-2); margin-bottom:28px;
    background:var(--glass); border:1px solid var(--glass-border);
    padding:8px 18px; border-radius:100px;
    backdrop-filter:blur(12px);
    transition:background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.badge-pulse {
    width:7px; height:7px; border-radius:50%;
    background:linear-gradient(135deg,var(--grad-a),var(--grad-b));
    animation:pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.6);opacity:0.6} }

.hero-title {
    font-size:clamp(56px,9vw,120px); font-weight:700;
    letter-spacing:-0.038em; line-height:1.0;
    color:var(--text); margin-bottom:28px;
    transition:color 0.5s ease;
}

.gradient-text {
    background:linear-gradient(135deg,var(--grad-a) 0%,var(--grad-b) 100%);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}

.hero-sub {
    font-size:clamp(16px,1.6vw,19px); font-weight:300; color:var(--text-2);
    line-height:1.7; max-width:620px; margin-bottom:44px;
    transition:color 0.5s ease;
}

.hero-actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; justify-content:center; margin-bottom:56px; }

.btn-primary {
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 30px; border-radius:100px; text-decoration:none;
    font-size:14px; font-weight:500; letter-spacing:0.01em;
    background:linear-gradient(135deg,var(--grad-a),var(--grad-b));
    color:#fff;
    box-shadow:0 4px 24px rgba(109,74,232,0.35);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform:scale(1.04); box-shadow:0 8px 36px rgba(109,74,232,0.45); }

.hero-note { font-size:13px; font-weight:300; color:var(--text-3); transition:color 0.5s ease; }

/* Hero Glass Stat Card */
.hero-glass-card {
    display:flex; align-items:center;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(109,74,232,0.07) 0%, transparent 52%),
        radial-gradient(ellipse at 10% 90%, rgba(59,130,246,0.06) 0%, transparent 48%),
        var(--glass);
    border:1px solid var(--glass-border);
    backdrop-filter:blur(24px) saturate(160%);
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    border-radius:24px; padding:32px 48px; gap:0; width:100%;
    box-shadow:0 2px 40px rgba(109,74,232,0.06),0 1px 3px rgba(0,0,0,0.04),inset 0 1px 0 rgba(255,255,255,0.7);
    transition:background 0.5s ease, border-color 0.5s ease;
}

.hgc-stat { flex:1; text-align:center; display:flex; flex-direction:column; gap:8px; }
.hgc-num { font-size:clamp(30px,3.5vw,44px); font-weight:700; letter-spacing:-0.03em; color:var(--text); line-height:1; transition:color 0.5s ease; }
.hgc-num sup { font-size:0.44em; font-weight:600; vertical-align:super; }
.hgc-lbl { font-size:11px; font-weight:400; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-3); transition:color 0.5s ease; }
.hgc-divider { width:1px; height:44px; background:var(--border-mid); margin:0 32px; flex-shrink:0; transition:background 0.5s ease; }

/* ── SECTION COMMONS ── */
.section-header { text-align:center; margin-bottom:56px; }
.section-eyebrow { display:block; font-size:11px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-3); margin-bottom:16px; transition:color 0.5s ease; }
.section-title { font-size:clamp(30px,4vw,50px); font-weight:700; letter-spacing:-0.025em; line-height:1.1; color:var(--text); transition:color 0.5s ease; }
.section-sub { font-size:16px; font-weight:300; color:var(--text-3); margin-top:14px; transition:color 0.5s ease; }

/* ── SERVICES ── */
.services { padding:40px 0 64px; }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }

/* Liquid Glass Card */
.glass-card {
    position:relative; border-radius:26px; overflow:hidden;
    display:flex; flex-direction:column;
    transition:transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover { transform:translateY(-7px); }

.glass-card--primary {
    background:
        radial-gradient(ellipse at 95% 8%,  rgba(139,92,246,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 8%  90%, rgba(59,130,246,0.05) 0%, transparent 48%),
        radial-gradient(ellipse at 55% 55%, rgba(236,72,153,0.03) 0%, transparent 40%),
        var(--card-bg);
    border:1px solid var(--card-border);
    backdrop-filter:blur(22px) saturate(160%);
    -webkit-backdrop-filter:blur(22px) saturate(160%);
    box-shadow:0 2px 32px rgba(109,74,232,0.05),inset 0 1px 0 rgba(255,255,255,0.65);
    padding:40px 32px;
    transition:background 0.5s ease, border-color 0.5s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.glass-card--primary:hover {
    border-color:rgba(109,74,232,0.28);
    box-shadow:0 12px 48px rgba(109,74,232,0.12),inset 0 1px 0 rgba(255,255,255,0.8);
}

.glass-card--featured {
    background:linear-gradient(145deg, rgba(109,74,232,0.10) 0%, rgba(59,130,246,0.08) 100%);
    border:1px solid rgba(109,74,232,0.22);
    backdrop-filter:blur(26px) saturate(200%);
    -webkit-backdrop-filter:blur(26px) saturate(200%);
    box-shadow:0 4px 40px rgba(109,74,232,0.14),inset 0 1px 0 rgba(255,255,255,0.5);
    padding:40px 32px;
    transition:background 0.5s ease, border-color 0.5s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.glass-card--featured:hover {
    border-color:rgba(109,74,232,0.4);
    box-shadow:0 16px 60px rgba(109,74,232,0.22),inset 0 1px 0 rgba(255,255,255,0.6);
}

[data-theme="dark"] .glass-card--featured {
    background:linear-gradient(145deg, rgba(109,74,232,0.15) 0%, rgba(59,130,246,0.1) 100%);
}

/* ── Dark-mode mesh gradient boosts ── */
[data-theme="dark"] .glass-card--primary {
    background:
        radial-gradient(ellipse at 95% 8%,  rgba(139,92,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 8%  90%, rgba(59,130,246,0.09) 0%, transparent 48%),
        radial-gradient(ellipse at 55% 55%, rgba(236,72,153,0.05) 0%, transparent 40%),
        var(--card-bg);
}
[data-theme="dark"] .cap-card {
    background:
        radial-gradient(ellipse at 95% 5%,  rgba(109,74,232,0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 5%  95%, rgba(59,130,246,0.10) 0%, transparent 48%),
        var(--cap-bg);
}
[data-theme="dark"] .manifesto-glass {
    background:
        radial-gradient(ellipse at 100% 0%,   rgba(109,74,232,0.16) 0%, transparent 45%),
        radial-gradient(ellipse at 0%   100%,  rgba(59,130,246,0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50%  50%,   rgba(236,72,153,0.05) 0%, transparent 38%),
        var(--manifesto-bg);
}
[data-theme="dark"] .hero-glass-card {
    background:
        radial-gradient(ellipse at 90% 10%, rgba(109,74,232,0.13) 0%, transparent 52%),
        radial-gradient(ellipse at 10% 90%, rgba(59,130,246,0.10) 0%, transparent 48%),
        var(--glass);
}


.gc-featured-glow {
    position:absolute; top:-40%; left:50%; transform:translateX(-50%);
    width:70%; height:80%; border-radius:50%;
    background:radial-gradient(ellipse,rgba(109,74,232,0.18) 0%,transparent 70%);
    pointer-events:none; filter:blur(24px);
    animation:glow-pulse 4s ease-in-out infinite alternate;
}
@keyframes glow-pulse { 0%{opacity:0.6} 100%{opacity:1} }

.gc-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:32px; }

.gc-icon {
    width:46px; height:46px; border-radius:14px;
    background:var(--tag-bg); border:1px solid var(--card-border);
    display:flex; align-items:center; justify-content:center;
    color:var(--text-2);
    transition:background 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}

.gc-num { font-size:11px; font-weight:600; letter-spacing:0.08em; color:var(--text-3); padding-top:3px; transition:color 0.5s ease; }
.featured-num { background:linear-gradient(135deg,var(--grad-a),var(--grad-b)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.gc-title { font-size:21px; font-weight:600; letter-spacing:-0.018em; color:var(--text); margin-bottom:14px; transition:color 0.5s ease; }
.gc-desc { font-size:14.5px; line-height:1.65; color:var(--text-2); font-weight:300; flex:1; margin-bottom:24px; transition:color 0.5s ease; }

.gc-tags { display:flex; flex-wrap:wrap; gap:8px; }
.tag {
    padding:5px 12px; border-radius:100px;
    font-size:11px; font-weight:500; letter-spacing:0.04em;
    background:var(--tag-bg); color:var(--tag-color);
    border:1px solid var(--card-border);
    transition:background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.tag--featured {
    background:rgba(109,74,232,0.1); color:var(--grad-a);
    border-color:rgba(109,74,232,0.2);
}
[data-theme="dark"] .tag--featured { color:#B09EFF; border-color:rgba(130,100,255,0.25); background:rgba(130,100,255,0.12); }

.flagship-pill {
    display:inline-block; margin-top:18px;
    padding:6px 14px; border-radius:100px;
    background:linear-gradient(135deg,rgba(109,74,232,0.12),rgba(59,130,246,0.1));
    border:1px solid rgba(109,74,232,0.22);
    font-size:11px; font-weight:500; letter-spacing:0.06em;
    color:var(--grad-a); transition:color 0.5s ease;
}
[data-theme="dark"] .flagship-pill { color:#B09EFF; border-color:rgba(130,100,255,0.3); }

/* ── CAPABILITIES ── */
.capabilities { padding:40px 0 64px; }
.cap-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
/* First two cards: 50% wide each = top row of 2 */
.cap-grid .cap-card:nth-child(1),
.cap-grid .cap-card:nth-child(2) { grid-column: span 3; }
/* Last three cards: 33% wide each = bottom row of 3 */
.cap-grid .cap-card:nth-child(3),
.cap-grid .cap-card:nth-child(4),
.cap-grid .cap-card:nth-child(5) { grid-column: span 2; }

.cap-card {
    display:flex; align-items:flex-start; gap:20px;
    background:
        radial-gradient(ellipse at 95% 5%,  rgba(109,74,232,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 5%  95%, rgba(59,130,246,0.06) 0%, transparent 48%),
        var(--cap-bg);
    border:1px solid var(--border);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-radius:20px; padding:32px 28px;
    position:relative; overflow:hidden;
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.55);
    transition:background 0.5s ease, border-color 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cap-card:hover { transform:translateY(-4px); border-color:var(--border-mid); box-shadow:0 8px 32px rgba(109,74,232,0.08),inset 0 1px 0 rgba(255,255,255,0.7); }

.cap-icon-ring {
    width:42px; height:42px; flex-shrink:0;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:linear-gradient(135deg,rgba(109,74,232,0.1),rgba(59,130,246,0.08));
    border:1px solid rgba(109,74,232,0.18); color:var(--text-2);
    transition:color 0.5s ease;
}

.cap-title { font-size:17px; font-weight:600; letter-spacing:-0.01em; color:var(--text); margin-bottom:8px; transition:color 0.5s ease; }
.cap-desc { font-size:14px; line-height:1.6; color:var(--text-2); font-weight:300; transition:color 0.5s ease; }

/* ── MANIFESTO ── */
.manifesto { padding:40px 0 64px; }

.manifesto-glass {
    background:
        radial-gradient(ellipse at 100% 0%,   rgba(109,74,232,0.09) 0%, transparent 45%),
        radial-gradient(ellipse at 0%   100%,  rgba(59,130,246,0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 50%  50%,   rgba(236,72,153,0.03) 0%, transparent 38%),
        var(--manifesto-bg);
    border:1px solid var(--glass-border);
    backdrop-filter:blur(24px) saturate(160%);
    -webkit-backdrop-filter:blur(24px) saturate(160%);
    border-radius:28px; padding:64px; position:relative; overflow:hidden;
    box-shadow:0 2px 48px rgba(109,74,232,0.07),inset 0 1px 0 rgba(255,255,255,0.65);
    transition:background 0.5s ease, border-color 0.5s ease;
}

.manifesto-label { display:block; font-size:11px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase; color:var(--text-3); margin-bottom:24px; transition:color 0.5s ease; }

.manifesto-quote {
    font-size:clamp(26px,3.2vw,44px); font-weight:600; font-style:italic;
    line-height:1.3; color:var(--text); margin-bottom:20px;
    border:none; padding:0; quotes:none;
    letter-spacing:-0.02em;
    transition:color 0.5s ease;
}

.manifesto-body {
    font-size: 16px; font-weight: 300; line-height: 1.8;
    color: var(--text-2); margin-bottom: 40px;
    transition: color 0.5s ease;
}

.manifesto-footer { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.manifesto-attr { font-size:13px; font-weight:400; letter-spacing:0.04em; color:var(--text-3); transition:color 0.5s ease; }

.btn-outline {
    display:inline-block; padding:13px 28px; border-radius:100px;
    border:1px solid var(--border-mid); font-size:14px; font-weight:500;
    color:var(--text); text-decoration:none;
    backdrop-filter:blur(8px); background:var(--glass);
    transition:border-color 0.3s ease, background 0.3s ease, transform 0.2s ease, color 0.5s ease;
}
.btn-outline:hover { border-color:rgba(109,74,232,0.5); background:rgba(109,74,232,0.06); transform:scale(1.03); }

/* ── FOOTER ── */
.footer { border-top:1px solid var(--border); padding:48px 0 44px; transition:border-color 0.5s ease; }
.footer-inner { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.footer-logo { font-size:17px; font-weight:700; letter-spacing:0.08em; color:var(--text); margin-bottom:8px; transition:color 0.5s ease; }
.footer-tag { font-size:13px; font-weight:300; color:var(--text-3); transition:color 0.5s ease; }
.footer-right { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.footer-contact { font-size:14px; font-weight:400; color:var(--text-2); text-decoration:none; transition:color 0.2s ease; }
.footer-contact:hover { color:var(--text); }
.footer-copy { font-size:11px; color:var(--text-3); transition:color 0.5s ease; }

/* ── RESPONSIVE ── */
@media(max-width:900px) {
    .services-grid,.cap-grid { grid-template-columns:1fr; max-width:520px; margin:0 auto; }
    /* Reset all span overrides so cards stack single-column */
    .cap-grid .cap-card:nth-child(1),
    .cap-grid .cap-card:nth-child(2),
    .cap-grid .cap-card:nth-child(3),
    .cap-grid .cap-card:nth-child(4),
    .cap-grid .cap-card:nth-child(5) { grid-column: span 1; }
    .hero-glass-card { padding:28px 24px; flex-wrap:wrap; gap:20px; }
    .hgc-stat { flex:1 1 40%; }
    .hgc-divider { display:none; }
    .nav-center { display:none; }
    .manifesto-glass { padding:40px 32px; }
    .manifesto-footer { flex-direction:column; align-items:flex-start; }

    /* ── Mobile gradient: tighten blur so orb colours stay distinct ── */
    .orb { filter: blur(70px); }
    .orb-1 { width:90vw; height:90vw; top:-10%; left:-20%; opacity:0.38; }
    .orb-2 { width:80vw; height:80vw; top:25%; right:-20%; opacity:0.32; }
    .orb-3 { width:85vw; height:85vw; bottom:10%; left:-10%; opacity:0.28; }
    .orb-4 { width:70vw; height:70vw; top:50%; left:20%; opacity:0.22; }
    .orb-5 { width:65vw; height:65vw; bottom:30%; right:-15%; opacity:0.26; }
}

@media(max-width:600px) {
    .container { padding:0 24px; }
    .hero-container { padding:0 24px; }
    .hero { padding:140px 0 64px; }
    .nav-container { padding:0 24px; }
    .footer-inner { flex-direction:column; align-items:flex-start; }
    .footer-right { align-items:flex-start; }
}
