/* ============================================================
   OGStudio — design system
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #08080b;
  --bg-2:      #0c0c11;
  --bg-3:      #101017;
  --surface:   #13131b;
  --surface-2: #181822;
  --line:      #24242f;
  --line-2:    #2f2f3d;

  /* text */
  --text:      #edeef3;
  --text-2:    #a6a7b6;
  --text-3:    #75768a;

  /* accents */
  --violet:    #7c5cff;
  --teal:      #34e0d0;
  --amber:     #ffb648;
  --pink:      #ff5c8a;
  --blue:      #4d9fff;
  --lime:      #9ee362;

  --accent:    var(--violet);   /* per-section override */

  --radius:    16px;
  --radius-sm: 10px;
  --wrap:      1180px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.026em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.012em; }
h4 { font-size: 1rem; }
p  { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 3rem); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--violet); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem clamp(1.5rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .03em; }
.brand-dim { color: var(--text-3); font-weight: 500; }
.brand-mark {
  width: 19px; height: 19px; border-radius: 6px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  box-shadow: 0 0 18px color-mix(in srgb, var(--violet) 55%, transparent);
}

.nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.7rem); font-size: .93rem; }
.nav-menu > a { color: var(--text-2); transition: color .18s var(--ease); }
.nav-menu > a:hover { color: var(--text); }
.nav-menu > a[aria-current="page"] { color: var(--text); }
.nav-menu > a:not(.nav-cta)[aria-current="page"] { position: relative; }
.nav-menu > a:not(.nav-cta)[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal)); border-radius: 2px;
}

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line-2);
  padding: .5rem 1rem; border-radius: 999px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.nav-cta:hover { border-color: var(--violet); background: color-mix(in srgb, var(--violet) 16%, transparent); }
.nav-cta[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 38px;
  background: none; border: 1px solid var(--line-2); border-radius: 9px;
  cursor: pointer; padding: 0;
  place-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .22s var(--ease), opacity .18s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed; inset: 61px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.5rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100vh - 61px); overflow-y: auto;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-menu > a:not(.nav-cta)[aria-current="page"]::after { display: none; }
  .nav-cta { margin-top: 1.1rem; text-align: center; border-color: var(--violet); }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 500; font-size: .96rem; font-family: inherit;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #9a7dff);
  color: #fff;
  box-shadow: 0 6px 26px -8px color-mix(in srgb, var(--violet) 80%, transparent);
}
.btn-primary:hover { box-shadow: 0 12px 34px -8px color-mix(in srgb, var(--violet) 90%, transparent); }

.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, transparent); }

.btn-lg { padding: 1.02rem 2.1rem; font-size: 1.03rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Type helpers
   ============================================================ */

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
}

.lede { color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 58ch; }
.grad {
  background: linear-gradient(105deg, var(--violet) 0%, var(--pink) 45%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section { padding: clamp(4rem, 8.5vw, 7rem) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 3.2rem; }
.section-head h2 { margin-bottom: .9rem; }
.section-head p { color: var(--text-2); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 800px);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(85% 65% at 74% 28%, color-mix(in srgb, var(--violet) 20%, transparent) 0%, transparent 62%),
    radial-gradient(65% 55% at 10% 80%, color-mix(in srgb, var(--teal) 11%, transparent) 0%, transparent 60%),
    radial-gradient(50% 45% at 45% 8%, color-mix(in srgb, var(--pink) 8%, transparent) 0%, transparent 65%),
    var(--bg);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(var(--wrap), 100% - 3rem); margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  max-width: 940px;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; }
.hero-note { margin-top: 1.6rem; color: var(--text-3); font-size: .88rem; }

.page-head {
  padding: clamp(3.4rem, 7vw, 5.5rem) 0 0;
  position: relative;
}
.page-head h1 { margin-bottom: 1.3rem; }

/* ============================================================
   Breadcrumbs
   ============================================================ */

.crumbs { display: flex; gap: .5rem; font-size: .84rem; color: var(--text-3); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ============================================================
   Platform strip
   ============================================================ */

.strip { background: var(--bg-2); border-block: 1px solid var(--line); }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2.2rem; padding: 1.5rem 0; }
.strip-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.strip ul { display: flex; flex-wrap: wrap; gap: .7rem 2rem; font-size: .97rem; font-weight: 500; }
.strip li { display: flex; align-items: center; gap: .55rem; }
.strip li::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .9;
}
.strip li:nth-child(1) { --accent: var(--blue); }
.strip li:nth-child(2) { --accent: var(--teal); }
.strip li:nth-child(3) { --accent: var(--pink); }
.strip li:nth-child(4) { --accent: var(--amber); }
.strip li:nth-child(5) { --accent: var(--lime); }

/* ============================================================
   Cards
   ============================================================ */

