/* ============================================================
   INFINITY CODE LABS — PREMIUM LIGHT THEME DESIGN SYSTEM
   Handcrafted. No frameworks. Production-ready.
   ============================================================ */

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: auto; }
body { overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; }

/* -------- DESIGN TOKENS (LIGHT) -------- */
:root {
  /* palette */
  --c-accent: #2563EB;
  --c-accent-deep: #1D4ED8;
  --c-glow: #60A5FA;
  --c-success: #16A34A;
  --c-warning: #D97706;
  --c-error: #DC2626;

  /* surfaces (light) */
  --bg-0: #FAFAFB;
  --bg-1: #FFFFFF;
  --bg-2: #F4F6F9;
  --bg-3: #EEF2F7;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;

  /* text */
  --c-text: #0A0A0F;
  --c-text-soft: #1F2937;
  --c-muted: #5B6473;
  --c-muted-soft: #8B95A4;
  --c-border: rgba(15, 23, 42, 0.08);
  --c-border-strong: rgba(37, 99, 235, 0.35);

  /* glass */
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-strong: rgba(37, 99, 235, 0.30);

  /* gradients */
  --grad-aurora:
    radial-gradient(60% 80% at 15% 10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(50% 70% at 85% 20%, rgba(96, 165, 250, 0.12), transparent 60%),
    radial-gradient(60% 90% at 50% 100%, rgba(168, 85, 247, 0.06), transparent 60%);
  --grad-text: linear-gradient(135deg, #0F172A 0%, #1E40AF 50%, #3B82F6 100%);
  --grad-accent: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  --grad-accent-soft: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(96,165,250,0.08));
  --grad-border: linear-gradient(135deg, rgba(37,99,235,0.45), rgba(37,99,235,0.05) 50%, rgba(96,165,250,0.35));
  --grad-mesh:
    radial-gradient(40% 50% at 20% 30%, rgba(99, 102, 241, 0.10), transparent 70%),
    radial-gradient(40% 50% at 80% 20%, rgba(96, 165, 250, 0.12), transparent 70%),
    radial-gradient(50% 60% at 50% 80%, rgba(168, 85, 247, 0.08), transparent 70%);

  /* type */
  --font-head: 'Space Grotesk', 'Geist', system-ui, sans-serif;
  --font-body: 'Inter', 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;    --space-9: 6rem;   --space-10: 8rem;

  /* radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.10), 0 8px 16px -8px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 32px 64px -16px rgba(15, 23, 42, 0.14), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 30px -8px rgba(37, 99, 235, 0.35);

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.25s; --dur-base: 0.45s; --dur-slow: 0.8s;

  /* layout */
  --container: 1280px;
  --container-wide: 1600px;
  --nav-h: 76px;
}

/* -------- BASE -------- */
html, body { background: var(--bg-0); color: var(--c-text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
body { position: relative; min-height: 100vh; }
body.no-scroll { overflow: hidden; height: 100vh; }

/* animated aurora background (light) */
body::before {
  content: ""; position: fixed; inset: -10%;
  background: var(--grad-aurora);
  filter: blur(40px) saturate(140%);
  z-index: -2; opacity: 0.9; pointer-events: none;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1; pointer-events: none;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
}
@keyframes aurora-drift {
  0%   { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  100% { transform: translate3d(2%, 1%, 0) rotate(8deg); }
}

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--c-text); }
.display {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-accent);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--c-accent); display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--c-muted); line-height: 1.7; max-width: 60ch; }
.muted { color: var(--c-muted); }
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-accent { color: var(--c-accent); }

