/* =========================================================
   TAMZ — Design Tokens
   ========================================================= */
:root {
  --bg: #05070c;
  --bg-alt: #080b13;
  --surface: #10141f;
  --surface-2: #151b2b;
  --border: #232a3d;
  --border-soft: #1a2032;

  --text: #e8ebf3;
  --text-muted: #9aa3b8;
  --text-faint: #616b82;

  --accent: #2f6bff;
  --accent-2: #17b88a;
  --accent-3: #22e0a0;
  --accent-grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);

  --success: #34d399;

  --heading: #ffffff;
  --header-bg: rgba(5,7,12,0.72);
  --glass-bg: rgba(16,20,31,0.85);
  --grid-line: rgba(255,255,255,0.035);
  --btn-ghost-bg: rgba(255,255,255,0.03);
  --ring-border: rgba(255,255,255,0.16);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 0 1px rgba(47,107,255,0.15), 0 20px 60px -20px rgba(47,107,255,0.35);
  --shadow-card: 0 10px 30px -12px rgba(0,0,0,0.5);

  --container: 1200px;
  --ease: cubic-bezier(.16,.84,.44,1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --border: #dde2ec;
  --border-soft: #e8ecf3;

  --text: #1b2333;
  --text-muted: #55607a;
  --text-faint: #7c869c;

  --heading: #0b1220;
  --header-bg: rgba(255,255,255,0.75);
  --glass-bg: rgba(255,255,255,0.9);
  --grid-line: rgba(10,20,40,0.05);
  --btn-ghost-bg: rgba(10,20,40,0.03);
  --ring-border: rgba(10,20,40,0.14);

  --shadow-card: 0 10px 30px -14px rgba(20,30,60,0.18);
  color-scheme: light;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Background decoration
   ========================================================= */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(47,107,255,0.16), transparent 60%),
    radial-gradient(600px 400px at 85% 10%, rgba(23,184,138,0.14), transparent 60%),
    var(--bg);
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(47,107,255,0.25), 0 26px 70px -18px rgba(47,107,255,0.55); }
.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(47,107,255,0.08); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
}
/* blur lives on a pseudo-element, not .site-header itself, so backdrop-filter
   doesn't turn the header into a containing block for the fixed mobile nav */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo { height: 50px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent-grad);
  transition: width .25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--heading); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: border-color .2s ease, color .2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--heading); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Typography helpers
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 14px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px 2px var(--accent-3);
}
.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

section { padding: 110px 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-top: 90px; padding-bottom: 70px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust span { display: block; font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 22px 28px; }
.trust-logos span {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-faint);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}

.hero-visual { position: relative; height: 440px; }
.hero-core {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-core-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--ring-border);
}
.hero-core-ring.r1 { width: 190px; height: 190px; }
.hero-core-ring.r2 { width: 280px; height: 280px; border-style: dashed; opacity: 0.5; animation: spin 40s linear infinite; }
.hero-core-ring.r3 { width: 370px; height: 370px; opacity: 0.3; animation: spin 60s linear infinite reverse; }
.hero-core-center {
  width: 120px; height: 120px;
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
}
.hero-core-logo { width: 52px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-card {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  animation: float 6s ease-in-out infinite;
}
.orbit-card .orbit-label { display: block; font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.orbit-card .orbit-value { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--accent-3); }
.orbit-card.card-1 { top: 6%; left: 0%; animation-delay: 0s; }
.orbit-card.card-2 { top: 42%; right: 0%; animation-delay: 1.5s; }
.orbit-card.card-3 { bottom: 6%; left: 12%; animation-delay: 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.client-orbit {
  --orbit-radius: 185px;
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transform: rotate(var(--angle)) translate(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
  transition: transform .3s var(--ease), border-color .2s ease;
  z-index: 3;
}
.client-orbit img { width: 100%; height: 100%; object-fit: cover; }
.client-orbit:hover {
  border-color: var(--accent);
  transform: rotate(var(--angle)) translate(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) scale(1.15);
}
.co-1 { --angle: 55deg; }
.co-2 { --angle: 172deg; }
.co-3 { --angle: 260deg; }
.co-4 { --angle: 330deg; }

/* =========================================================
   Stats
   ========================================================= */
.stats { padding: 60px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num, .stat-suffix {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--heading);
}
.stat-suffix { color: var(--accent-3); }
.stat-static { font-size: clamp(1.35rem, 2.6vw, 1.9rem) !important; }
.stat p { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* if the final card lands alone at the start of a new row, center it instead of stranding it on the left */
.services-grid .service-card:last-child:nth-child(3n+1) { grid-column: 2 / 3; }
.service-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47,107,255,0.4);
  box-shadow: var(--shadow-glow);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--accent-grad);
  -webkit-mask-size: 58%;
  mask-size: 58%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  position: relative;
}
.service-icon::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: rgba(47,107,255,0.12);
  z-index: -1;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.94rem; }

