/* =========================================================
   Wathaek — website styles
   Brand: Sky Cyan #22C7EE · Bright Blue #1E6BFF · Alexandria
   ========================================================= */

:root {
  --cyan: #22C7EE;
  --blue: #1E6BFF;
  --blue-hover: #1A5FE6;
  --tint: #E8F8FD;
  --tint-2: #F4FAFD;
  --head: #2A3854;
  --body: #56667F;
  --muted: #7A889E;
  --line: #E3EAF2;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(30, 107, 255, .06);
  --shadow: 0 18px 40px -18px rgba(30, 107, 255, .28);
  --header-h: 76px;
  --container: 1200px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: "Alexandria", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--head); line-height: 1.4; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(30, 107, 255, .45); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 500; font-size: .98rem; line-height: 1.4; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-lg { padding: 15px 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 107, 255, .7); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue); border-color: #CFE0FF; }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text b { font-size: 1.1rem; color: var(--head); font-weight: 600; }
.brand-text small { font-size: .76rem; color: var(--muted); font-weight: 300; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 10px; font-weight: 400; font-size: .95rem; color: var(--head);
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--blue); background: var(--tint-2); }
.nav a.active { color: var(--blue); }
.nav-cta { display: none; }
.header-cta { flex: none; }

.menu-btn {
  display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--head); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .ico-close { display: none; }
.menu-open .menu-btn .ico-open { display: none; }
.menu-open .menu-btn .ico-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(34, 199, 238, .18), transparent 70%),
    radial-gradient(700px 500px at 10% 60%, rgba(30, 107, 255, .12), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--tint-2) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30, 107, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 107, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .92rem; font-weight: 600; color: var(--blue);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 199, 238, .2); }