/* -------- LAYOUT -------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* -------- BUTTONS -------- */
.btn {
  --btn-bg: var(--bg-1);
  --btn-fg: var(--c-text);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-head); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--btn-fg);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
  will-change: transform;
  box-shadow: var(--shadow-sm);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-accent);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  z-index: -1;
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  transition: box-shadow 0.6s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); border-color: var(--c-border-strong); }
.btn:hover::before { opacity: 1; }
.btn:hover::after { box-shadow: 0 0 28px 2px rgba(37, 99, 235, 0.25); }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { --btn-bg: var(--grad-accent); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary::before { background: linear-gradient(135deg, #1D4ED8, #60A5FA); }
.btn-ghost { background: transparent; border-color: rgba(15, 23, 42, 0.14); }
.btn-ghost:hover { background: var(--bg-1); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1rem; }

/* magnetic wrapper */
.magnetic { display: inline-block; will-change: transform; }

/* -------- GLASS CARD -------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), transparent 40%);
  pointer-events: none;
}

/* gradient border helper */
.grad-border { position: relative; }
.grad-border::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* -------- PRELOADER -------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle at 50% 50%, #FFFFFF, #F4F6F9);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#preloader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preloader-content { position: relative; z-index: 2; text-align: center; }
.preloader-logo {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; gap: 0.4em; justify-content: center;
}
.preloader-logo span { display: inline-block; opacity: 0; transform: translateY(20px); animation: pre-logo-in 0.7s var(--ease-out) forwards; }
.preloader-logo span:nth-child(1){animation-delay:.1s}.preloader-logo span:nth-child(2){animation-delay:.18s}
.preloader-logo span:nth-child(3){animation-delay:.26s}.preloader-logo span:nth-child(4){animation-delay:.34s}
.preloader-logo span:nth-child(5){animation-delay:.42s}.preloader-logo span:nth-child(6){animation-delay:.5s}
.preloader-logo span:nth-child(7){animation-delay:.58s}.preloader-logo span:nth-child(8){animation-delay:.66s}
.preloader-logo span:nth-child(9){animation-delay:.74s}.preloader-logo span:nth-child(10){animation-delay:.82s}
.preloader-logo span:nth-child(11){animation-delay:.9s}.preloader-logo span:nth-child(12){animation-delay:.98s}
.preloader-logo span:nth-child(13){animation-delay:1.06s}
@keyframes pre-logo-in { to { opacity: 1; transform: translateY(0); } }
.preloader-bar {
  width: min(280px, 60vw); height: 1px; margin-top: 2.5rem;
  background: rgba(15, 23, 42, 0.08); position: relative; overflow: hidden;
}
.preloader-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--grad-accent);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
  transition: width 0.2s linear;
}
.preloader-pct {
  margin-top: 1rem; font-family: var(--font-head); font-size: 0.85rem;
  letter-spacing: 0.3em; color: var(--c-muted);
}
.preloader-pct b { color: var(--c-text); font-weight: 600; }

/* -------- CUSTOM CURSOR -------- */
#cursor, #cursor-trail {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
  border-radius: 50%; mix-blend-mode: multiply;
  will-change: transform;
}
#cursor {
  width: 10px; height: 10px; background: var(--c-accent);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s, opacity 0.25s;
}
#cursor-trail {
  width: 44px; height: 44px;
  border: 1px solid rgba(37, 99, 235, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.35s, opacity 0.35s, background 0.35s;
}
body.cursor-hover #cursor { width: 0; height: 0; opacity: 0; }
body.cursor-hover #cursor-trail { width: 64px; height: 64px; border-color: var(--c-accent); background: rgba(37, 99, 235, 0.06); }
body.cursor-text #cursor { width: 2px; height: 22px; border-radius: 2px; }
body.cursor-text #cursor-trail { opacity: 0; }
body.cursor-drag #cursor { width: 60px; height: 60px; background: rgba(37, 99, 235, 0.18); }
body.cursor-drag #cursor-trail { opacity: 0; }
#cursor-label {
  position: fixed; pointer-events: none; z-index: 10001;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: var(--c-accent); padding: 0.3rem 0.6rem; border-radius: var(--r-pill);
  transform: translate(-50%, -50%) translate(28px, 28px);
  opacity: 0; transition: opacity 0.25s;
  white-space: nowrap;
}
body.cursor-hover #cursor-label { opacity: 1; }
@media (hover: none), (max-width: 900px) {
  #cursor, #cursor-trail, #cursor-label { display: none !important; }
}

/* -------- NAVIGATION -------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.4s var(--ease-out), background 0.4s, backdrop-filter 0.4s, height 0.4s, box-shadow 0.4s;
}
#nav.shrink { height: 62px; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
#nav.hidden { transform: translateY(-100%); }
.nav-inner { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; font-size: 1.02rem; color: var(--c-text); }
.nav-logo .mark { width: 32px; height: 32px; position: relative; display: grid; place-items: center; }
.nav-logo .mark svg { width: 100%; height: 100%; }
.nav-logo .mark::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 70%); filter: blur(6px); z-index: -1; opacity: 0.7; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.9; } }
.nav-logo b { font-weight: 700; }
.nav-logo span { color: var(--c-muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { position: relative; font-family: var(--font-head); font-size: 0.86rem; letter-spacing: 0.02em; color: var(--c-muted); transition: color var(--dur-base); padding-block: 0.4rem; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); border-radius: 1px; }
.nav-link:hover, .nav-link.active { color: var(--c-text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border-radius: var(--r-pill); background: var(--c-text); color: #fff; border: 1px solid transparent; font-family: var(--font-head); font-size: 0.84rem; transition: all var(--dur-base); box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--grad-accent); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--c-text); transition: transform 0.4s var(--ease-out), opacity 0.3s; border-radius: 2px; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* fullscreen menu */
#fullscreen-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  overflow-y: auto;
}
body.menu-open #fullscreen-menu { clip-path: inset(0 0 0% 0); }
.fm-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; max-width: var(--container-wide); margin-inline: auto; width: 100%; }
.fm-group { margin-bottom: 1.5rem; }
.fm-group h5 { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.8rem; padding-left: 0.2rem; }
.fm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 2rem; }
.fm-link {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.45rem 0; position: relative;
  color: var(--c-text-soft); transition: color 0.3s, transform 0.4s var(--ease-out);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.fm-link .num { font-size: 0.72rem; color: var(--c-accent); opacity: 0.6; font-family: var(--font-body); }
.fm-link:hover { color: var(--c-accent); transform: translateX(8px); }
.fm-link::before { content: "→"; opacity: 0; transform: translateX(-8px); transition: all 0.3s; color: var(--c-accent); }
.fm-link:hover::before { opacity: 1; transform: translateX(0); }
.fm-aside { padding-left: 2rem; border-left: 1px solid var(--c-border); position: sticky; top: 2rem; }
.fm-aside h5 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.8rem; }
.fm-aside a, .fm-aside p { display: block; color: var(--c-text); margin-bottom: 0.4rem; font-size: 0.92rem; }
.fm-aside a:hover { color: var(--c-accent); }
.fm-socials { display: flex; gap: 0.7rem; margin-top: 1rem; }
.fm-socials a { width: 40px; height: 40px; border: 1px solid var(--c-border); border-radius: 50%; display: grid; place-items: center; transition: all 0.3s; color: var(--c-muted); font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; }
.fm-socials a:hover { background: var(--grad-accent); color: #fff; border-color: transparent; transform: translateY(-3px); }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .fm-grid { grid-template-columns: 1fr; }
  .fm-aside { display: none; }
  .fm-links { grid-template-columns: 1fr; }
}

