/* =========================================================
   AI Power Build — style.css  (v2 · art-directed)
   Editorial dark theme · bento · custom cursor · grain
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #05060c;
  --bg-soft: #080a14;
  --ink: #0c0e1c;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f5fb;
  --text-soft: #b4b8cc;
  --text-muted: #767b94;

  --v: #8b5cf6;   /* violet */
  --b: #4f7cff;   /* blue   */
  --c: #34e7e4;   /* teal   */

  --grad: linear-gradient(110deg, #8b5cf6 0%, #4f7cff 48%, #34e7e4 100%);
  --grad-text: linear-gradient(100deg, #c2b0ff 0%, #7fa6ff 50%, #5ff0ec 100%);
  --grad-soft: linear-gradient(155deg, rgba(139,92,246,.18), rgba(52,231,228,.05));

  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);

  --r: 20px;
  --r-lg: 30px;
  --maxw: 1200px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --disp: "Space Grotesk", var(--sans);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--disp);
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 600;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(139,92,246,.45); color: #fff; }

/* ---------- A11y ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--v); color: #fff; padding: 10px 18px;
  border-radius: 10px; font-weight: 600; transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }

/* ---------- Grain + scroll progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 14px rgba(79,124,255,.7);
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0;
  mix-blend-mode: difference;
}
.cursor { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12); border-color: transparent;
}
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; position: relative; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn-sm { padding: 11px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #fff; background-size: 160% 160%;
  box-shadow: 0 14px 36px -12px rgba(99,102,241,.7);
}
.btn-primary:hover {
  transform: translateY(-2px); background-position: 100% 50%;
  box-shadow: 0 22px 50px -14px rgba(79,124,255,.85);
}
.btn-ghost {
  background: var(--surface); border-color: var(--border-strong); color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--c); transform: translateY(-2px); }
.btn > * { pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(6, 7, 14, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--disp); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em;
}
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 16px rgba(99,102,241,.5)); }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav > a:not(.btn) {
  color: var(--text-soft); font-weight: 500; font-size: .95rem; position: relative;
}
.primary-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width .3s var(--ease);
}
.primary-nav > a:not(.btn):hover { color: var(--text); }
.primary-nav > a:not(.btn):hover::after,
.primary-nav > a.active::after { width: 100%; }
.primary-nav > a.active { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 46px; height: 46px; border: 1px solid var(--border-strong);
  border-radius: 13px; background: var(--surface); padding: 0 12px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 90vw; max-width: 1100px; height: 700px; top: -180px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(99,102,241,.22), transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; z-index: 2; max-width: 940px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  backdrop-filter: blur(8px); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-soft); text-transform: uppercase;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 0 rgba(52,231,228,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,231,228,.6); }
  70% { box-shadow: 0 0 0 11px rgba(52,231,228,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,231,228,0); }
}

.hero-title {
  margin-top: 30px;
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: 0.94;
}
.hero-title .line { display: block; padding-bottom: 0.06em; }
.hero-title em { font-size: 0.92em; }

.hero-sub {
  margin-top: 30px; max-width: 600px;
  font-size: clamp(1.06rem, 2vw, 1.32rem); color: var(--text-soft);
}
.hero-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.gradient-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.hero-stats {
  margin: 64px 0 0; display: flex; flex-wrap: wrap; gap: 14px 48px;
}
.stat { min-width: 92px; }
.stat-num {
  font-family: var(--disp); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stat dd { margin: 6px 0 0; font-size: .82rem; color: var(--text-muted); letter-spacing: .02em; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-muted);
}
.scroll-cue-line {
  width: 1px; height: 46px; background: linear-gradient(var(--c), transparent); position: relative; overflow: hidden;
}
.scroll-cue-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff; animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 26px 0; overflow: hidden; background: var(--bg-soft);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: var(--disp); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500;
  color: var(--text); white-space: nowrap; padding-right: 0; letter-spacing: -0.01em;
}
.marquee-track i { color: var(--c); font-style: normal; margin: 0 .35em; opacity: .8; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin: 0 0 clamp(46px, 6vw, 72px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--disp); font-weight: 600; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--c); margin-bottom: 20px;
}
.kicker-idx {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0;
  color: var(--text-muted); text-transform: none;
}
.section-title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 600; letter-spacing: -0.035em; }
.section-lead { margin-top: 20px; color: var(--text-soft); font-size: clamp(1.02rem, 1.7vw, 1.18rem); max-width: 620px; }

/* ---------- Card base + spotlight ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(99,102,241,.18), transparent 60%);
}
.spotlight:hover::before { opacity: 1; }
.card:hover { border-color: var(--border-strong); }

/* ---------- Services bento ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "web web agents auto"
    "web web agents auto"
    "app app sys    sys";
}
.tile-web    { grid-area: web; }
.tile-agents { grid-area: agents; }
.tile-auto   { grid-area: auto; }
.tile-app    { grid-area: app; }
.tile-sys    { grid-area: sys; }

.bento-tile {
  padding: 30px; display: flex; flex-direction: column; min-height: 210px;
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: var(--surface-2); }
.tile-web {
  background: linear-gradient(165deg, rgba(139,92,246,.16), rgba(52,231,228,.04));
  justify-content: space-between;
}
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tile-index { font-family: var(--serif); font-style: italic; color: var(--text-muted); font-size: 1.4rem; }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--c);
}
.card-icon svg { width: 25px; height: 25px; }
.bento-tile h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.tile-web h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.bento-tile > p { margin-top: 12px; color: var(--text-soft); font-size: .97rem; }
.tile-web > p { max-width: 420px; }

.tag-list { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-size: .8rem; color: var(--text-soft); padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}

.services-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 18px; padding: 26px 32px; border-radius: var(--r);
  border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, rgba(139,92,246,.12), rgba(52,231,228,.05));
}
.services-cta p { font-size: 1.05rem; color: var(--text); max-width: 640px; }

/* ---------- Why ---------- */
.why-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.why-head { position: sticky; top: 120px; margin-bottom: 0; }
.why-cta { margin-top: 28px; }
.why-list { display: flex; flex-direction: column; }
.why-row {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--border);
  transition: padding-left .35s var(--ease);
}
.why-row:last-child { border-bottom: 1px solid var(--border); }
.why-row:hover { padding-left: 12px; }
.why-num {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.why-row h3 { font-size: 1.35rem; }
.why-row p { margin-top: 10px; color: var(--text-soft); font-size: 1rem; }

/* ---------- Process timeline ---------- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; padding-left: 6px; }
.timeline-rail {
  position: absolute; left: 30px; top: 18px; bottom: 18px; width: 2px;
  background: var(--border); overflow: hidden; border-radius: 2px;
}
.timeline-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(var(--v), var(--b), var(--c));
  box-shadow: 0 0 14px rgba(79,124,255,.6); transition: height .15s linear;
}
.timeline-step {
  position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 28px;
  padding-bottom: 30px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-node {
  position: relative; z-index: 1; width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 7px var(--bg); transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.timeline-node span {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.timeline-step.in .timeline-node { border-color: rgba(79,124,255,.6); box-shadow: 0 0 0 7px var(--bg), 0 0 26px -4px rgba(79,124,255,.5); }
.timeline-body {
  padding: 22px 28px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); backdrop-filter: blur(8px); margin-top: 2px;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease);
}
.timeline-step:hover .timeline-body { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(6px); }
.timeline-body h3 { font-size: 1.3rem; }
.timeline-body p { margin-top: 8px; color: var(--text-soft); font-size: .98rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { padding: 0; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-thumb {
  position: relative; height: 200px; display: flex; align-items: flex-end; padding: 18px; overflow: hidden;
}
.work-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .55;
}
.thumb-art {
  position: absolute; top: 14px; right: 18px; font-size: 3.4rem; line-height: 1;
  color: rgba(255,255,255,.85); text-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.thumb-1 { background: linear-gradient(135deg, #5b3df0, #9b4dff); }
.thumb-2 { background: linear-gradient(135deg, #1f7df0, #21d4e6); }
.thumb-3 { background: linear-gradient(135deg, #ff5c8a, #c46bff); }
.thumb-4 { background: linear-gradient(135deg, #14b8a6, #2f9bff); }
.thumb-5 { background: linear-gradient(135deg, #7c5cff, #2f6bff); }
.thumb-6 { background: linear-gradient(135deg, #f0913d, #ff5c6e); }
.thumb-tag {
  position: relative; z-index: 1; font-size: .74rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); color: #fff;
}
.work-body { padding: 24px 26px 28px; }
.work-body h3 { font-size: 1.28rem; }
.work-body p { margin-top: 8px; color: var(--text-soft); font-size: .96rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-row li {
  font-size: .76rem; color: var(--text-soft); padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}

/* ---------- Testimonials ---------- */
.section-testimonials { overflow: hidden; }
.testimonial-marquee {
  position: relative; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testi-track { display: flex; gap: 20px; width: max-content; animation: testi 48s linear infinite; }
.testimonial-marquee:hover .testi-track { animation-play-state: paused; }
@keyframes testi { to { transform: translateX(-50%); } }
.testi-card {
  width: 360px; flex-shrink: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.stars { color: #ffd166; letter-spacing: 2px; font-size: 1rem; }
.testi-card blockquote { margin: 0; font-size: 1.04rem; line-height: 1.55; color: var(--text); }
.testi-card figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--disp); font-weight: 600; font-size: .9rem; color: #fff;
  background: var(--grad); flex-shrink: 0;
}
.who { display: flex; flex-direction: column; line-height: 1.3; }
.who strong { font-size: .95rem; }
.who span { font-size: .82rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  backdrop-filter: blur(8px); overflow: hidden; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq-item.open { border-color: var(--border-strong); background: var(--surface-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px; background: none; border: 0; color: var(--text); text-align: left;
  font-family: var(--disp); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em;
}
.faq-icon { position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px;
  background: var(--c); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--text-soft); font-size: .99rem; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px);
  padding: clamp(34px, 5vw, 60px);
  background: linear-gradient(150deg, rgba(139,92,246,.12), rgba(52,231,228,.04));
  border-color: var(--border-strong);
}
.contact-intro .section-head { margin-bottom: 0; }
.contact-points { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-points li { display: flex; gap: 14px; color: var(--text-soft); }
.contact-points strong { color: var(--text); }
.cp-icon {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--c); font-size: 1rem;
}
.contact-points a { color: var(--c); }
.contact-points a:hover { text-decoration: underline; }

.contact-form { align-self: center; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 8px; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(0,0,0,.28); color: var(--text); font-family: inherit; font-size: .98rem; resize: vertical;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--v); box-shadow: 0 0 0 4px rgba(139,92,246,.18); background: rgba(0,0,0,.4);
}
.field.invalid input, .field.invalid textarea { border-color: #ff5c7a; box-shadow: 0 0 0 4px rgba(255,92,122,.14); }
.error-msg { display: block; min-height: 16px; margin-top: 6px; font-size: .82rem; color: #ff89a0; }
.form-status { margin-top: 14px; font-size: .92rem; text-align: center; min-height: 20px; }
.form-status.success { color: #5ee7a0; }
.form-status.error { color: #ff89a0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(99,102,241,.05)); padding-top: 80px; }
.footer-cta { padding-bottom: 50px; border-bottom: 1px solid var(--border); margin-bottom: 50px; }
.footer-word { font-size: clamp(3rem, 12vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-tag { color: var(--text-muted); font-size: .94rem; max-width: 320px; }
.footer-col h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted);
  margin-bottom: 18px; font-family: var(--sans); font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-soft); font-size: .95rem; }
.footer-col a:hover { color: var(--c); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.socials a:hover { color: #fff; border-color: var(--c); background: var(--surface-2); transform: translateY(-3px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 26px 0 44px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .88rem;
}
.footer-legal a:hover { color: var(--c); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

[data-reveal-line] .gradient-text,
[data-reveal-line] em,
[data-reveal-line] > span,
[data-reveal-line] { display: inline-block; }
[data-reveal-line] {
  display: block; transform: translateY(110%); opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
[data-reveal-line].in { transform: none; opacity: 1; }
[data-reveal-line][data-delay="1"] { transition-delay: .12s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .why-layout { grid-template-columns: 1fr; gap: 36px; }
  .why-head { position: static; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-head { position: static; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  body.has-cursor { cursor: auto; }
  body.has-cursor a, body.has-cursor button { cursor: pointer; }
  .cursor, .cursor-ring { display: none; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 22px 26px 30px; background: rgba(6, 7, 14, 0.97);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .primary-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav > a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 1.04rem; }
  .primary-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "web web" "agents auto" "app sys";
  }
  .contact-card { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "web" "agents" "auto" "app" "sys"; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .timeline-step { grid-template-columns: 50px 1fr; gap: 18px; }
  .timeline-rail { left: 24px; }
  .timeline-node { width: 50px; height: 50px; }
  .testi-card { width: 290px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .services-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-line] { opacity: 1 !important; transform: none !important; }
  .marquee-track, .testi-track { animation: none !important; }
  .cursor, .cursor-ring { display: none !important; }
  body.has-cursor { cursor: auto !important; }
}
