/* ==========================================================================
   Qorvex — main stylesheet (light theme, brand colours from the logo)
   ========================================================================== */

:root {
  --bg: #f6f5f0;            /* warm cream — logo background */
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1efe8;
  --ink: #111318;           /* logo rings */
  --ink-2: #1c1f26;
  --text: #111318;
  --muted: #5b616d;
  --border: #e6e3da;
  --border-strong: #d6d2c6;
  --brand: #2ec58f;         /* logo green */
  --brand-dark: #0f9465;    /* green for text on light backgrounds */
  --brand-soft: #e5f6ee;
  --gradient: linear-gradient(135deg, #2ec58f, #13a874);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 24, .04), 0 4px 12px rgba(17, 19, 24, .04);
  --shadow: 0 2px 6px rgba(17, 19, 24, .04), 0 16px 40px rgba(17, 19, 24, .08);
  --shadow-lg: 0 4px 10px rgba(17, 19, 24, .05), 0 30px 60px rgba(17, 19, 24, .12);
  --header-h: 76px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.accent-text {
  color: var(--brand-dark);
  background: linear-gradient(transparent 68%, rgba(46, 197, 143, .22) 68%, rgba(46, 197, 143, .22) 92%, transparent 92%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }
.section__head .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 197, 143, .2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(46, 197, 143, 0); } }

.link { color: var(--brand-dark); font-weight: 600; border-bottom: 1px solid currentColor; }

.checklist { display: grid; gap: 12px; margin: 8px 0 28px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); font-size: .97rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9465' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn__arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(17, 19, 24, .18); }
.btn--primary:hover { background: #000; box-shadow: 0 14px 30px rgba(17, 19, 24, .24); }
.btn--primary .btn__arrow { color: var(--brand); }
.btn--brand { background: var(--brand); color: var(--ink); box-shadow: 0 10px 24px rgba(46, 197, 143, .3); }
.btn--brand:hover { background: #3fd39d; }
.btn--outline { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(17, 19, 24, .05);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 38px; height: 38px; color: var(--ink); }
.logo__text { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; letter-spacing: .2em; color: var(--ink); }
.logo__o { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: .94rem;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: rgba(17, 19, 24, .05); }
.nav__link.is-active { color: var(--ink); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}
.hero__pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(17, 19, 24, .13) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  right: -180px; top: -120px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(46, 197, 143, .22), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9465' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.hero__visual { position: relative; height: 540px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
}
.float-card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-dark); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink); line-height: 1.2; }
.float-card small { display: block; font-size: .78rem; color: var(--muted); }
.float-card--a { left: 0; bottom: 70px; }
.float-card--b { right: 0; top: 40px; animation-delay: -3s; }
.float-card--c { right: 16px; bottom: 30px; animation-delay: -1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Services strip --------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center;
  font: 500 1.15rem/1 var(--font-head);
  color: #fff;
  white-space: nowrap;
  padding: 0 28px;
}
.marquee__track span::after {
  content: ""; width: 9px; height: 9px; margin-left: 56px;
  border-radius: 50%; background: var(--brand);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: rgba(255, 255, 255, .78); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 60px; }