/* -------- HERO -------- */
#hero { min-height: 100svh; position: relative; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); padding-bottom: 4rem; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.7; }
#hero-canvas canvas { display: block; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero-code { display: none; } }

/* hero load animation — plays on page load (no preloader) */
.hero-tag, .hero-title, .hero-sub, .hero-cta-row, .hero-stats, .hero-trust, .hero-code {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.95s var(--ease-out) forwards;
}
.hero-tag { animation-delay: 0.15s; }
.hero-title { animation-delay: 0.30s; }
.hero-sub { animation-delay: 0.50s; }
.hero-cta-row { animation-delay: 0.70s; }
.hero-stats { animation-delay: 0.85s; }
.hero-trust { animation-delay: 1.00s; }
.hero-code { animation-delay: 0.45s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
/* split-text chars also need to be visible since hero no longer uses IO for the title */
#hero .split-text .char { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-tag, .hero-title, .hero-sub, .hero-cta-row, .hero-stats, .hero-trust, .hero-code {
    opacity: 1; transform: none; animation: none;
  }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill);
  background: var(--bg-1); border: 1px solid var(--c-border);
  font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-soft); margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 10px var(--c-success); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.hero-sub { margin-top: 1.6rem; max-width: 52ch; color: var(--c-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; }
.hero-sub b { color: var(--c-text); font-weight: 600; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--c-border); flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--c-text); font-weight: 700; }
.hero-stat span { font-size: 0.78rem; color: var(--c-muted); letter-spacing: 0.04em; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.6rem; font-size: 0.82rem; color: var(--c-muted); }
.hero-trust .stars { color: var(--c-warning); letter-spacing: 0.18em; }
.hero-trust .divider { width: 1px; height: 16px; background: var(--c-border); }
.hero-trust .cert { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: var(--c-text-soft); }

/* code window */
.hero-code { position: relative; }
.code-window {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--c-border);
  background: #FFFFFF; box-shadow: var(--shadow-xl);
  font-family: var(--font-mono); font-size: 0.86rem;
}
.code-window::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent 40%); pointer-events: none; z-index: 1; }
.code-titlebar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--c-border); background: var(--bg-2); }
.code-dots { display: flex; gap: 0.4rem; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-dots span:nth-child(1) { background: #FF5F57; }
.code-dots span:nth-child(2) { background: #FEBC2E; }
.code-dots span:nth-child(3) { background: #28C840; }
.code-tab { margin-inline: auto; padding: 0.25rem 0.7rem; background: var(--bg-1); border: 1px solid var(--c-border); border-radius: 6px; font-size: 0.72rem; color: var(--c-muted); font-family: var(--font-mono); }
.code-body { padding: 1.2rem 1.4rem; line-height: 1.65; white-space: pre; overflow-x: auto; }
.code-line { min-height: 1.4em; }
.code-line.empty { height: 0.7em; }
.caret-blink { display: inline-block; width: 7px; height: 1.05em; background: var(--c-accent); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.code-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; border-top: 1px solid var(--c-border); background: var(--bg-2); font-size: 0.7rem; color: var(--c-muted); font-family: var(--font-mono); }
.code-statusbar .ok { color: var(--c-success); }
.code-glow { position: absolute; inset: -20px; background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.20), transparent 70%); filter: blur(32px); z-index: -1; }

.hero-meta { position: absolute; left: 0; right: 0; bottom: 1.5rem; z-index: 2; display: flex; justify-content: space-between; align-items: end; padding-inline: clamp(1.25rem, 4vw, 2.5rem); font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); pointer-events: none; }
.hero-meta .scroll-cue { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-meta .scroll-cue .line { width: 32px; height: 1px; background: var(--c-muted); position: relative; overflow: hidden; }
.hero-meta .scroll-cue .line::after { content: ""; position: absolute; inset: 0; background: var(--c-accent); transform: translateX(-100%); animation: scroll-line 2.4s var(--ease-in-out) infinite; }
@keyframes scroll-line { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }
@media (max-width: 768px) { .hero-meta { display: none; } }

/* -------- MARQUEE -------- */
.marquee { overflow: hidden; padding-block: 1.3rem; border-block: 1px solid var(--c-border); position: relative; background: var(--bg-1); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 40s linear infinite; width: max-content; }
.marquee-item { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); display: inline-flex; align-items: center; gap: 3rem; font-weight: 500; }
.marquee-item::after { content: "✦"; color: var(--c-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------- STATS BAND -------- */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat-tile { padding: 1.5rem; text-align: center; }
.stat-tile .icon { width: 44px; height: 44px; margin: 0 auto 0.9rem; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); }
.stat-tile b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--c-text); font-weight: 700; }
.stat-tile .label { display: block; margin-top: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--c-text-soft); }
.stat-tile .sub { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: var(--c-muted); }