.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.8rem;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
  opacity: .8;
}
.card::after {
  content: ""; position: absolute; width: 180px; height: 180px; top: -90px; right: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  transform: translateY(-4px);
  background: var(--surface-2);
}
.card:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: .65rem; }
.card > p { color: var(--text-2); font-size: .95rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.tags li {
  font-size: .75rem; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .25rem .72rem;
}

/* accent rotation */
.a-violet { --accent: var(--violet); }
.a-teal   { --accent: var(--teal); }
.a-amber  { --accent: var(--amber); }
.a-pink   { --accent: var(--pink); }
.a-blue   { --accent: var(--blue); }
.a-lime   { --accent: var(--lime); }

/* ============================================================
   Service detail rows
   ============================================================ */

.svc {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: start;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.svc:first-of-type { border-top: 0; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; gap: 1.6rem; } }
.svc h2 { margin-bottom: 1rem; }
.svc-body > p { color: var(--text-2); }
.svc-num {
  font-size: .78rem; letter-spacing: .16em; color: var(--accent);
  font-weight: 600; display: block; margin-bottom: .9rem;
}
.svc-list { margin-top: 1.6rem; display: grid; gap: .75rem; }
.svc-list li { display: flex; gap: .7rem; font-size: .94rem; color: var(--text-2); }
.svc-list li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: .6rem;
  border-radius: 50%; background: var(--accent);
}
.svc-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem;
  position: relative; overflow: hidden;
}
.svc-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.svc-panel h3 { font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem; }
.svc-panel dl { display: grid; gap: .9rem; margin: 0; }
.svc-panel dt { font-size: .86rem; color: var(--text-3); }
.svc-panel dd { margin: 0 0 .4rem; font-size: .96rem; color: var(--text); font-weight: 500; }

/* ============================================================
   Steps / process
   ============================================================ */

.steps { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }
.step { border-top: 2px solid var(--line); padding-top: 1.4rem; position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 42px; height: 2px;
  background: var(--accent);
}
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent); font-size: .83rem; font-weight: 700; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--text-2); font-size: .92rem; }

/* ============================================================
   Stats
   ============================================================ */

.stats { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.stat-num {
  font-size: 2.3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #fff));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}
.stat p { color: var(--text-2); font-size: .9rem; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; padding: 1.15rem 1.4rem;
  font-weight: 500; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--violet); font-size: 1.35rem; line-height: 1;
  transition: transform .2s var(--ease); flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.4rem 1.3rem; color: var(--text-2); font-size: .95rem; }

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .87rem; color: var(--text-2); margin-bottom: .45rem; font-weight: 500; }
.field .req { color: var(--pink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: .95rem;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet);
  background: color-mix(in srgb, var(--violet) 7%, var(--bg-3));
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-error { color: var(--pink); font-size: .82rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--pink); }
.field.invalid .field-error { display: block; }
.form-note { color: var(--text-3); font-size: .83rem; margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: .92rem; }

.contact-aside { display: grid; gap: 1.15rem; }
.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  position: relative; overflow: hidden;
}
.info-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.info-card h3 { font-size: 1.02rem; margin-bottom: .7rem; }
.info-card p, .info-card li { color: var(--text-2); font-size: .93rem; }
.info-card ul { display: grid; gap: .5rem; margin-top: .8rem; }
.info-card li { display: flex; gap: .6rem; }
.info-card li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62rem; border-radius: 50%; background: var(--accent); }
.info-mail {
  display: inline-block; margin-top: .9rem; font-weight: 600; font-size: 1.02rem;
  color: var(--teal); word-break: break-all;
}
.info-mail:hover { text-decoration: underline; }

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 140% at 50% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--text-2); max-width: 54ch; margin: 0 auto 2.2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ============================================================
   Prose (privacy etc.)
   ============================================================ */

.prose h2 { font-size: 1.4rem; margin: 2.6rem 0 .9rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin-bottom: 1rem; }
.prose ul { display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.prose ul li { display: flex; gap: .7rem; }
.prose ul li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62rem; border-radius: 50%; background: var(--violet); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose-meta { color: var(--text-3); font-size: .88rem; }

/* ============================================================
   404
   ============================================================ */

.err { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.err-code {
  font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  background: linear-gradient(135deg, var(--violet), var(--pink) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

/* ============================================================
   Footer
   ============================================================ */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-top {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 2.8rem; border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-2); font-size: .93rem; margin: 1.1rem 0 1.2rem; max-width: 42ch; }
.footer-mail { color: var(--teal); font-weight: 500; font-size: .95rem; word-break: break-all; }
.footer-mail:hover { text-decoration: underline; }

.footer-col { display: flex; flex-direction: column; gap: .62rem; }
.footer-col h2 {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin-bottom: .5rem;
}
.footer-col a { color: var(--text-2); font-size: .92rem; transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.8rem; color: var(--text-3); font-size: .86rem;
}
.footer-built { color: var(--text-3); }