.section__title { font-size: clamp(2rem, 3.6vw, 2.85rem); letter-spacing: -.025em; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover { border-color: rgba(46, 197, 143, .55); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.service-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  transition: background .3s ease;
}
.service-card__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--brand-dark); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s ease;
}
.service-card:hover .service-card__icon { background: var(--ink); }
.service-card:hover .service-card__icon svg { stroke: var(--brand); }
.service-card__num { font: 600 .9rem/1 var(--font-head); color: var(--border-strong); letter-spacing: .05em; }
.service-card h3 { font-size: 1.28rem; }
.service-card p { color: var(--muted); font-size: .96rem; }
.service-card__list { margin: 6px 0 22px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.service-card__list li { font-size: .92rem; color: var(--text); padding-left: 22px; position: relative; }
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 2px; background: var(--brand); border-radius: 2px;
}
.service-card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem;
  color: var(--ink);
}
.service-card__link span { color: var(--brand-dark); transition: transform .2s ease; }
.service-card__link:hover span { transform: translateX(4px); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  position: relative;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--ink);
}
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature:nth-child(even) { translate: 0 28px; }
.feature.reveal:nth-child(even):not(.is-visible) { translate: 0 58px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: .98rem;
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.industry svg {
  width: 40px; height: 40px; flex-shrink: 0;
  padding: 9px;
  border-radius: 11px;
  background: var(--brand-soft);
  fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.industry:hover { border-color: rgba(46, 197, 143, .55); box-shadow: var(--shadow); transform: translateY(-3px); }

/* Process */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process::before {
  content: "";
  position: absolute; left: 12%; right: 12%; top: 30px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.process__step { position: relative; text-align: center; padding: 0 8px; }
.process__num {
  position: relative;
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 8px var(--bg), var(--shadow);
  font: 700 1.1rem/1 var(--font-head);
  color: var(--ink);
}
.section--alt .process__num { box-shadow: 0 0 0 8px #fff, var(--shadow); }
.process__step h3 { font-size: 1.18rem; }
.process__step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Engagement models */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 1.35rem; margin-bottom: 8px; }
.plan__desc { color: var(--muted); font-size: .95rem; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.plan .checklist { margin-bottom: 30px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .checklist li { color: #fff; }
.plan--featured .plan__desc { color: rgba(255, 255, 255, .65); border-color: rgba(255, 255, 255, .12); }
.plan--featured .checklist li::before { background-color: rgba(46, 197, 143, .2); }
.plan__badge {
  position: absolute; top: -13px; left: 32px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* Tech — 3D rotating ring (items are placed around a cylinder by main.js) */
.tech-ring {
  position: relative;
  height: 260px;
  perspective: 2000px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.tech-ring__track {
  position: absolute;
  left: 50%; top: 50%;
  transform-style: preserve-3d;
  animation: ring-spin 60s linear infinite;
}
.tech-ring:hover .tech-ring__track { animation-play-state: paused; }
.tech-ring__track li {
  position: absolute;
  left: 0; top: 0;
  translate: -50% -50%;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(17, 19, 24, .08);
  font-weight: 600; font-size: .95rem;
  color: var(--ink);
  backface-visibility: hidden;
}
@keyframes ring-spin {
  from { transform: rotateX(-5deg) rotateY(0deg); }
  to { transform: rotateX(-5deg) rotateY(-360deg); }
}

/* FAQ */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease;
}
.faq__item[open] { border-color: rgba(46, 197, 143, .55); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font: 600 1.04rem/1.4 var(--font-head);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font: 500 1.3rem/1 var(--font-body);
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--brand); }
.faq__item p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta { padding: 30px 0 110px; position: relative; z-index: 1; }
.cta__inner {
  width: calc(100% - 48px);
  max-width: 1152px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 60px 56px;
  border-radius: 28px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute;
  right: -120px; top: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(46, 197, 143, .35), transparent 65%);
  pointer-events: none;
}
.cta__inner::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  pointer-events: none;
}
.cta__text, .cta__actions { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; max-width: 560px; }
.cta p { color: rgba(255, 255, 255, .7); font-size: 1.08rem; margin: 0; max-width: 520px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contact__list { display: grid; gap: 16px; margin-top: 32px; }
.contact__list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.contact__list li > span:last-child { display: flex; flex-direction: column; }
.contact__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ink);
}
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact__list a, .contact__list li > span:last-child > span:last-child { font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.contact__list a:hover { color: var(--brand-dark); }

.form {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form__field label { font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input::placeholder, .form textarea::placeholder { color: #9a9ea8; }
.form textarea { resize: vertical; min-height: 130px; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 197, 143, .18);
}
.form .is-invalid { border-color: #dc2626; }
/* Keep browser autofill from turning fields blue */
.form input:-webkit-autofill,
.form input:-webkit-autofill:hover,
.form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-out;
}
.form__note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form__status a { color: inherit; text-decoration: underline; }
.form__status { margin: 10px 0 0; font-size: .92rem; font-weight: 500; min-height: 1.4em; text-align: center; }
.form__status.is-success { color: var(--brand-dark); }
.form__status.is-error { color: #dc2626; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-top: 72px; }
.footer .logo__mark, .footer .logo__text { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { max-width: 320px; margin-top: 18px; font-size: .95rem; }
.footer h4 { font-size: .95rem; margin-bottom: 18px; color: #fff; letter-spacing: .02em; }
.footer ul { display: grid; gap: 11px; }
.footer ul a, .footer ul span { color: rgba(255, 255, 255, .65); font-size: .94rem; transition: color .2s; }
.footer ul a:hover { color: var(--brand); }
.footer__cta { margin-top: 22px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem;
}
.footer__bottom p { margin: 0; }
.to-top:hover { color: var(--brand); }

/* 3D tilt cards — JS sets --rx/--ry from the pointer position */
.tilt {
  --rx: 0deg; --ry: 0deg; --lift: 0px; --gx: 50%; --gy: 50%;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
}
.tilt:hover { --lift: -6px; box-shadow: var(--shadow-lg); }
.tilt::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(46, 197, 143, .07), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }

/* Reveal animation — uses `translate` so it doesn't clash with the tilt `transform` */
.services, .why__grid, .plans, .industries { perspective: 1400px; }
.reveal {
  opacity: 0;
  translate: 0 30px;
  rotate: x 8deg;
  scale: .98;
  transform-origin: 50% 100%;
  transition: opacity .9s ease, translate .9s cubic-bezier(.2,.8,.2,1), rotate .9s cubic-bezier(.2,.8,.2,1), scale .9s ease;
}
.reveal.is-visible { opacity: 1; translate: none; rotate: none; scale: none; }
.feature.reveal.is-visible:nth-child(even) { translate: 0 28px; }
.reveal.tilt { transition: opacity .9s ease, translate .9s cubic-bezier(.2,.8,.2,1), rotate .9s cubic-bezier(.2,.8,.2,1), scale .9s ease, transform .2s ease-out, box-shadow .3s ease, border-color .3s ease; }

/* Opening animation ------------------------------------------------------ */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  pointer-events: none;
}
.js body:not(.is-loaded) { overflow: hidden; }
.preloader__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--bg);
  transition: transform 1.1s cubic-bezier(.77,0,.18,1) .25s;
}
.preloader__panel--top { top: 0; border-bottom: 1px solid var(--border); }
.preloader__panel--bottom { bottom: 0; }
.preloader__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  perspective: 800px;
  transition: opacity .5s ease, transform .7s cubic-bezier(.7,0,.3,1);
}
.preloader__mark {
  width: 110px; height: 110px;
  animation: mark-in 1.4s cubic-bezier(.2,.8,.2,1) both, mark-spin 2.4s cubic-bezier(.6,0,.4,1) .3s infinite;
}
.preloader__mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1s cubic-bezier(.6,0,.3,1) forwards;
}
.preloader__mark path:nth-child(2) { animation-delay: .12s; }
.preloader__mark path:nth-child(3) { animation-delay: .24s; }
.preloader__mark path:nth-child(4) { animation-delay: .36s; }
.preloader__mark path:nth-child(5) { animation-delay: .48s; }
.preloader__mark path:nth-child(6) { animation-delay: .6s; }
.preloader__word {
  display: flex; gap: .45em;
  font: 500 1.6rem/1 var(--font-head);
  color: var(--ink);
  transform-style: preserve-3d;
}
.preloader__word span {
  display: inline-block;
  opacity: 0;
  transform: rotateX(-90deg) translateY(20px);
  transform-origin: 50% 100%;
  animation: letter-in .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.preloader__word span:nth-child(1) { animation-delay: .5s; }
.preloader__word span:nth-child(2) { animation-delay: .58s; }
.preloader__word span:nth-child(3) { animation-delay: .66s; }
.preloader__word span:nth-child(4) { animation-delay: .74s; }
.preloader__word span:nth-child(5) { animation-delay: .82s; }
.preloader__word span:nth-child(6) { animation-delay: .9s; }
.preloader__bar { width: 160px; height: 2px; background: rgba(17, 19, 24, .1); border-radius: 2px; overflow: hidden; }
.preloader__bar i {
  display: block; height: 100%;
  background: var(--brand);
  transform-origin: left;
  animation: bar-fill 1.8s cubic-bezier(.6,0,.3,1) forwards;
}
.is-loaded .preloader__content { opacity: 0; transform: scale(1.4); }
.is-loaded .preloader__panel--top { transform: translateY(-101%); }
.is-loaded .preloader__panel--bottom { transform: translateY(101%); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark-in { from { opacity: 0; transform: rotateY(90deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes mark-spin { 0%, 40% { rotate: 0deg; } 100% { rotate: 360deg; } }
@keyframes letter-in { to { opacity: 1; transform: none; } }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Hero intro — plays once the loader opens */
.js .intro {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 1s ease, translate 1s cubic-bezier(.2,.8,.2,1), scale 1.4s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--d, 0ms) + 500ms);
}
.js .intro--zoom { scale: .6; translate: none; }
.js .is-loaded .intro { opacity: 1; translate: none; scale: none; }

.word { display: inline-block; perspective: 700px; }
.word__inner { display: inline-block; }
.js .word__inner {
  opacity: 0;
  transform: rotateX(-100deg) translateY(.4em);
  transform-origin: 50% 100%;
  transition: opacity .8s ease, transform 1s cubic-bezier(.2,.9,.25,1.2);
  transition-delay: calc(var(--i) * 70ms + 650ms);
}
.js .is-loaded .word__inner { opacity: 1; transform: none; }

/* Page-wide 3D background, scroll progress, cursor glow ------------------ */
.bg3d {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: .7;
  pointer-events: none;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}
.cursor-glow {
  position: fixed; left: 0; top: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 197, 143, .12), transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.cursor-glow.is-active { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
  .js .intro, .js .word__inner { opacity: 1; translate: none; scale: none; transform: none; transition: none; }
  .reveal { rotate: none; scale: none; }
  .tech-ring__track, .marquee__track { animation-duration: 160s; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .float-card, .pill__dot { animation: none; }
  .tilt { transform: none; }
}

.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(17, 19, 24, .08);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__link { padding: 12px 14px; font-size: 1.02rem; border-radius: 10px; }
  .header.menu-open { background: #fff; border-color: var(--border); }
}

@media (max-width: 1024px) {
  .services, .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { order: -1; grid-column: 1 / -1; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before { display: none; }
  .why, .contact, .faq { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; padding: 52px 40px; }
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 44px); }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { height: 440px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 44px; }
  .services, .plans, .why__grid, .form__row, .process { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; gap: 12px; }
  .industry { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; font-size: .9rem; }
  .feature:nth-child(even), .feature.reveal.is-visible:nth-child(even) { translate: none; }
  .feature.reveal:nth-child(even):not(.is-visible) { translate: 0 30px; }
  .form__row { gap: 0; }
  .form { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__visual { height: 360px; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; }
  .float-card__icon { width: 32px; height: 32px; }
  .float-card strong { font-size: .88rem; }
  .float-card small { display: none; }
  .tech-ring { height: 210px; }
  .tech-ring__track li { padding: 9px 16px; font-size: .82rem; }
  .marquee__track span { font-size: 1rem; padding: 0 18px; }
  .marquee__track span::after { margin-left: 36px; }
  .cta { padding-bottom: 76px; }
  .cta__inner { width: calc(100% - 32px); padding: 40px 24px; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .plan { padding: 30px 24px 26px; }
}

/* Legal pages (privacy.html, terms.html) --------------------------------- */
.legal-page { background: var(--bg); }
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal__head { max-width: 760px; margin-bottom: 48px; }
.legal__head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -.03em; margin-bottom: 10px; }
.legal__meta { color: var(--muted); font-size: .92rem; font-weight: 500; }
.legal__summary {
  margin: 20px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.legal__layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.legal__toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.legal__toc p { margin: 0 0 12px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.legal__toc ol { display: grid; gap: 2px; counter-reset: toc; }
.legal__toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.legal__toc a:hover { background: var(--brand-soft); color: var(--ink); }
.legal__body {
  padding: 44px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.legal__body section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border); }
.legal__body h2 { font-size: 1.35rem; margin-bottom: 14px; }
.legal__body h3 { font-size: 1.02rem; margin: 22px 0 10px; }
.legal__body p, .legal__body li { color: #3c414b; font-size: .98rem; }
.legal__body ul { display: grid; gap: 10px; margin: 0 0 1em; }
.legal__body ul li { position: relative; padding-left: 22px; }
.legal__body ul li::before {
  content: ""; position: absolute; left: 2px; top: .65em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.legal__body a { color: var(--brand-dark); font-weight: 600; }
.legal__body a:hover { text-decoration: underline; }
.legal__body strong { color: var(--ink); }
.legal__body section { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__contact { margin-top: 16px !important; }
.legal__contact li { padding: 14px 18px !important; background: var(--bg); border-radius: var(--radius-sm); display: flex; gap: 16px; flex-wrap: wrap; }
.legal__contact li::before { display: none; }
.legal__contact span { min-width: 60px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.legal-footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 26px 0; font-size: .9rem; }
.legal-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.legal-footer p { margin: 0; }
.legal-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-footer a:hover, .legal-footer a[aria-current="page"] { color: var(--brand); }

/* Legal links on the home page */
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--brand); }
.form__note a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; }

@media (max-width: 900px) {
  .legal__layout { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; }
  .legal__toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .legal { padding-top: calc(var(--header-h) + 40px); }
  .legal__body { padding: 28px 20px; }
  .legal__toc ol { grid-template-columns: 1fr; }
  .legal-page .header .btn { padding: 10px 14px; font-size: .85rem; }
}