/* -------- ABOUT / VISUAL -------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* legacy canvas-based visual (kept for backward compat) */
.about-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-lg); }
.about-visual canvas { position: absolute; inset: 0; }
.about-visual .label { position: absolute; left: 1.5rem; bottom: 1.5rem; right: 1.5rem; z-index: 2; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); padding: 1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--c-border); }
.about-visual .label small { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.about-visual .label h4 { margin-top: 0.4rem; font-size: 1.1rem; color: var(--c-text); }

/* NEW: floating images visual */
.about-visual-v2 {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(37,99,235,0.10), transparent 70%),
    linear-gradient(135deg, rgba(96,165,250,0.06), rgba(168,85,247,0.04));
}
.about-visual-v2 .floating-imgs { position: absolute; inset: 0; }
.about-visual-v2 .float-img {
  position: absolute;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 4px solid var(--bg-1);
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
  background: var(--bg-2);
}
.about-visual-v2 .float-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-visual-v2 .float-img-1 { top: 4%;  left: 6%;  width: 46%; aspect-ratio: 4/3; animation-delay: 0s; }
.about-visual-v2 .float-img-2 { top: 22%; right: 4%; width: 42%; aspect-ratio: 1; animation-delay: 1.4s; }
.about-visual-v2 .float-img-3 { bottom: 26%; left: 10%; width: 40%; aspect-ratio: 4/3; animation-delay: 2.8s; }
.about-visual-v2 .float-img-4 { bottom: 4%;  right: 8%;  width: 44%; aspect-ratio: 4/3; animation-delay: 4.2s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* central badge */
.about-visual-v2 .about-center-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  box-shadow: 0 12px 36px -8px rgba(37,99,235,0.55), 0 0 0 6px rgba(255,255,255,0.7);
  z-index: 3;
  animation: pulseGlow 3.5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 12px 36px -8px rgba(37,99,235,0.55), 0 0 0 6px rgba(255,255,255,0.7); }
  50% { box-shadow: 0 12px 48px -4px rgba(37,99,235,0.75), 0 0 0 10px rgba(255,255,255,0.85); }
}

