/* ============================================================
   AVERROES STUDIOS — Cinematic Dark Theme
   Space Grotesk (display) + Inter (body) · Cyan signature accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --cyan:        #38bdf8;   /* signature accent (logo blue, brightened) */
  --cyan-deep:   #0ea5e9;
  --cyan-glow:   rgba(56, 189, 248, 0.45);
  --indigo:      #6366f1;   /* secondary gradient partner */
  --navy:        #1e293b;   /* logo "ROES" navy */

  /* Surfaces */
  --bg:          #060a12;
  --bg-2:        #080d17;
  --surface:     rgba(20, 29, 45, 0.55);
  --surface-2:   rgba(30, 41, 59, 0.42);
  --border:      rgba(148, 176, 214, 0.12);
  --border-2:    rgba(148, 176, 214, 0.20);

  /* Text */
  --text:        #e8eef7;
  --text-soft:   #aab6c8;
  --text-mute:   #6b7889;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    18px;
  --radius-lg: 26px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --cyan:        #0ea5e9;
  --cyan-deep:   #0284c7;
  --cyan-glow:   rgba(14, 165, 233, 0.30);
  --indigo:      #6366f1;

  --bg:          #f5f8fd;
  --bg-2:        #eaf0f8;
  --surface:     rgba(255, 255, 255, 0.72);
  --surface-2:   rgba(255, 255, 255, 0.95);
  --border:      rgba(15, 27, 45, 0.10);
  --border-2:    rgba(15, 27, 45, 0.18);

  --text:        #0f1b2d;
  --text-soft:   #465569;
  --text-mute:   #748497;
}

/* smooth theme transition */
body, .nav, .svc, .agent-card, .app-item, .office, .step, .stat-box,
.about-media img, .cta-inner, .footer, .btn-ghost, .socials a, .theme-toggle {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* Ambient page glow layers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(50% 45% at 0% 15%, rgba(99,102,241,0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--cyan); color: #041018; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { position: relative; padding: 120px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); font-weight: 500;
  margin-bottom: 22px;
}
.section-tag::before {
  content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: 0.7;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--text-soft);
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.05rem;
}

.grad-text {
  background: linear-gradient(100deg, var(--cyan) 0%, #7dd3fc 40%, var(--indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 15px; --pad-x: 28px;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-display);
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 0; border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #041018;
  background: linear-gradient(100deg, var(--cyan), #7dd3fc);
  box-shadow: 0 8px 30px -8px var(--cyan-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px var(--cyan-glow); }
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); color: #fff; }
.btn:active { transform: translateY(-1px) scale(0.98); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
  padding: 22px 0;
}
.nav.scrolled {
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

/* Wordmark echoes the logo: cyan AVER + light ROES */
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: 0.02em;
}
.brand-mark .b-a { color: var(--cyan); }
.brand-mark .b-b { color: var(--text); }
.brand-sub {
  font-family: var(--font-display);
  font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--text-mute); margin-top: 5px; padding-left: 2px;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 10px 16px; font-size: 0.92rem; color: var(--text-soft);
  border-radius: 100px; transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 50%;
  color: var(--text-soft); backdrop-filter: blur(10px);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: block; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding-top: 120px; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; z-index: 0;
  will-change: transform;
}
.hero-blob.b1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, var(--cyan), transparent 70%); }
.hero-blob.b2 { width: 460px; height: 460px; bottom: -160px; left: -120px; background: radial-gradient(circle, var(--indigo), transparent 70%); opacity: 0.4; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }

/* Hero AI animation */
.hero-visual {
  position: relative; justify-self: center;
  width: 100%; max-width: 460px;
}
.hero-anim {
  position: relative; z-index: 2;
  width: 100%; height: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
  animation: hero-float 7s ease-in-out infinite;
}
.hero-anim svg, .hero-anim img { width: 100%; height: auto; display: block; }
@keyframes hero-float { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }
.hero-visual-glow {
  position: absolute; inset: 8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.30), rgba(99,102,241,0.14) 45%, transparent 70%);
  filter: blur(40px);
}
.hero-visual-ring { display: none; }
@keyframes hero-spin { to { transform: rotate(360deg); } }