.hero h1 { margin: 22px 0 20px; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.35; font-weight: 700; letter-spacing: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 2; max-width: 60ch; font-weight: 300; }
.lead + .lead { margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Hero visual: a website in a browser + an app on a phone (sizes scale with the box via cqw) */
.hero-visual { display: grid; place-items: center; }
.devices { position: relative; width: min(100%, 560px); aspect-ratio: 1 / .86; container-type: inline-size; }

.sk { display: block; height: 1.3cqw; border-radius: 1cqw; background: #E6EEF7; }
.sk.light { background: rgba(255, 255, 255, .55); }
.w10 { width: 10%; } .w12 { width: 12%; } .w14 { width: 14%; } .w40 { width: 40%; } .w50 { width: 50%; }
.w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.browser {
  position: absolute; inset-inline-start: 0; top: 4%; width: 86%;
  background: #fff; border: 1px solid var(--line); border-radius: 2.4cqw; overflow: hidden;
  box-shadow: 0 4cqw 8cqw -3cqw rgba(30, 107, 255, .32);
  animation: float 9s ease-in-out infinite;
}
.b-bar { display: flex; align-items: center; gap: 3cqw; padding: 1.8cqw 2.4cqw; background: var(--tint-2); border-bottom: 1px solid var(--line); direction: ltr; }
.b-dots { display: flex; gap: 1cqw; }
.b-dots i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #D7E3F1; }
.b-dots i:first-child { background: var(--cyan); }
.b-dots i:nth-child(2) { background: var(--blue); }
.b-url { flex: 1; max-width: 46%; margin-inline: auto; padding: .5cqw 2cqw; border-radius: 3cqw; background: #fff; border: 1px solid var(--line); font-size: 1.7cqw; line-height: 1.6; color: var(--muted); text-align: center; }
.b-page { padding: 2.6cqw 3cqw 3cqw; display: grid; gap: 2.6cqw; }
.b-nav { display: flex; align-items: center; gap: 2cqw; }
.b-nav .b-logo { width: 4.6cqw; height: 4.6cqw; flex: none; }
.b-nav .sk { height: 1.1cqw; }
.b-btn { margin-inline-start: auto; width: 11cqw; height: 3.2cqw; border-radius: 3cqw; background: var(--blue); }
.b-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3cqw; align-items: center; }
.b-copy { display: grid; gap: 1.2cqw; justify-items: start; }
.b-copy b { font-size: 3.5cqw; line-height: 1.35; color: var(--head); font-weight: 700; }
.b-copy .sk { height: 1.1cqw; }
.b-cta { margin-top: .8cqw; padding: .9cqw 3cqw; border-radius: 3cqw; background: var(--grad); color: #fff; font-size: 1.7cqw; font-weight: 600; line-height: 1.5; }
.b-art { aspect-ratio: 1.15; border-radius: 2cqw; background: var(--grad); display: grid; place-items: center; position: relative; overflow: hidden; }
.b-art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: .5cqw dashed rgba(255, 255, 255, .35); animation: spin 40s linear infinite; }
.b-art svg { width: 46%; height: 46%; --c1: #fff; --c2: #fff; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.b-cards > div { border: 1px solid var(--line); border-radius: 1.6cqw; padding: 1.8cqw; display: grid; gap: 1cqw; }
.b-cards i { width: 4.4cqw; height: 4.4cqw; border-radius: 1.2cqw; background: var(--tint); color: var(--blue); display: grid; place-items: center; margin-bottom: .4cqw; }
.b-cards i svg { width: 60%; height: 60%; }
.b-cards .sk { height: 1cqw; }

.phone {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 30%; aspect-ratio: 9 / 18.5;
  padding: 1.3cqw; border-radius: 5.4cqw; background: #fff; border: 1px solid #DCE6F2;
  box-shadow: 0 5cqw 9cqw -3cqw rgba(30, 107, 255, .45), inset 0 0 0 .5cqw #F1F6FB;
  animation: float 7s ease-in-out infinite -2s;
}
.p-screen { position: relative; height: 100%; border-radius: 4.2cqw; background: var(--tint-2); overflow: hidden; padding: 5.2cqw 2.2cqw 2.4cqw; display: flex; flex-direction: column; gap: 1.8cqw; }
.p-notch { position: absolute; top: 1.4cqw; left: 50%; transform: translateX(-50%); width: 9cqw; height: 2.2cqw; border-radius: 2cqw; background: #DCE6F2; }
.p-head { display: flex; align-items: center; gap: 1.4cqw; }
.p-head svg { width: 5cqw; height: 5cqw; flex: none; }
.p-head > span { flex: 1; display: grid; gap: .6cqw; }
.p-head b { font-size: 2cqw; line-height: 1.3; color: var(--head); font-weight: 600; }
.p-head .sk { height: .9cqw; }
.p-card { border-radius: 2.4cqw; background: var(--grad); padding: 2cqw; display: grid; gap: 1.6cqw; }
.p-card .sk { height: .9cqw; }
.p-chart { height: 9cqw; display: flex; align-items: flex-end; gap: 1cqw; }
.p-chart i { flex: 1; border-radius: .8cqw .8cqw .3cqw .3cqw; background: rgba(255, 255, 255, .85); transform-origin: bottom; animation: grow 3.6s ease-in-out infinite alternate; }
.p-chart i:nth-child(2n) { animation-delay: -1.2s; background: rgba(255, 255, 255, .6); }
.p-chart i:nth-child(3n) { animation-delay: -2.4s; }
.p-row { display: flex; align-items: center; gap: 1.4cqw; background: #fff; border: 1px solid var(--line); border-radius: 1.8cqw; padding: 1.3cqw; }
.p-row i { width: 4cqw; height: 4cqw; border-radius: 1.1cqw; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.p-row i svg { width: 60%; height: 60%; }
.p-row > span { flex: 1; display: grid; gap: .7cqw; }
.p-row .sk { height: .9cqw; }
.p-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 1.4cqw 1cqw; background: #fff; border-radius: 2cqw; border: 1px solid var(--line); }
.p-tabs i { width: 2cqw; height: 2cqw; border-radius: .7cqw; background: #DCE6F2; }
.p-tabs i.on { background: var(--blue); width: 5cqw; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: .92rem; font-weight: 600; color: var(--head); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip svg { width: 20px; height: 20px; color: var(--blue); }
.chip.c1 { top: -8%; inset-inline-end: 10%; animation-delay: -1.5s; }
.chip.c3 { bottom: 8%; inset-inline-start: 4%; animation-delay: -3.5s; }

@keyframes grow { from { transform: scaleY(.75); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats {
  margin: clamp(40px, 6vw, 72px) 0 0; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stats div { padding: 22px 20px; text-align: center; }
.stats div + div { border-inline-start: 1px solid var(--line); }
.stats dt { font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 8px 0 0; font-size: .95rem; line-height: 1.6; color: var(--head); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint-2); }
.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(36px, 5vw, 56px); }
.label {
  display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--tint);
  color: var(--blue); font-weight: 600; font-size: .92rem; margin-bottom: 16px;
}
.label-light { background: rgba(255, 255, 255, .18); color: #fff; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.accent { color: var(--blue); }

/* About: text + the brand mark with orbiting highlights */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-copy { display: grid; gap: 16px; font-size: 1.08rem; line-height: 2.05; margin-top: 22px; font-weight: 300; }
.about-visual { display: grid; place-items: center; }

.orb { position: relative; width: min(100%, 460px); aspect-ratio: 1; }
.orb-ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(30, 107, 255, .2); }
.orb-ring.r1 { inset: 4%; animation: spin 60s linear infinite; }
.orb-ring.r2 { inset: 20%; border-color: rgba(34, 199, 238, .35); animation: spin 40s linear infinite reverse; }
.orb-core {
  position: absolute; inset: 31%; border-radius: 32px; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(30, 107, 255, .35), 0 0 0 10px rgba(255, 255, 255, .6);
  display: grid; place-items: center; animation: breathe 7s ease-in-out infinite;
}
.orb-core svg { width: 68%; height: 68%; }
.orb .chip.o1 { top: 6%; right: 4%; }
.orb .chip.o2 { top: 32%; left: -4%; animation-delay: -1.5s; }
.orb .chip.o3 { bottom: 14%; right: -2%; animation-delay: -3s; }
.orb .chip.o4 { bottom: 3%; left: 12%; animation-delay: -4.5s; }
@keyframes breathe {
  0%, 100% { transform: translateY(0); box-shadow: 0 30px 60px -20px rgba(30, 107, 255, .35), 0 0 0 10px rgba(255, 255, 255, .6); }
  50% { transform: translateY(-8px); box-shadow: 0 40px 70px -24px rgba(30, 107, 255, .42), 0 0 0 10px rgba(255, 255, 255, .6); }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D2E3FF; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); flex: none;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 20px -10px rgba(30, 107, 255, .7);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-no { font-weight: 700; color: #C5D2E3; font-size: 1.05rem; direction: ltr; }
.svc h3 { font-size: 1.22rem; }
.svc p { font-size: .97rem; line-height: 1.95; font-weight: 300; }

.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-inline-start: 30px; font-size: .93rem; line-height: 1.8; color: var(--head); }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5 L10.2 16.5 L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Featured AI card */
.svc-featured {
  grid-column: span 2; grid-row: span 2; padding: clamp(28px, 4vw, 44px);
  background: var(--grad); border: 0; color: #fff; overflow: hidden; justify-content: center;
}
.svc-featured::after {
  content: ""; position: absolute; width: 340px; height: 340px; inset-inline-end: -90px; bottom: -110px;
  background: url("assets/icon-white.svg") center / contain no-repeat; opacity: .12; pointer-events: none;
}
.svc-featured h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.svc-featured p { color: rgba(255, 255, 255, .95); font-size: 1.1rem; max-width: 52ch; }
.svc-featured .svc-icon { background: rgba(255, 255, 255, .2); box-shadow: none; width: 60px; height: 60px; }
.svc-featured .svc-icon svg { width: 30px; height: 30px; }
.svc-featured .svc-no { color: rgba(255, 255, 255, .6); }
.svc-featured .checks { grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 10px; position: relative; z-index: 1; }
.svc-featured .checks li { color: #fff; font-weight: 500; }
.svc-featured .checks li::before { background-color: rgba(255, 255, 255, .25); }
.svc-featured:hover { border-color: transparent; }

/* ---------- Consulting ---------- */
.consult { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.consult-card {
  background: var(--tint-2); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.consult-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.consult-card p { font-size: 1.02rem; line-height: 2.05; flex: 1; font-weight: 300; }
.consult-card--grad { background: var(--grad); border: 0; color: #fff; }
.consult-card--grad h3, .consult-card--grad p { color: #fff; }
.consult-card--grad .svc-icon { background: rgba(255, 255, 255, .2); box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.text-link svg { width: 20px; height: 20px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(-4px); }
.consult-card--grad .text-link { color: #fff; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.why-item {
  grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s, box-shadow .25s;
}
.why-item:nth-child(4), .why-item:nth-child(5) { grid-column: span 3; }
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-item h3 { font-size: 1.15rem; }
.why-item p { font-size: .97rem; font-weight: 300; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; inset-inline: 8%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.steps li { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; }
.step-no {
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 0 0 8px #fff, 0 12px 24px -10px rgba(30, 107, 255, .7);
}
.steps p { font-weight: 500; color: var(--head); font-size: 1rem; line-height: 1.6; max-width: 18ch; }

/* ---------- Contact ---------- */
.contact { background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; top: -140px;
  background: url("assets/icon-white.svg") center / contain no-repeat; opacity: .08; pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact .h2 { color: #fff; }
.contact-copy p { margin-top: 18px; font-size: 1.05rem; font-weight: 300; color: rgba(255, 255, 255, .95); max-width: 52ch; }
.contact-cards { display: grid; gap: 14px; margin-top: 30px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); transition: background-color .2s;
}
.contact-card:hover { background: rgba(255, 255, 255, .22); }
.contact-card .svc-icon { background: #fff; color: var(--blue); box-shadow: none; }
.contact-card small { display: block; font-size: .9rem; opacity: .9; }
.contact-card b { display: block; font-size: 1.3rem; line-height: 1.4; }

.form { background: #fff; color: var(--body); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -25px rgba(10, 40, 120, .45); display: grid; gap: 16px; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--tint-2); border-radius: 14px; }
.form-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.form-tabs span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.form-tabs input:checked + span { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.form-tabs input:focus-visible + span { outline: 3px solid rgba(30, 107, 255, .45); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--head); font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); }
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 110px; }
.form-error { color: #D93A3A; font-size: .95rem; font-weight: 500; }
.form-note { text-align: center; font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--tint-2); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; align-items: start; }
.footer-brand p { margin-top: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .footer-contact a { color: var(--head); font-weight: 500; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--blue); }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 20px; height: 20px; color: var(--blue); }
.footer-bottom { margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); text-align: center; }


/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Soft motion (all of it is switched off for reduced-motion users)
   ========================================================= */

/* Hero: slow drifting light behind the content */
.hero-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(420px 320px at 75% 25%, rgba(34, 199, 238, .16), transparent 70%),
    radial-gradient(460px 360px at 25% 70%, rgba(30, 107, 255, .10), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }

/* Headline gradient shifts slowly between cyan and blue */
.grad-text { background-size: 200% auto; animation: shimmer 9s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Hero copy appears line by line */
.js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .stagger.in > * { opacity: 1; transform: none; }
.stagger > :nth-child(2) { transition-delay: .08s; }
.stagger > :nth-child(3) { transition-delay: .16s; }
.stagger > :nth-child(4) { transition-delay: .24s; }
.stagger > :nth-child(5) { transition-delay: .32s; }

/* Cards in a grid cascade in (index set by script.js) */
.js .reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* Hover details */
.svc-icon { transition: transform .35s ease; }
.svc:hover .svc-icon, .why-item:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translateX(-3px); }
.chip { transition: box-shadow .25s; }

/* Process line draws itself from the first step */
.js .steps.draw::before { transform: scaleX(0); transform-origin: right; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .2s; }
.js .steps.draw.in::before { transform: scaleX(1); }

@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(34, 199, 238, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(34, 199, 238, 0); } }

/* =========================================================
   Developer touches: code card, caret, code symbols, tech strip
   ========================================================= */

/* Section labels get a small </> tag */
.label::before {
  content: "</>"; display: inline-block; direction: ltr; unicode-bidi: isolate;
  font-family: var(--mono); font-weight: 600; font-size: .85em; margin-inline-end: 8px; opacity: .75;
}
.label-light::before { opacity: .9; }

/* Blinking caret after the hero headline */
.caret {
  display: inline-block; width: .08em; height: .95em; margin-inline-start: .12em; vertical-align: -.08em;
  border-radius: 2px; background: var(--cyan); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Faint code symbols drifting behind the hero */
.code-deco { position: absolute; inset: 0; overflow: hidden; }
.code-deco span {
  position: absolute; font-family: var(--mono); font-weight: 600; color: var(--blue); opacity: .07;
  font-size: clamp(28px, 4vw, 56px); animation: float 10s ease-in-out infinite; direction: ltr; unicode-bidi: isolate;
}
.code-deco span:nth-child(1) { top: 14%; left: 6%; }
.code-deco span:nth-child(2) { top: 70%; left: 44%; animation-delay: -2s; }
.code-deco span:nth-child(3) { top: 10%; left: 52%; animation-delay: -4s; font-size: clamp(22px, 3vw, 40px); }
.code-deco span:nth-child(4) { top: 78%; right: 4%; animation-delay: -6s; font-size: clamp(22px, 3vw, 40px); }
.code-deco span:nth-child(5) { top: 40%; right: 46%; animation-delay: -3s; font-size: clamp(20px, 2.6vw, 34px); }
.code-deco span:nth-child(6) { top: 22%; right: 3%; animation-delay: -5s; }

/* Code editor card in the hero */
.code-card {
  position: absolute; right: -4%; bottom: -6%; width: 54%; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: 2.2cqw; overflow: hidden;
  box-shadow: 0 4cqw 8cqw -3cqw rgba(30, 107, 255, .4);
  animation: float 8s ease-in-out infinite -4s;
}
.cc-bar { display: flex; align-items: center; gap: 2cqw; padding: 1.4cqw 2cqw; background: var(--tint-2); border-bottom: 1px solid var(--line); }
.cc-file { font-family: var(--mono); font-size: 1.7cqw; color: var(--muted); }
.code-card pre { margin: 0; padding: 1.8cqw 2.2cqw 2.2cqw; font-family: var(--mono); font-size: 2.05cqw; line-height: 1.75; color: var(--head); white-space: pre; overflow: hidden; }
.code-card .ln { display: inline-block; width: 2.6cqw; margin-right: 1.4cqw; color: #B8C6D8; text-align: right; user-select: none; }
.code-card .k { color: var(--blue); font-weight: 600; }
.code-card .v { color: #0EA5C9; }
.code-card .f { color: #7C5CFF; }
.code-card .s { color: #0E9F6E; }
.code-card .b { color: #E8590C; }
.code-card .cursor { display: inline-block; width: .55em; height: 1.1em; margin-left: .15em; vertical-align: -.2em; background: var(--cyan); opacity: .8; animation: blink 1.1s steps(1) infinite; }

/* Tech strip */
.stack { margin-top: 28px; display: flex; align-items: center; gap: 20px; }
.stack-title { flex: none; font-size: .9rem; font-weight: 500; color: var(--muted); }
.marquee {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.track span {
  font-family: var(--mono); font-size: .88rem; font-weight: 500; color: var(--head);
  padding: 7px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); white-space: nowrap;
}
.track span::before { content: "#"; color: var(--cyan); margin-right: 6px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* =========================================================
   Social links
   ========================================================= */
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; color: var(--blue); border: 1px solid var(--line);
  transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}
.social a:hover { transform: translateY(-3px); background: var(--blue); color: #fff; border-color: var(--blue); }
.social svg { width: 19px; height: 19px; }
.social-light a { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.social-light a:hover { background: #fff; color: var(--blue); border-color: #fff; }
.follow { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.follow > span { font-size: .95rem; font-weight: 500; opacity: .9; }
.follow-center { justify-content: center; margin-top: 20px; color: var(--muted); }
.footer-brand .social { margin-top: 18px; }

/* =========================================================
   Smart assistant (always on screen)
   ========================================================= */
.assistant { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60; }

.as-launcher {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 16px 30px -10px rgba(30, 107, 255, .7); transition: transform .2s;
}
.as-launcher:hover { transform: scale(1.06); }
.as-launcher svg { width: 28px; height: 28px; grid-area: 1 / 1; transition: transform .3s, opacity .3s; }
.as-launcher .ico-close { opacity: 0; transform: rotate(-90deg); }
.assistant.open .as-launcher .ico-open { opacity: 0; transform: rotate(90deg); }
.assistant.open .as-launcher .ico-close { opacity: 1; transform: none; }
.as-launcher::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: ring 3.2s ease-out infinite;
}
.assistant.open .as-launcher::after { animation: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(34, 199, 238, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(34, 199, 238, 0); } }

.as-teaser {
  position: absolute; bottom: 76px; inset-inline-end: 0; width: max-content; max-width: 260px;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px 18px 18px 6px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--head); text-align: start;
  animation: teaser-in .5s cubic-bezier(.2, .8, .2, 1) both, float 6s ease-in-out infinite .5s;
}
.as-teaser[hidden] { display: none; }
.as-teaser-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); flex: none; }
@keyframes teaser-in { from { opacity: 0; transform: translateY(10px) scale(.95); } }

.as-panel {
  position: absolute; bottom: 78px; inset-inline-end: 0; width: 380px; height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(10, 40, 120, .5);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96); transform-origin: bottom left;
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility .3s;
}
.assistant.open .as-panel { opacity: 1; visibility: visible; transform: none; }

.as-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.as-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 22px 22px;
}
.as-avatar { position: relative; width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.as-avatar svg { width: 30px; height: 30px; }
.as-online { position: absolute; bottom: -2px; inset-inline-start: -2px; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.as-title { position: relative; flex: 1; display: grid; line-height: 1.4; }
.as-title b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 1.02rem; }
.as-title b svg { width: 16px; height: 16px; }
.as-title small { font-size: .78rem; opacity: .92; font-weight: 300; }
.as-min { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.as-min:hover { background: rgba(255,255,255,.32); }
.as-min svg { width: 20px; height: 20px; }

.as-body {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--tint-2) radial-gradient(rgba(30, 107, 255, .07) 1px, transparent 1px) 0 0 / 18px 18px;
  scroll-behavior: smooth;
}
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.85; animation: msg-in .3s ease both; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--head); border-start-start-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-start-end-radius: 6px; }
.msg b { font-weight: 600; }
.msg ul { margin: 6px 0 0; padding-inline-start: 18px; }
.msg li::marker { color: var(--cyan); }
.msg .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg .acts a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 500;
  background: var(--blue); color: #fff; transition: background-color .2s;
}
.msg .acts a.alt { background: var(--tint); color: var(--blue); }
.msg .acts a:hover { background: var(--blue-hover); color: #fff; }
.msg .acts svg { width: 15px; height: 15px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }

.as-chips { display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; background: #fff; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chips button {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid #CFE0FF; background: #fff; color: var(--blue);
  font-size: .85rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s;
}
.as-chips button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.as-input { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff; }
.as-input input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint-2); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.as-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 107, 255, .12); background: #fff; }
.as-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.as-input button svg { width: 20px; height: 20px; transform: scaleX(-1); }

@media (max-width: 640px) {
  .assistant { inset-inline-end: 14px; bottom: 14px; }
  .as-panel { position: fixed; inset: auto 0 0 0; width: auto; height: min(86dvh, 640px); border-radius: 24px 24px 0 0; transform-origin: bottom center; }
  .assistant.open .as-launcher, .assistant.open .as-teaser { display: none; }
  .as-teaser { max-width: calc(100vw - 110px); }
}

/* =========================================================
   AI section
   ========================================================= */
.ai-section { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--tint-2) 100%); }
.ai-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 90% 35%, rgba(34, 199, 238, .10), transparent 70%),
              radial-gradient(600px 400px at 5% 75%, rgba(30, 107, 255, .08), transparent 70%);
}
.ai-section .container { position: relative; }
.ai-more { margin-top: 18px; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 600; font-size: .95rem; transition: transform .2s; }
.ai-more:hover { transform: translateY(-2px); }
.ai-more svg { width: 18px; height: 18px; }
.btn-light { background: #fff; color: var(--blue); box-shadow: 0 12px 26px -12px rgba(10, 40, 120, .5); }
.btn-light:hover { transform: translateY(-2px); }

/* Intro panel */
.ai-intro {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--grad); color: #fff; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(30, 107, 255, .6);
}
.ai-intro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%);
}
.ai-intro::after {
  content: ""; position: absolute; width: 420px; height: 420px; inset-inline-start: -120px; bottom: -160px;
  background: url("assets/icon-white.svg") center / contain no-repeat; opacity: .07; pointer-events: none;
}
.ai-intro-copy { position: relative; z-index: 1; }
.ai-intro .h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.ai-grad { color: #fff; text-shadow: 0 0 30px rgba(255, 255, 255, .35); }
.ai-intro-copy > p { margin-top: 16px; font-weight: 300; font-size: 1.05rem; line-height: 2.05; color: rgba(255, 255, 255, .95); max-width: 56ch; }
.ai-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-points li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-weight: 500; font-size: .95rem; }
.ai-points svg { width: 20px; height: 20px; flex: none; }

/* Chat demo */
.ai-demo { position: relative; z-index: 1; display: grid; place-items: center; }
.demo-win {
  width: min(100%, 420px); background: #fff; border-radius: 24px; overflow: hidden; color: var(--body);
  box-shadow: 0 40px 70px -30px rgba(10, 30, 90, .55); animation: float 9s ease-in-out infinite;
}
.demo-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.demo-head > span:nth-child(2) { flex: 1; display: grid; line-height: 1.4; }
.demo-head b { color: var(--head); font-weight: 600; font-size: .98rem; }
.demo-head small { color: var(--muted); font-size: .78rem; font-weight: 300; }
.demo-head .as-avatar { background: var(--tint); }
.demo-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--blue); font-family: var(--mono); font-size: .78rem; font-weight: 600; }
.demo-badge svg { width: 14px; height: 14px; }
.demo-body {
  min-height: 330px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--tint-2) radial-gradient(rgba(30, 107, 255, .07) 1px, transparent 1px) 0 0 / 18px 18px;
}
.demo-body .msg { max-width: 88%; }
.js .demo-body.playing .msg { display: none; }
.js .demo-body.playing .msg.show { display: block; }
.demo-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.demo-input span { flex: 1; padding: 10px 16px; border-radius: 999px; background: var(--tint-2); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.demo-input i { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.demo-input svg { width: 18px; height: 18px; transform: scaleX(-1); }
.demo-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: #fff; color: var(--head); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.demo-chip svg { width: 18px; height: 18px; color: var(--blue); }
.demo-chip.dc1 { top: 4%; inset-inline-end: -4%; }
.demo-chip.dc2 { bottom: 10%; inset-inline-start: -6%; animation-delay: -3s; }

/* Blocks */
.ai-block { margin-top: clamp(56px, 8vw, 96px); }
.ai-block .section-head { margin-bottom: clamp(28px, 4vw, 40px); }
.ai-h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* Solutions grid */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ai-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D2E3FF; }
.ai-card:hover::before { transform: scaleX(1); }
.ai-ico { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; transition: background-color .25s, color .25s; }
.ai-ico svg { width: 26px; height: 26px; }
.ai-card:hover .ai-ico { background: var(--grad); color: #fff; }
.ai-card h3 { font-size: 1.15rem; }
.ai-card p { font-size: .95rem; font-weight: 300; line-height: 1.95; flex: 1; }
.ai-tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-tags li { padding: 4px 10px; border-radius: 8px; background: var(--tint-2); border: 1px solid var(--line); font-size: .8rem; color: var(--head); }

/* Use cases */
.ai-uses { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 28px; }
.ai-uses-copy p { margin-top: 10px; font-weight: 300; }
.ai-tabs { display: grid; gap: 8px; margin-top: 22px; }
.ai-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.ai-tabs span {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); font-weight: 500; color: var(--head); transition: background-color .2s, color .2s, border-color .2s;
}
.ai-tabs span svg { width: 22px; height: 22px; color: var(--blue); }
.ai-tabs span:hover { border-color: #CFE0FF; background: var(--tint-2); }
.ai-tabs input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.ai-tabs input:checked + span svg { color: #fff; }
.ai-tabs input:focus-visible + span { outline: 3px solid rgba(30, 107, 255, .45); }
.ai-panels { min-height: 100%; display: grid; align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: 22px; background: var(--tint-2); }
.ai-panel { animation: msg-in .4s ease both; }
.ai-panel .checks { gap: 14px; }
.ai-panel .checks li { font-size: 1.02rem; padding-block: 4px; }

/* Steps */
.ai-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.ai-steps li { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ai-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; inset-inline-end: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.ai-step-no { font-family: var(--mono); font-weight: 600; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-steps h4 { margin: 10px 0 6px; font-size: 1.1rem; color: var(--head); font-weight: 600; }
.ai-steps p { font-size: .93rem; font-weight: 300; line-height: 1.9; }

/* Principles */
.ai-principles { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-pr { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--tint); border: 1px solid #D5F0FA; }
.ai-pr h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--head); font-weight: 600; }
.ai-pr p { font-size: .92rem; font-weight: 300; line-height: 1.85; }
.ai-pr .ai-ico { background: #fff; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #CFE0FF; box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 600; color: var(--head); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; flex: none; color: var(--blue); transition: transform .3s; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; font-weight: 300; line-height: 2; }

@media (max-width: 1024px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-steps { grid-template-columns: repeat(2, 1fr); }
  .ai-steps li::after { display: none; }
  .ai-principles { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .ai-intro, .ai-uses { grid-template-columns: 1fr; }
  .ai-demo { padding-top: 26px; }
  .demo-chip.dc1 { top: 0; inset-inline-end: 0; }
  .demo-chip.dc2 { inset-inline-start: 0; }
}
@media (max-width: 640px) {
  .ai-grid, .ai-steps, .ai-points { grid-template-columns: 1fr; }
  .ai-intro { border-radius: 24px; }
  .ai-intro-copy .btn { width: 100%; }
  .demo-body { min-height: 300px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1140px) {
  .menu-btn { display: inline-flex; }
  .header-cta { margin-inline-start: auto; }
  .menu-btn { margin-inline-start: 0; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(30, 107, 255, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; }
  .nav-cta { display: inline-flex; margin-top: 8px; }
}

@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc-featured { grid-row: auto; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why-item, .why-item:nth-child(4), .why-item:nth-child(5) { grid-column: auto; }
  .why-item:nth-child(5) { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .devices { width: min(100%, 520px); }
  .about-grid, .consult, .contact-grid { grid-template-columns: 1fr; }
  .orb { width: min(100%, 360px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-inline-start: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .menu-btn { margin-inline-start: auto; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text b { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { font-size: .8rem; padding: 7px 12px; }
  .chip svg { width: 16px; height: 16px; }
  .services, .why { grid-template-columns: 1fr; }
  .stack { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  .code-card { width: 60%; right: -2%; }
  .svc-featured, .why-item:nth-child(5) { grid-column: auto; }
  .svc-featured .checks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 14px; }
  .steps li { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; gap: 16px; }
  .steps p { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .js .steps.draw::before { transform: none; }
}