/* label overlay (kept) */
.about-visual-v2 .about-label {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  z-index: 4;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.about-visual-v2 .about-label small { font-family: var(--font-head); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.about-visual-v2 .about-label h4 { margin-top: 0.3rem; font-size: 1rem; color: var(--c-text); line-height: 1.35; }

@media (max-width: 600px) {
  .about-visual-v2 .float-img-1 { width: 50%; }
  .about-visual-v2 .float-img-2 { width: 44%; }
  .about-visual-v2 .float-img-3 { width: 44%; }
  .about-visual-v2 .float-img-4 { width: 48%; }
  .about-visual-v2 .about-center-badge { width: 76px; height: 76px; font-size: 1.3rem; }
}

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { padding: 1.4rem; }
.stat-card b { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.stat-card span { display: block; margin-top: 0.4rem; color: var(--c-muted); font-size: 0.85rem; }

/* values */
.values-list { margin-top: 2rem; display: grid; gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.value-row { display: grid; grid-template-columns: 60px 1fr 2fr; gap: 1.5rem; padding: 1.3rem 1.5rem; background: var(--bg-1); align-items: center; transition: background 0.3s; }
.value-row:hover { background: var(--bg-2); }
.value-row .num { font-family: var(--font-head); color: var(--c-accent); font-size: 0.85rem; font-weight: 600; }
.value-row h4 { font-size: 1.05rem; color: var(--c-text); }
.value-row p { color: var(--c-muted); font-size: 0.9rem; }
@media (max-width: 768px) { .value-row { grid-template-columns: 40px 1fr; } .value-row p { grid-column: 1 / -1; } }

/* timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--c-accent), transparent); }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item::before { content: ""; position: absolute; left: -2rem; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg-1); border: 2px solid var(--c-accent); box-shadow: 0 0 12px rgba(37,99,235,0.5); }
.tl-item .year { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--c-accent); font-weight: 600; }
.tl-item h4 { margin: 0.3rem 0 0.4rem; font-size: 1.1rem; color: var(--c-text); }
.tl-item p { color: var(--c-muted); font-size: 0.9rem; }

/* -------- SERVICES -------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; padding: 1.8rem 1.6rem 1.6rem; min-height: 260px;
  display: flex; flex-direction: column; gap: 0.9rem;
  border-radius: var(--r-lg);
  background: var(--bg-1);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
  will-change: transform;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(37,99,235,0.10), transparent 50%);
  opacity: 0; transition: opacity 0.4s;
}
.svc-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  background: var(--grad-accent-soft);
  border: 1px solid var(--c-border);
  display: grid; place-items: center; color: var(--c-accent);
  transition: transform 0.5s var(--ease-out);
}
.svc-card:hover .svc-icon { transform: translateZ(40px) rotate(-6deg); }
.svc-card h3 { font-size: 1.2rem; color: var(--c-text); margin-top: 0.2rem; }
.svc-card p { color: var(--c-muted); font-size: 0.92rem; flex: 1; line-height: 1.6; }
.svc-card .svc-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--c-accent); font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.02em; font-weight: 500; margin-top: auto; }
.svc-card .svc-link .arrow { transition: transform 0.3s; }
.svc-card:hover .svc-link .arrow { transform: translateX(4px); }
.svc-num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-head); font-size: 0.74rem; color: var(--c-muted-soft); letter-spacing: 0.18em; font-weight: 500; }

/* -------- WHY CHOOSE US -------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: 1.6rem; transition: transform 0.4s, box-shadow 0.4s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); transition: transform 0.5s var(--ease-out); }
.why-card:hover .why-icon { transform: rotate(6deg) scale(1.05); }
.why-card h4 { margin-top: 1rem; font-size: 1rem; color: var(--c-text); }
.why-card p { margin-top: 0.4rem; color: var(--c-muted); font-size: 0.86rem; line-height: 1.6; }

/* comparison strip */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-1); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.compare-col { padding: 1.8rem; border-right: 1px solid var(--c-border); }
.compare-col:last-child { border-right: none; }
@media (max-width: 900px) { .compare-col { border-right: none; border-bottom: 1px solid var(--c-border); } }
.compare-col.featured { background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(96,165,250,0.04)); }
.compare-tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); border: 1px solid var(--c-border); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.compare-col.featured .compare-tag { background: rgba(37,99,235,0.1); color: var(--c-accent); border-color: rgba(37,99,235,0.3); }
.compare-col h4 { margin: 0.8rem 0 1rem; font-size: 1.3rem; color: var(--c-text); }
.compare-col.featured h4 { color: var(--c-accent); }
.compare-col ul { display: grid; gap: 0.6rem; }
.compare-col li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; color: var(--c-text-soft); }
.compare-col li::before { content: "✓"; color: var(--c-success); font-weight: 700; flex-shrink: 0; }
.compare-col.neg li { color: var(--c-muted); }
.compare-col.neg li::before { content: "✕"; color: var(--c-error); opacity: 0.7; }

/* -------- PORTFOLIO -------- */
.pf-list { display: flex; flex-direction: column; }
.pf-row {
  position: relative; padding: 2rem 0; border-top: 1px solid var(--c-border);
  display: grid; grid-template-columns: 60px 1fr 1fr 1fr 80px; gap: 1.5rem; align-items: center;
  transition: padding 0.5s var(--ease-out);
  cursor: pointer;
}
.pf-row:last-child { border-bottom: 1px solid var(--c-border); }
.pf-row:hover { padding-inline: 1rem; }
.pf-row .pf-num { font-family: var(--font-head); color: var(--c-muted-soft); font-size: 0.82rem; font-weight: 500; }
.pf-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); transition: color 0.3s, transform 0.5s var(--ease-out); color: var(--c-text); }
.pf-row:hover h3 { color: var(--c-accent); transform: translateX(8px); }
.pf-row .pf-cat { color: var(--c-muted); font-size: 0.88rem; }
.pf-row .pf-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pf-row .pf-tag { font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); border: 1px solid var(--c-border); color: var(--c-muted); font-family: var(--font-head); background: var(--bg-1); }
.pf-row .pf-year { font-family: var(--font-head); color: var(--c-muted); text-align: right; font-size: 0.88rem; }
.pf-preview {
  position: fixed; top: 0; left: 0; width: 320px; height: 200px;
  pointer-events: none; z-index: 100; opacity: 0;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-border);
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
  box-shadow: var(--shadow-xl);
}
.pf-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pf-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .pf-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .pf-row .pf-num, .pf-row .pf-year { display: none; }
  .pf-preview { display: none; }
}