/* AI Agents chatbot: transparent so it blends into the section (white robot on
   dark, crisp on light) with a soft glow behind it. */
.anim-showcase { position: relative; max-width: 460px; margin: 0 auto 56px; }
.anim-showcase::before {
  content: ""; position: absolute; inset: 6% 12%; z-index: 0;
  background: radial-gradient(circle, var(--cyan-glow), transparent 68%);
  filter: blur(46px);
}
.anim-card {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}
.anim-card svg, .anim-card img { width: 100%; height: auto; display: block; }

/* AI Tools diagram uses navy text/icons designed for a light backdrop, so it is
   framed as an intentional "app window" screen that emerges from the dark. */
.about-anim-card {
  position: relative; z-index: 2;
  border-radius: 20px;
  background: linear-gradient(165deg, #eef3fb, #d9e3f2);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    0 44px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 60px -14px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 46px 24px 24px;
  overflow: hidden;
}
.about-anim-card::before {
  content: ""; position: absolute; top: 17px; left: 22px; width: 46px; height: 8px;
  background:
    radial-gradient(circle 4px at 4px 4px, #ff5f57 60%, transparent 64%),
    radial-gradient(circle 4px at 23px 4px, #febc2e 60%, transparent 64%),
    radial-gradient(circle 4px at 42px 4px, #28c840 60%, transparent 64%);
}
.about-anim-card .anim-card { filter: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; margin-bottom: 30px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 100px;
  font-size: 0.82rem; color: var(--text-soft); backdrop-filter: blur(10px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-badge b { color: var(--text); font-weight: 600; padding: 3px 10px; background: rgba(56,189,248,0.12); border-radius: 100px; }

.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero h1 .word { display: inline-block; }
.hero-lead {
  margin-top: 28px; max-width: 540px;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--text-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-stats { display: flex; gap: 48px; margin-top: 72px; flex-wrap: wrap; }
.hero-stat .num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1;
}
.hero-stat .num span { color: var(--cyan); }
.hero-stat .lbl { color: var(--text-mute); font-size: 0.86rem; margin-top: 8px; letter-spacing: 0.02em; }

/* Marquee */
.marquee { border-block: 1px solid var(--border); padding: 30px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display); font-weight: 500; font-size: 1.35rem;
  color: var(--text-mute); display: flex; align-items: center; gap: 60px; white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--cyan); font-size: 0.9rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES (numbered)
   ============================================================ */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.services-list { display: grid; gap: 18px; }
.svc {
  position: relative; display: grid; grid-template-columns: 90px 1fr auto; gap: 32px; align-items: center;
  padding: 38px 40px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--cyan), var(--indigo));
  transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease);
}
.svc:hover { border-color: var(--border-2); transform: translateX(6px); background: var(--surface-2); }
.svc:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--cyan); font-weight: 500; }
.svc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }
.svc-body p { color: var(--text-soft); margin-top: 10px; max-width: 60ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc-tags span {
  font-size: 0.76rem; color: var(--text-mute); padding: 5px 12px;
  border: 1px solid var(--border); border-radius: 100px; background: rgba(255,255,255,0.02);
}
.svc-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(56,189,248,0.08); border: 1px solid var(--border-2); color: var(--cyan);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.svc-icon svg { width: 30px; height: 30px; }
.svc:hover .svc-icon { transform: rotate(-8deg) scale(1.08); background: rgba(56,189,248,0.16); }

/* ============================================================
   AI AGENTS SHOWCASE
   ============================================================ */
.agents { background:
  radial-gradient(70% 60% at 50% 0%, rgba(99,102,241,0.10), transparent 60%); }
.agents-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.agents-head .section-tag { justify-content: center; }
.agents-head .section-tag::before { display: none; }
.agents-head .section-lead { margin-inline: auto; }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent-card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.agent-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(56,189,248,0.14), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.agent-card:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--surface-2); }
.agent-card:hover::after { opacity: 1; }
.agent-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.18), rgba(99,102,241,0.14));
  border: 1px solid var(--border-2); color: var(--cyan); margin-bottom: 22px;
}
.agent-ico svg { width: 26px; height: 26px; }
.agent-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; margin-bottom: 8px; }
.agent-card p { color: var(--text-soft); font-size: 0.92rem; }