/* icon glyphs (inline SVG data-uri masks) */
.service-icon[data-icon="cloud"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M17.5 19H9a5 5 0 1 1 1-9.9A6 6 0 0 1 21 12.5a3.5 3.5 0 0 1-3.5 3.5Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M17.5 19H9a5 5 0 1 1 1-9.9A6 6 0 0 1 21 12.5a3.5 3.5 0 0 1-3.5 3.5Z'/%3E%3C/svg%3E"); }

.service-icon[data-icon="microservices"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }

.service-icon[data-icon="legacy"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E"); }

.service-icon[data-icon="api"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 3 4 12l4 9'/%3E%3Cpath d='m16 3 4 9-4 9'/%3E%3Cpath d='M11 3 8 21'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 3 4 12l4 9'/%3E%3Cpath d='m16 3 4 9-4 9'/%3E%3Cpath d='M11 3 8 21'/%3E%3C/svg%3E"); }

.service-icon[data-icon="embedded"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E"); }

.service-icon[data-icon="iot"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Cpath d='M7.5 7.5a6.5 6.5 0 0 0 0 9M16.5 7.5a6.5 6.5 0 0 1 0 9M4 4a11.5 11.5 0 0 0 0 16M20 4a11.5 11.5 0 0 1 0 16'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Cpath d='M7.5 7.5a6.5 6.5 0 0 0 0 9M16.5 7.5a6.5 6.5 0 0 1 0 9M4 4a11.5 11.5 0 0 0 0 16M20 4a11.5 11.5 0 0 1 0 16'/%3E%3C/svg%3E"); }

.service-icon[data-icon="eld"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='6' width='16' height='12' rx='2'/%3E%3Cpath d='m18 10 4-3v10l-4-3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='6' width='16' height='12' rx='2'/%3E%3Cpath d='m18 10 4-3v10l-4-3'/%3E%3C/svg%3E"); }

.service-icon[data-icon="blockchain"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M10 6.5h4M6.5 10v4M17.5 10v4M10 17.5h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Cpath d='M10 6.5h4M6.5 10v4M17.5 10v4M10 17.5h4'/%3E%3C/svg%3E"); }

.service-icon[data-icon="ai"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='5' y='5' width='14' height='14' rx='3'/%3E%3Ccircle cx='9.5' cy='10' r='1.2' fill='%23000'/%3E%3Ccircle cx='14.5' cy='10' r='1.2' fill='%23000'/%3E%3Cpath d='M9 15c1 1 5 1 6 0'/%3E%3Cpath d='M12 2v3M4 12H1M23 12h-3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='5' y='5' width='14' height='14' rx='3'/%3E%3Ccircle cx='9.5' cy='10' r='1.2' fill='%23000'/%3E%3Ccircle cx='14.5' cy='10' r='1.2' fill='%23000'/%3E%3Cpath d='M9 15c1 1 5 1 6 0'/%3E%3Cpath d='M12 2v3M4 12H1M23 12h-3'/%3E%3C/svg%3E"); }

.service-icon[data-icon="embeddedai"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M4.9 4.9l2 2M17 17l2 2M2 12h3M19 12h3M4.9 19.1l2-2M17 7l2-2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M4.9 4.9l2 2M17 17l2 2M2 12h3M19 12h3M4.9 19.1l2-2M17 7l2-2'/%3E%3C/svg%3E"); }

.service-icon[data-icon="vision"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

.service-icon[data-icon="autonomous"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='9' width='16' height='9' rx='2'/%3E%3Ccircle cx='8.5' cy='18' r='1.6'/%3E%3Ccircle cx='15.5' cy='18' r='1.6'/%3E%3Cpath d='M7 9V6a5 5 0 0 1 10 0v3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='4' y='9' width='16' height='9' rx='2'/%3E%3Ccircle cx='8.5' cy='18' r='1.6'/%3E%3Ccircle cx='15.5' cy='18' r='1.6'/%3E%3Cpath d='M7 9V6a5 5 0 0 1 10 0v3'/%3E%3C/svg%3E"); }

.service-icon[data-icon="localai"] { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3'/%3E%3Ccircle cx='4' cy='12' r='2'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3Ccircle cx='20' cy='14' r='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3'/%3E%3Ccircle cx='4' cy='12' r='2'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3Ccircle cx='20' cy='14' r='2'/%3E%3C/svg%3E"); }

/* =========================================================
   Process / Timeline
   ========================================================= */
.timeline-entries { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.entry-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.entry-scratch { border-color: rgba(34,224,160,0.3); }
.entry-existing { border-color: rgba(47,107,255,0.3); }
.entry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}
.entry-icon svg { width: 20px; height: 20px; }
.entry-scratch .entry-icon { background: rgba(34,224,160,0.12); color: var(--accent-3); }
.entry-existing .entry-icon { background: rgba(47,107,255,0.12); color: var(--accent); }
.entry-card h4 { font-family: 'Sora', sans-serif; font-size: 1rem; color: var(--heading); margin-bottom: 6px; }
.entry-card p { font-size: 0.88rem; color: var(--text-muted); }
.entry-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.entry-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.entry-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
}
.entry-scratch .entry-list li::before { background: var(--accent-3); }
.entry-existing .entry-list li::before { background: var(--accent); }
.entry-converge {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-faint);
  margin-bottom: 58px;
  position: relative;
}

.timeline-wrap { display: flex; flex-direction: column; }
.timeline-row { position: relative; }
.timeline-flow {
  position: absolute;
  top: -54px;
  left: 0;
  width: 100%;
  height: 106px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease .2s;
  z-index: 0;
}
.timeline-row-connector {
  width: 40px;
  height: 46px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 1s ease .2s;
}
.timeline-wrap.in-view .timeline-flow,
.timeline-wrap.in-view .timeline-row-connector { opacity: 0.6; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline-6 { grid-template-columns: repeat(3, 1fr); }
.timeline-step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  transition-property: opacity, transform;
  transition-duration: .7s;
  transition-timing-function: var(--ease);
}
.timeline-step:nth-child(1) { transition-delay: 0s; }
.timeline-step:nth-child(2) { transition-delay: .1s; }
.timeline-step:nth-child(3) { transition-delay: .2s; }
.timeline-step:nth-child(4) { transition-delay: .3s; }
.timeline-step:nth-child(5) { transition-delay: .4s; }
.timeline-step:nth-child(6) { transition-delay: .5s; }
.timeline-index {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent-3);
  background: rgba(34,224,160,0.1);
  border: 1px solid rgba(34,224,160,0.25);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
}
.timeline-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.timeline-step p { color: var(--text-muted); font-size: 0.92rem; }
.process-more { text-align: center; margin-top: 44px; }

/* =========================================================
   Portfolio / Testimonials
   ========================================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .3s ease, transform .3s ease;
}
.testimonial-card:hover { border-color: rgba(23,184,138,0.4); transform: translateY(-4px); }
.quote { font-size: 1.05rem; color: var(--text); margin-bottom: 24px; }
.testimonial-meta { display: flex; align-items: center; gap: 14px; }
.testimonial-meta div { display: flex; flex-direction: column; }
.testimonial-meta strong { font-size: 0.95rem; color: var(--heading); }
.testimonial-meta span { font-size: 0.82rem; color: var(--text-faint); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

/* =========================================================
   About
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.about-copy > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.about-points li {
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.96rem;
}
.about-points li:last-child { border-bottom: 1px solid var(--border-soft); }
.about-points strong { color: var(--heading); display: block; margin-bottom: 4px; font-family: 'Sora', sans-serif; }

.about-panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 10px 28px;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.panel-row:last-child { border-bottom: none; }
.panel-row span { color: var(--text-faint); font-size: 0.88rem; }
.panel-row strong { font-family: 'Sora', sans-serif; font-size: 0.95rem; text-align: right; color: var(--heading); }

.industries { margin-top: 48px; }
.industries-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
  opacity: 0;
  transform: translateY(10px);
}
.industry-tags span svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-3); transition: transform .3s ease; }
.industry-tags span:hover { border-color: var(--accent); color: var(--heading); transform: translateY(-2px); }
.industry-tags span:hover svg { transform: scale(1.15) rotate(-6deg); }

.industries.in-view .industry-tags span {
  animation: chip-in .5s var(--ease) forwards;
}
.industries.in-view .industry-tags span:nth-child(1) { animation-delay: .05s; }
.industries.in-view .industry-tags span:nth-child(2) { animation-delay: .1s; }
.industries.in-view .industry-tags span:nth-child(3) { animation-delay: .15s; }
.industries.in-view .industry-tags span:nth-child(4) { animation-delay: .2s; }
.industries.in-view .industry-tags span:nth-child(5) { animation-delay: .25s; }
.industries.in-view .industry-tags span:nth-child(6) { animation-delay: .3s; }
.industries.in-view .industry-tags span:nth-child(7) { animation-delay: .35s; }
.industries.in-view .industry-tags span:nth-child(8) { animation-delay: .4s; }
@keyframes chip-in {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   CTA Banner
   ========================================================= */
.cta-banner {
  padding: 90px 0;
}
.cta-inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-grad);
  opacity: 0.12;
  filter: blur(60px);
  z-index: -1;
}
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-inner p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* =========================================================
   Contact
   ========================================================= */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--accent-3); }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }
.info-card p.phone-entry { margin-bottom: 12px; }
.info-card p.phone-entry:last-child { margin-bottom: 0; }
.info-card p.phone-entry span { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--text-faint); }
.info-card a:hover { color: var(--heading); }

.info-card-chat {
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(160deg, rgba(47,107,255,0.14) 0%, rgba(23,184,138,0.1) 100%);
  border-color: rgba(47,107,255,0.35);
  transition: border-color .2s ease, transform .2s ease;
}
.info-card-chat:hover { border-color: var(--accent); transform: translateY(-3px); }
.info-card-chat h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card-chat h3::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px 2px var(--accent-3);
}
.info-card-chat p { color: var(--text-muted); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-top: 70px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { height: 75px; width: auto; margin-bottom: 4px; }
.footer-brand p { color: var(--text-faint); font-size: 0.9rem; margin: 16px 0 20px; max-width: 280px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  transition: border-color .2s ease, color .2s ease;
}
.social-links a svg { width: 17px; height: 17px; }
.social-links a:hover { border-color: var(--accent); color: var(--heading); }

.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--heading); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, border-color .2s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent-3); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .client-orbit { --orbit-radius: 135px; width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .services-grid .service-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-flow { display: none; }
  .timeline-row-connector { display: none; }
  .timeline-entries { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .client-orbit { --orbit-radius: 118px; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 32px 24px; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-link { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-inner { padding: 44px 24px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-core-ring, .orbit-card { animation: none; }
  .industry-tags span { animation: none !important; opacity: 1; transform: none; }
  .timeline-flow circle animateMotion { display: none; }
}