/* -------- TECH SPHERE -------- */
.tech-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .tech-wrap { grid-template-columns: 1fr; } }
.tech-canvas-wrap { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.06), transparent 70%); border: 1px solid var(--c-border); box-shadow: var(--shadow-lg); }
.tech-canvas-wrap canvas { position: absolute; inset: 0; }
.tech-canvas-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(255,255,255,0.4) 100%); pointer-events: none; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag { padding: 0.45rem 0.85rem; border-radius: var(--r-pill); background: var(--bg-1); border: 1px solid var(--c-border); font-family: var(--font-head); font-size: 0.8rem; color: var(--c-text-soft); transition: all 0.3s; cursor: pointer; font-weight: 500; }
.tech-tag:hover { color: var(--c-accent); border-color: var(--c-accent); background: rgba(37,99,235,0.05); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* -------- PROCESS -------- */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; position: relative; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.proc-step { padding: 1.8rem 1.4rem; border-right: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); position: relative; transition: background 0.4s; min-height: 220px; display: flex; flex-direction: column; background: var(--bg-1); }
.proc-step:hover { background: var(--bg-2); }
.proc-step .step-num { font-family: var(--font-head); font-size: 0.74rem; color: var(--c-accent); letter-spacing: 0.2em; font-weight: 600; }
.proc-step .step-icon { width: 36px; height: 36px; margin: 1rem 0; color: var(--c-accent); }
.proc-step h4 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--c-text); }
.proc-step p { color: var(--c-muted); font-size: 0.86rem; }
.proc-step::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 2px; background: var(--grad-accent); transition: width 0.6s var(--ease-out); }
.proc-step:hover::after { width: 100%; }

/* -------- TESTIMONIALS -------- */
.tst-wrap { position: relative; perspective: 1200px; min-height: 380px; display: grid; place-items: center; }
.tst-card {
  position: absolute; width: min(620px, 90vw); padding: 2.4rem;
  background: var(--bg-1); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  transition: transform 0.8s var(--ease-out), opacity 0.6s;
  will-change: transform;
}
.tst-card .quote { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; font-family: var(--font-head); font-weight: 400; color: var(--c-text); }
.tst-card .author { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.tst-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; }
.tst-card .author b { display: block; font-size: 0.95rem; color: var(--c-text); }
.tst-card .author span { color: var(--c-muted); font-size: 0.85rem; }
.tst-card .rating { color: var(--c-warning); margin-top: 1rem; letter-spacing: 0.2em; }
.tst-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.tst-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-border); background: var(--bg-1); color: var(--c-text); display: grid; place-items: center; cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow-sm); }
.tst-arrow:hover { background: var(--grad-accent); color: #fff; border-color: transparent; transform: scale(1.05); }
.tst-arrow svg { width: 18px; height: 18px; }
.tst-dots { display: flex; gap: 0.5rem; }
.tst-dot { width: 24px; height: 2px; background: var(--c-border); border-radius: 2px; transition: background 0.3s; cursor: pointer; }
.tst-dot.active { background: var(--c-accent); width: 36px; }

/* -------- PRICING -------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.4s, box-shadow 0.4s; background: var(--bg-1); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { background: linear-gradient(180deg, rgba(37,99,235,0.05), var(--bg-1)); border-color: var(--c-border-strong); }
.price-card .price-name { font-family: var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: var(--c-accent); font-weight: 600; }
.price-card .price-val { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--c-text); }
.price-card .price-val small { font-size: 0.9rem; color: var(--c-muted); font-weight: 400; }
.price-card .price-desc { color: var(--c-muted); font-size: 0.9rem; }
.price-card ul { display: grid; gap: 0.6rem; margin: 0.4rem 0; }
.price-card li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--c-text-soft); font-size: 0.9rem; }
.price-card li::before { content: "✓"; color: var(--c-success); font-weight: 700; flex-shrink: 0; }
.price-card .badge { position: absolute; top: -10px; right: 1.5rem; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: var(--grad-accent); font-size: 0.7rem; font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; font-weight: 600; }

/* -------- COST CALCULATOR -------- */
.calc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { padding: 2rem; }
.calc-label { font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); }
.calc-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
@media (max-width: 600px) { .calc-types { grid-template-columns: repeat(2, 1fr); } }
.calc-type { padding: 0.7rem 0.5rem; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--bg-2); color: var(--c-muted); font-family: var(--font-head); font-size: 0.74rem; font-weight: 500; transition: all 0.3s; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.calc-type .ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; }
.calc-type.active { border-color: var(--c-accent); background: rgba(37,99,235,0.05); color: var(--c-accent); }
.calc-range { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--bg-3); outline: none; margin-top: 0.8rem; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-accent); cursor: pointer; box-shadow: var(--shadow-md); border: 3px solid #fff; }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent); cursor: pointer; border: 3px solid #fff; }
.calc-complexity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
@media (max-width: 600px) { .calc-complexity { grid-template-columns: repeat(2, 1fr); } }
.calc-cplx { padding: 0.7rem 0.4rem; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--bg-2); color: var(--c-muted); font-family: var(--font-head); font-size: 0.78rem; font-weight: 500; transition: all 0.3s; cursor: pointer; text-align: center; }
.calc-cplx.active { border-color: var(--c-accent); background: rgba(37,99,235,0.05); color: var(--c-accent); }
.calc-output { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; background: linear-gradient(180deg, rgba(37,99,235,0.06), var(--bg-1)); }
.calc-output .est-label { font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.calc-output .est-val { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; color: var(--c-text); }
.calc-output .est-range { color: var(--c-muted); font-size: 0.88rem; }
.calc-output .est-time { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: var(--bg-2); border-radius: var(--r-md); font-size: 0.85rem; color: var(--c-text-soft); }
.calc-output .est-time b { color: var(--c-text); font-family: var(--font-head); }
.calc-output .breakdown { display: grid; gap: 0.4rem; font-size: 0.82rem; color: var(--c-muted); }
.calc-output .breakdown div { display: flex; justify-content: space-between; }

/* country selector */
.calc-country-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.calc-country-label { font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-muted); }
.calc-country-select { padding: 0.5rem 1rem; background: var(--bg-2); border: 1px solid var(--c-border); border-radius: var(--r-pill); color: var(--c-text); font-family: var(--font-head); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.calc-country-select:hover, .calc-country-select:focus { border-color: var(--c-accent); background: var(--bg-1); }
.calc-country-select option { background: var(--bg-1); color: var(--c-text); }
.calc-currency-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: rgba(37,99,235,0.08); color: var(--c-accent); font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; }