/* ============================================================
   ABOUT / STATS
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); width: 100%; height: 520px; object-fit: cover; border: 1px solid var(--border); }
.about-media .glow { position: absolute; inset: -20px; z-index: -1; background: radial-gradient(circle, var(--cyan-glow), transparent 70%); filter: blur(60px); opacity: 0.5; }
.about-float {
  position: absolute; bottom: 26px; left: 26px; right: 26px;
  background: rgba(8, 13, 23, 0.7); backdrop-filter: blur(16px);
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
}
.about-float .fx-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(56,189,248,0.14); color: var(--cyan); display: grid; place-items: center; flex: none; }
.about-float .fx-ico svg { width: 22px; height: 22px; }
.about-float b { font-family: var(--font-display); display: block; font-size: 1rem; }
.about-float span { color: var(--text-soft); font-size: 0.85rem; }

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.stat-box { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat-box .s-num { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1; }
.stat-box .s-num span { color: var(--cyan); }
.stat-box .s-lbl { color: var(--text-soft); margin-top: 8px; font-size: 0.9rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.step { position: relative; padding: 34px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s; }
.step:hover { transform: translateY(-6px); border-color: var(--border-2); }
.step-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(56,189,248,0.5); }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 20px 0 10px; }
.step p { color: var(--text-soft); font-size: 0.92rem; }

/* ============================================================
   WORK / APP SHOWCASE
   ============================================================ */
