/* ==========================================================
   Axorin Technologies — Brand: Concept 4 "Infinity Arc"
   Primary #2A5AFF (Royal Blue) → #00C8A0 (Teal) arc gradient
   Type: Space Grotesk (300 + 700) for display, Inter for text
   ========================================================== */

:root {
  --blue: #2A5AFF;
  --teal: #00C8A0;
  --blue-soft: #6B9FFF;

  --bg: #F8F9FC;
  --bg-alt: #EEF1F8;
  --surface: #FFFFFF;
  --fg: #0F1117;
  --fg-muted: #5A6072;
  --border: #E2E5EF;
  --accent: var(--blue);
  --arc-a: var(--blue);
  --arc-b: var(--teal);
  --node: var(--blue);
  --header-bg: rgba(248, 249, 252, 0.82);
  --shadow: 0 1px 2px rgba(15, 17, 23, 0.04), 0 8px 24px rgba(15, 17, 23, 0.06);
  --shadow-lg: 0 20px 50px rgba(42, 90, 255, 0.14);

  --grad: linear-gradient(120deg, var(--blue), var(--teal));
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 72px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0D12;
    --bg-alt: #111219;
    --surface: #161820;
    --fg: #F0F2FA;
    --fg-muted: #8A90A8;
    --border: #252733;
    --accent: var(--blue-soft);
    --arc-a: var(--blue-soft);
    --node: var(--blue-soft);
    --header-bg: rgba(12, 13, 18, 0.8);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0D12;
  --bg-alt: #111219;
  --surface: #161820;
  --fg: #F0F2FA;
  --fg-muted: #8A90A8;
  --border: #252733;
  --accent: var(--blue-soft);
  --arc-a: var(--blue-soft);
  --node: var(--blue-soft);
  --header-bg: rgba(12, 13, 18, 0.8);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stop-a { stop-color: var(--arc-a); }
.stop-b { stop-color: var(--arc-b); }
.arc-node { fill: var(--node); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(42, 90, 255, .28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(42, 90, 255, .38); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: #fff; color: #0F1117; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(15,17,23,.04); }
.nav-wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 27px; }
.wordmark {
  font-family: var(--font-display); font-weight: 300; font-size: 1.35rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
}
.wordmark strong { font-weight: 700; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-size: .95rem; font-weight: 500; color: var(--fg-muted); position: relative; transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--fg); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

.menu-toggle { display: none; flex-direction: column; gap: 4px; place-items: unset; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 128px) clamp(72px, 10vw, 136px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(42,90,255,.16), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(0,200,160,.14), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-weight: 300; letter-spacing: -0.03em; }
.hero h1 .grad-text { font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg-muted); max-width: 560px; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 100%; }
.hero-mark { width: 88%; height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(42,90,255,.22)); }
.hero-mark .arc { stroke-width: 2.2; }
.hero-orbit {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px dashed var(--border);
  animation: spin 60s linear infinite;
}
.hero-orbit::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 16px var(--teal);
}

/* draw-in animation of the infinity arcs */
.hero-mark .arc { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 2.2s cubic-bezier(.65,0,.35,1) forwards; }
.hero-mark .arc-right { animation-delay: .5s; }
.hero-mark .arc-node { transform-origin: 26px 16px; transform: scale(0); animation: pop .6s 2.2s ease-out forwards, pulse 3s 3s ease-in-out infinite; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-sub { color: var(--fg-muted); font-size: 1.08rem; }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover::before, .card-featured::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(42,90,255,.12), rgba(0,200,160,.12)); color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--fg-muted); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border: 2px solid var(--teal); border-radius: 50%; /* tiny loop motif */
}

/* Approach steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--blue)); opacity: .35;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 700; color: var(--accent); box-shadow: var(--shadow);
}
.step p { color: var(--fg-muted); font-size: .96rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-story > p { color: var(--fg-muted); font-size: 1.05rem; }
.about-story em { font-style: normal; font-weight: 600; color: var(--fg); }
.about-story strong { color: var(--fg); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.mv > div { padding: 22px; border-radius: var(--radius-sm); background: var(--bg-alt); border-left: 3px solid var(--teal); }
.mv h3 { font-size: 1rem; margin-bottom: .4em; }
.mv p { margin: 0; color: var(--fg-muted); font-size: .95rem; }

.why { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.why-title { font-size: 1.35rem; margin-bottom: 1.2em; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 16px; }
.why-list p { margin: 4px 0 0; color: var(--fg-muted); font-size: .95rem; }
.why-dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(0,200,160,.12); }

/* CTA band */
.cta-band { padding-block: clamp(64px, 8vw, 96px); background: linear-gradient(120deg, #1E46E0, #2A5AFF 40%, #00A888); color: #fff; position: relative; overflow: hidden; }
.cta-inner { text-align: center; max-width: 720px; position: relative; }
.cta-mark { width: 84px; height: auto; margin: 0 auto 20px; }
.cta-band p { opacity: .9; font-size: 1.08rem; margin-bottom: 1.8rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-info > p { color: var(--fg-muted); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 500; }
.optional { color: var(--fg-muted); font-weight: 400; }
.req { color: #E5484D; font-weight: 600; margin-left: 2px; }
.form-note { margin: 0 0 18px; font-size: .85rem; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--bg); width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42,90,255,.15); }
.field.invalid input, .field.invalid textarea { border-color: #E5484D; }
.form-status { margin: 14px 0 0; font-size: .94rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #E5484D; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-top: 48px; background: var(--bg); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 32px; }
.footer-sub { margin: 6px 0 0 56px; font-size: .62rem; font-weight: 600; letter-spacing: .3em; color: var(--accent); }
.footer-tag { margin: 14px 0 0; color: var(--fg-muted); font-family: var(--font-display); font-weight: 300; letter-spacing: .04em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { color: var(--fg-muted); font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--fg); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; font-size: .88rem; color: var(--fg-muted); }
.footer-bottom p { margin: 0; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px clamp(16px, 4vw, 32px) 24px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; width: min(320px, 80%); margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .mv, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .footer-nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-mark .arc { stroke-dashoffset: 0; }
  .hero-mark .arc-node { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Privacy / legal page ---------- */
.form-consent { margin: 12px 0 0; font-size: .85rem; color: var(--fg-muted); text-align: center; }
.form-consent a, .footer-bottom a, .legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--fg-muted); margin-right: 8px; transition: color .2s; }
.back-link:hover { color: var(--fg); }

.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.legal-meta { color: var(--fg-muted); font-size: .92rem; margin-bottom: 2rem; }
.legal-lead { font-size: 1.1rem; }
.legal section { padding-top: 12px; margin-top: 28px; border-top: 1px solid var(--border); }
.legal h2 { font-size: 1.45rem; margin-top: .6em; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.4em; }
.legal p, .legal li { color: var(--fg-muted); }
.legal strong { color: var(--fg); }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal li::marker { color: var(--teal); }
.legal code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); color: var(--fg); }
.legal .nowrap { white-space: nowrap; color: var(--fg); }
.legal-toc { margin: 28px 0 8px; padding: 22px 26px; border-radius: var(--radius); background: var(--bg-alt); border-left: 3px solid var(--teal); }
.legal-toc p { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.legal-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: .35em; break-inside: avoid; }
.legal-toc a { color: var(--fg); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-card { margin: 16px 0; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.legal-card p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .legal-toc ol { columns: 1; }
  .back-link span, .back-link { font-size: .9rem; }
}