/* map embed */
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-map-canvas { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border); margin-top: 0.4rem; background: var(--bg-2); }
.contact-map-canvas iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 200px; }

/* -------- CONTACT -------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 1rem; padding: 2.4rem; }
.field { position: relative; }
.field label { display: block; font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.4rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg-2);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  color: var(--c-text); font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-accent); background: var(--bg-1); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-success { padding: 1rem 1.2rem; border-radius: var(--r-md); background: rgba(22, 163, 74, 0.08); border: 1px solid rgba(22, 163, 74, 0.3); color: var(--c-success); display: none; align-items: center; gap: 0.6rem; font-weight: 500; }
.form-success.show { display: flex; }

.contact-info { padding: 2.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-info .ci-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info .ci-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--grad-accent-soft); border: 1px solid var(--c-border); display: grid; place-items: center; color: var(--c-accent); flex-shrink: 0; }
.contact-info .ci-row b { display: block; font-family: var(--font-head); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.2rem; font-weight: 600; }
.contact-info .ci-row p { color: var(--c-text); font-size: 0.95rem; }
.contact-map { margin-top: auto; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border); position: relative; background: var(--bg-2); }
.contact-map canvas { position: absolute; inset: 0; }

/* -------- FOOTER (simplified) -------- */
#footer { position: relative; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2rem; overflow: hidden; border-top: 1px solid var(--c-border); background: var(--bg-1); }
#footer-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.4; }
.footer-grid-simple { position: relative; z-index: 2; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid-simple { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 500px) { .footer-grid-simple { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--c-muted); font-size: 0.9rem; max-width: 36ch; margin-bottom: 1rem; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; }
.footer-contact a { color: var(--c-text); transition: color 0.3s; }
.footer-contact a:hover { color: var(--c-accent); }
.footer-contact span { color: var(--c-muted); }
.footer-col h5 { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--c-text-soft); padding: 0.25rem 0; font-size: 0.9rem; transition: color 0.3s, transform 0.3s; }
.footer-col a:hover { color: var(--c-accent); transform: translateX(4px); }
.footer-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-top: 1.8rem; border-top: 1px solid var(--c-border); flex-wrap: wrap; gap: 1rem; }
.footer-bottom small { color: var(--c-muted); font-size: 0.82rem; }
.footer-bottom .socials { display: flex; gap: 0.5rem; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-border); display: grid; place-items: center; color: var(--c-muted); transition: all 0.3s; font-family: var(--font-head); font-size: 0.72rem; font-weight: 600; }
.footer-bottom .socials a:hover { color: #fff; border-color: transparent; background: var(--grad-accent); transform: translateY(-2px); }
/* legacy grid still supported */
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.newsletter { display: flex; gap: 0.5rem; margin-top: 1rem; max-width: 360px; }
.newsletter input { flex: 1; padding: 0.7rem 1rem; background: var(--bg-2); border: 1px solid var(--c-border); border-radius: var(--r-pill); color: var(--c-text); font-size: 0.85rem; }
.newsletter button { padding: 0.7rem 1.2rem; border-radius: var(--r-pill); background: var(--grad-accent); color: #fff; font-family: var(--font-head); font-size: 0.82rem; transition: transform 0.3s; font-weight: 500; }
.newsletter button:hover { transform: translateY(-2px); }

/* -------- FAQ -------- */
.faq-list { display: grid; gap: 0.7rem; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; background: var(--bg-1); }
.faq-item.open { border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); }
.faq-q { padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-head); font-size: 0.98rem; gap: 1rem; color: var(--c-text); font-weight: 500; }
.faq-q .toggle { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .toggle::before, .faq-q .toggle::after { content: ""; position: absolute; background: var(--c-accent); transition: transform 0.3s; border-radius: 1px; }
.faq-q .toggle::before { left: 4px; right: 4px; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .toggle::after { top: 4px; bottom: 4px; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .toggle::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out); }
.faq-a-inner { padding: 0 1.5rem 1.2rem; color: var(--c-muted); font-size: 0.92rem; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* -------- BLOG -------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s, box-shadow 0.4s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .blog-img { aspect-ratio: 16/10; background: var(--bg-2); position: relative; overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-card .blog-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.blog-card .blog-cat { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-accent); font-weight: 600; }
.blog-card h3 { font-size: 1.15rem; line-height: 1.3; color: var(--c-text); }
.blog-card .blog-meta { display: flex; gap: 1rem; color: var(--c-muted); font-size: 0.8rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--c-border); }

/* -------- INDUSTRIES -------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ind-grid { grid-template-columns: 1fr; } }
.ind-card { padding: 1.4rem; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.4s, box-shadow 0.4s; }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-card .ind-icon { width: 34px; height: 34px; color: var(--c-accent); }
.ind-card h4 { font-size: 1rem; margin-top: 0.9rem; color: var(--c-text); }
.ind-card p { color: var(--c-muted); font-size: 0.8rem; margin-top: 0.3rem; }

/* -------- ECOSYSTEM -------- */
.eco-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-anchor { padding: 2rem; background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(96,165,250,0.04), var(--bg-1)); border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); }
.eco-anchor .eco-icon { width: 60px; height: 60px; border-radius: var(--r-md); background: var(--grad-accent); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-glow); }
.eco-card { padding: 1.6rem; transition: transform 0.4s, box-shadow 0.4s; }
.eco-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eco-card .eco-icon-sm { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); }
.eco-card h4 { margin-top: 0.9rem; font-size: 1.05rem; color: var(--c-text); }
.eco-card p { margin-top: 0.4rem; color: var(--c-muted); font-size: 0.88rem; line-height: 1.6; }