.work-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 60px; }
.work-visual {
  position: relative; z-index: 2;
  width: 100%; max-width: 520px; margin: 0 auto;
  border-radius: 20px; overflow: hidden;
  padding-top: 40px;
  background: linear-gradient(180deg, #e8eef7, #eef3fb 40px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    0 44px 90px -30px rgba(0, 0, 0, 0.75),
    0 0 60px -14px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: hero-float 8s ease-in-out infinite;
}
.work-visual::before {
  content: ""; position: absolute; top: 16px; left: 20px; width: 46px; height: 8px; z-index: 3;
  background:
    radial-gradient(circle 4px at 4px 4px, #ff5f57 60%, transparent 64%),
    radial-gradient(circle 4px at 23px 4px, #febc2e 60%, transparent 64%),
    radial-gradient(circle 4px at 42px 4px, #28c840 60%, transparent 64%);
}
.work-visual img {
  position: relative; z-index: 2; width: 100%; height: auto;
  display: block; filter: none;
}
.work-visual-glow { display: none; }
.app-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.app-item {
  display: flex; gap: 16px; padding: 22px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.app-item:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.app-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(99,102,241,0.12));
  border: 1px solid var(--border-2); color: var(--cyan);
}
.app-ico svg { width: 22px; height: 22px; }
.app-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.app-item p { color: var(--text-soft); margin-top: 6px; font-size: 0.88rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 84px 40px;
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(56,189,248,0.16), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.cta-inner .blob { position: absolute; width: 400px; height: 400px; border-radius: 50%; filter: blur(80px); opacity: 0.3; }
.cta-inner .blob.l { background: var(--cyan); left: -100px; top: -100px; }
.cta-inner .blob.r { background: var(--indigo); right: -100px; bottom: -100px; }
.cta-inner h2 { position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.08; max-width: 16ch; margin-inline: auto; }
.cta-inner p { position: relative; color: var(--text-soft); margin: 20px auto 36px; max-width: 46ch; }
.cta-inner .hero-actions { position: relative; justify-content: center; }

/* ============================================================
   CONTACT PERSON
   ============================================================ */
.contact-person {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 22px; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(10px);
}
.cp-avatar {
  flex: none; width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em;
  color: #041018; background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 8px 24px -8px var(--cyan-glow);
}
.cp-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-label {
  font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
}
.cp-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.cp-role { color: var(--text-soft); font-size: 0.9rem; }
.cp-mail {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px;
  background: rgba(56,189,248,0.10); border: 1px solid var(--border-2);
  color: var(--text); font-size: 0.92rem; transition: all 0.25s var(--ease);
}
.cp-mail svg { width: 18px; height: 18px; color: var(--cyan); }
.cp-mail:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
:root[data-theme="light"] .cp-mail:hover { color: var(--cyan-deep); }

/* ============================================================
   OFFICES
   ============================================================ */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.office {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.office:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.office-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.office-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(56,189,248,0.10); border: 1px solid var(--border-2); color: var(--cyan);
}
.office-ico svg { width: 22px; height: 22px; }
.office-flag {
  font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); padding: 5px 12px; border: 1px solid var(--border-2); border-radius: 100px;
  background: rgba(56,189,248,0.06);
}
.office h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.office p { color: var(--text-soft); margin-top: 6px; font-size: 0.94rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 80px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--text-soft); max-width: 34ch; font-size: 0.94rem; }
.footer-chip { display: inline-block; margin-top: 22px; padding: 12px 16px; background: #fff; border-radius: 12px; }
.footer-chip img { height: 26px; width: auto; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-soft); padding: 6px 0; font-size: 0.94rem; transition: color 0.2s, padding-left 0.25s var(--ease); }
.footer-col a:hover { color: var(--cyan); padding-left: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: 0.88rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-soft); transition: all 0.3s var(--ease); }
.socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ============================================================
   REVEAL (JS-driven)
   ============================================================ */
/* Progressive enhancement: reveals only hide once JS confirms it's running,
   so no-JS (and any frame-frozen) users always see content. */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ============================================================
   LIGHT THEME — component overrides for hardcoded dark values
   ============================================================ */
:root[data-theme="light"] body::after { opacity: 0.25; }
:root[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
}
:root[data-theme="light"] .grad-text {
  background: linear-gradient(100deg, var(--cyan-deep) 0%, #0ea5e9 45%, var(--indigo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .about-float { background: rgba(255, 255, 255, 0.82); }
:root[data-theme="light"] .nav-links.open { background: rgba(255, 255, 255, 0.96); }
:root[data-theme="light"] .btn-primary { color: #ffffff; }
:root[data-theme="light"] ::selection { background: var(--cyan); color: #ffffff; }
/* In light mode the screen panels need a slightly stronger edge to separate from the page */
:root[data-theme="light"] .work-visual,
:root[data-theme="light"] .about-anim-card { border-color: var(--border-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 90px 0; }
  .hero { padding-top: 140px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { order: -1; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .work-showcase { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media img { height: 420px; }
}
@media (max-width: 680px) {
  .container { padding-inline: 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 16px; right: 16px; margin-top: 12px;
    background: rgba(8,13,23,0.96); backdrop-filter: blur(18px);
    border: 1px solid var(--border-2); border-radius: 18px; padding: 12px;
  }
  .nav-links.open a { padding: 14px 18px; }
  .nav-links.open a::after { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .btn { display: none; }
  .svc { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .svc-icon { order: -1; }
  .agents-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr; }
  .app-list { grid-template-columns: 1fr; }
  .contact-person { flex-direction: column; align-items: flex-start; text-align: left; }
  .cp-mail { margin-left: 0; width: 100%; justify-content: center; }
  .hero-stats { gap: 30px; }
  .hero-visual { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 56px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
