:root {
  --navy: #101629;
  --navy-2: #1b2340;
  --violet: #8B6CFF;
  --violet-text: #5a3fd6; /* darker violet for text on light surfaces (AA) */
  --coral: #FF8C78;
  --surface: #F7F8FC;
  --white: #fff;
  --text: #1d2338;
  --muted: #566078;
  --line: #e3e6f0;
  --radius: 20px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgb(16 22 41 / .04), 0 12px 32px -12px rgb(16 22 41 / .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 1rem/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 8px 20px -8px rgb(16 22 41 / .6); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-light:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgb(255 255 255 / .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--navy); letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.site-nav ul a:hover { color: var(--navy); background: var(--surface); }
.site-nav ul a[aria-current="true"] { color: var(--navy); background: var(--surface); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; place-items: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 14px 12px; font-size: 1.05rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 8vw, 104px); background:
  radial-gradient(60% 50% at 50% 100%, rgb(139 108 255 / .18), transparent 70%),
  radial-gradient(40% 40% at 85% 10%, rgb(255 140 120 / .14), transparent 70%),
  var(--white); }
.rings span { position: absolute; left: 50%; top: 46%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.rings span:nth-child(1) { width: 640px; height: 640px; }
.rings span:nth-child(2) { width: 960px; height: 960px; }
.rings span:nth-child(3) { width: 1280px; height: 1280px; opacity: .6; }
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--violet-text); background: rgb(139 108 255 / .1); padding: 8px 16px; border-radius: 999px; }
.hero h1 { margin-top: 22px; max-width: 16ch; font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; color: var(--navy); }
.lead { margin-top: 22px; max-width: 58ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.highlights { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.highlights li { display: flex; align-items: center; gap: 8px; }
.highlights li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.hero-stack { position: relative; width: min(440px, 100%); height: 210px; margin-top: 56px; }
.hero-stack::before { content: ""; position: absolute; inset: -30px -60px; background: radial-gradient(closest-side, rgb(139 108 255 / .28), transparent); z-index: -1; }
.stack-card { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.stack-card strong { display: block; font-size: .95rem; color: var(--navy); line-height: 1.3; }
.stack-card small { color: var(--muted); font-size: .8rem; }
.stack-card .dot { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.dot.violet { background: linear-gradient(135deg, var(--violet), #b9a6ff); }
.dot.coral { background: linear-gradient(135deg, var(--coral), #ffc3b8); }
.dot.navy { background: linear-gradient(135deg, var(--navy), #4a5380); }
.s1 { top: 0; z-index: 3; }
.s2 { top: 62px; left: 16px; right: 16px; z-index: 2; opacity: .92; }
.s3 { top: 124px; left: 32px; right: 32px; z-index: 1; opacity: .8; }

.float-chip { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; animation: bob 7s ease-in-out infinite; }
.float-chip svg { width: 26px; height: 26px; fill: none; stroke: var(--violet-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-b svg, .chip-e svg { stroke: #d9593f; }
.chip-a { left: 16%; top: 12%; } .chip-b { left: 7%; top: 44%; animation-delay: -2s; } .chip-c { left: 20%; top: 72%; animation-delay: -4s; }
.chip-d { right: 16%; top: 12%; animation-delay: -1s; } .chip-e { right: 7%; top: 44%; animation-delay: -3s; } .chip-f { right: 20%; top: 72%; animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 1100px) { .float-chip { display: none; } }
@media (max-width: 700px) { .rings span:nth-child(n+2) { display: none; } .rings span:nth-child(1) { width: 520px; height: 520px; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2, .contact-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; color: var(--navy); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: #b9c0dc; }

.grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.products-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid, .services-grid { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); }
.card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; color: var(--navy); }
.card p { color: var(--muted); font-size: .98rem; margin-top: 10px; }

.service .icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 15px; background: linear-gradient(135deg, rgb(139 108 255 / .16), rgb(255 140 120 / .16)); }
.service .icon svg { width: 26px; height: 26px; fill: none; stroke: var(--violet-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.inline-cta { text-align: center; margin-top: 40px; color: var(--muted); font-size: 1.05rem; }
.inline-cta a { color: var(--violet-text); font-weight: 600; text-underline-offset: 4px; }

/* Products */
.product { padding: 20px 20px 26px; }
.product .visual { position: relative; height: 140px; border-radius: 14px; overflow: hidden; margin-bottom: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent2), #fff 120%); }
.product .visual i { position: absolute; border-radius: 50%; background: var(--accent); opacity: .16; }
.product .visual i:nth-of-type(1) { width: 120px; height: 120px; right: -30px; top: -40px; }
.product .visual i:nth-of-type(2) { width: 80px; height: 80px; left: -20px; bottom: -30px; opacity: .1; }
.product .mono { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: #fff; font-size: 1.7rem; font-weight: 700; box-shadow: 0 10px 24px -10px var(--accent); }
.product .category { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.product h3 { margin-top: 6px; }

/* Process */
.process-section { background: radial-gradient(50% 60% at 80% 0, rgb(139 108 255 / .25), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgb(255 140 120 / .15), transparent 70%), var(--navy); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps li { position: relative; padding-top: 4px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 64px; right: -12px; height: 2px; background: linear-gradient(90deg, var(--violet), rgb(139 108 255 / .15)); }
.steps .num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--coral)); font-weight: 700; color: #101629; }
.steps h3 { margin-top: 20px; font-size: 1.2rem; }
.steps p { margin-top: 8px; color: #b9c0dc; font-size: .95rem; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .steps li { padding: 0 0 36px 72px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps .num { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 0; padding-top: 10px; }
  .steps li:not(:last-child)::after { top: 52px; bottom: 4px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--violet), rgb(139 108 255 / .15)); }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy p { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.contact-copy .cta-row { justify-content: flex-start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); padding: 12px 14px; background: #fff; border: 1px solid #b8bed1; border-radius: 12px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgb(139 108 255 / .5); outline-offset: 0; border-color: var(--violet-text); }
.field [aria-invalid="true"] { border-color: #c0312b; }
.error { margin-top: 6px; color: #b3261e; font-size: .88rem; }
.form-status { padding: 12px 14px; border-radius: 12px; font-size: .95rem; margin: 0; }
.form-status.success { background: #e7f6ee; color: #0f5132; }
.form-status.error { background: #fdecea; color: #8a1c14; }
.form-status.info { background: #fff4e5; color: #7a4a00; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c0dc; padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.25rem; }
.footer-line { margin-top: 8px; max-width: 36ch; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