/* -------- PAGE HEADER (interior) -------- */
.page-header { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 3rem; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: var(--grad-mesh); z-index: -1; opacity: 0.6; }
.breadcrumb { display: flex; gap: 0.5rem; color: var(--c-muted); font-size: 0.82rem; margin-bottom: 1.4rem; font-family: var(--font-head); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--c-muted-soft); }

/* -------- SERVICE DETAIL PAGE -------- */
.sd-hero-img { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-xl); }
.sd-hero-img img { width: 100%; height: 380px; object-fit: cover; display: block; }
@media (max-width: 700px) { .sd-hero-img img { height: 240px; } }
.sd-hero-img .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.8), rgba(15,23,42,0.2), transparent); }
.sd-hero-img .overlay-content { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.sd-hero-img .badge-light { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: var(--r-pill); background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); color: #fff; font-size: 0.78rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.2); }
.sd-quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.5rem; background: var(--bg-1); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.sd-quick-stat { text-align: center; }
.sd-quick-stat .icon { width: 40px; height: 40px; margin: 0 auto 0.5rem; border-radius: var(--r-md); background: var(--grad-accent-soft); display: grid; place-items: center; color: var(--c-accent); }
.sd-quick-stat b { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--c-text); font-weight: 700; }
.sd-quick-stat small { font-size: 0.7rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.sd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .sd-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .sd-features { grid-template-columns: 1fr; } }
.sd-feature { padding: 1.4rem; background: var(--bg-1); border: 1px solid var(--c-border); border-radius: var(--r-lg); transition: all 0.3s; }
.sd-feature:hover { border-color: var(--c-border-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sd-feature .ic { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--grad-accent-soft); color: var(--c-accent); display: grid; place-items: center; margin-bottom: 0.7rem; }
.sd-feature h4 { font-size: 0.98rem; color: var(--c-text); margin-bottom: 0.3rem; }
.sd-feature p { color: var(--c-muted); font-size: 0.85rem; line-height: 1.5; }
.sd-tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
@media (max-width: 700px) { .sd-tech-grid { grid-template-columns: repeat(2, 1fr); } }
.sd-tech { padding: 1rem; background: var(--bg-1); border: 1px solid var(--c-border); border-radius: var(--r-md); transition: all 0.3s; }
.sd-tech:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.sd-tech b { display: block; font-family: var(--font-head); font-size: 0.92rem; color: var(--c-text); }
.sd-tech small { color: var(--c-muted); font-size: 0.76rem; }
.sd-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .sd-case-grid { grid-template-columns: 1fr; } }
.sd-case { padding: 1.4rem; background: var(--bg-1); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.sd-case .metric { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sd-case h4 { font-size: 1rem; color: var(--c-text); margin: 0.3rem 0; }
.sd-case p { color: var(--c-muted); font-size: 0.85rem; }

/* -------- REVEAL ANIMATIONS -------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.54s; }

.split-text .char { display: inline-block; transform: translateY(100%); opacity: 0; }
.split-text.in .char { animation: char-in 0.8s var(--ease-out) forwards; }
@keyframes char-in { to { transform: translateY(0); opacity: 1; } }

/* -------- SCROLLBAR -------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.3); border-radius: 8px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }

/* -------- REDUCED MOTION -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  body::before { animation: none; }
}

::selection { background: rgba(37, 99, 235, 0.18); color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

/* -------- UTILS -------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-5{margin-top:3rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}.mb-5{margin-bottom:3rem}
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hide-mobile { display: initial; }
@media (max-width: 768px) { .hide-mobile { display: none !important; } }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.prose { color: var(--c-text-soft); line-height: 1.75; font-size: 1rem; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.8rem; }
.prose ul { margin: 1rem 0; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--c-accent); text-decoration: underline; }
