/* ============================================
   AIVORA — Design System & Shared Styles
   ============================================ */

:root {
  --ink: #0A0D12;
  --ink-deep: #06080C;
  --ink-card: #11141B;
  --ink-card-hover: #161A23;
  --mist: #EDEFF2;
  --mist-dim: #C8CCD4;
  --slate: #868D9B;
  --accent: #A78BE6;
  --violet: #8A6FD0;
  --indigo: #6C63C7;
  --orchid: #B98AD9;
  --dot: #967EDC;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-strong: rgba(255, 255, 255, 0.12);
  --glow: rgba(138, 111, 208, 0.15);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1120px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--ink-deep);
  color: var(--mist);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--orchid); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }

/* ---- Grain overlay (global) ---- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 44px);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--slate);
  letter-spacing: .01em; transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--mist); }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-cta {
  font-size: 13.5px; font-weight: 600; color: var(--mist) !important;
  padding: 9px 20px; border: 1px solid var(--hair-strong);
  border-radius: 999px; background: rgba(167, 139, 230, 0.08);
  transition: background .25s, border-color .25s;
}
.nav-cta:hover { background: rgba(167, 139, 230, 0.16); border-color: rgba(167, 139, 230, 0.4); }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--mist);
  border-radius: 1px; transition: transform .3s, opacity .3s;
}
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(6, 8, 12, 0.96);
    border-bottom: 1px solid var(--hair);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 16px clamp(20px, 5vw, 44px);
    border-top: 1px solid var(--hair);
    font-size: 15px;
  }
  .nav-cta { margin: 16px clamp(20px, 5vw, 44px); display: inline-block; }
}

/* ============================================
   HERO (Home)
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 40px) 24px 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(138, 111, 208, 0.13), transparent 60%),
    radial-gradient(90% 60% at 50% -12%, rgba(108, 99, 199, 0.13), transparent 60%),
    var(--ink);
}
.aurora {
  position: absolute; left: 50%; top: 44%;
  width: min(1240px, 152vw); height: min(640px, 82vh);
  transform: translate(-50%, -50%);
  filter: blur(66px); opacity: .8; z-index: 0; pointer-events: none;
}
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.band-1 {
  inset: 22% 8% 30% 6%;
  background: conic-gradient(from 205deg at 32% 60%,
    rgba(108, 99, 199, 0) 0deg, rgba(108, 99, 199, .55) 60deg,
    rgba(138, 111, 208, .55) 150deg, rgba(185, 138, 217, .4) 240deg,
    rgba(108, 99, 199, 0) 360deg);
  animation: drift 26s ease-in-out infinite alternate;
}
.band-2 {
  inset: 34% 24% 20% 30%;
  background: radial-gradient(closest-side, rgba(138, 111, 208, .55), transparent 72%);
  animation: drift2 34s ease-in-out infinite alternate;
}
.band-3 {
  inset: 40% 40% 34% 20%;
  background: radial-gradient(closest-side, rgba(126, 134, 232, .42), transparent 70%);
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate3d(-4%, 2%, 0) rotate(0) scale(1); opacity: .78; }
  100% { transform: translate3d(5%, -3%, 0) rotate(8deg) scale(1.08); opacity: .96; }
}
@keyframes drift2 {
  0% { transform: translate3d(6%, -2%, 0) scale(1); opacity: .6; }
  100% { transform: translate3d(-6%, 4%, 0) scale(1.12); opacity: .9; }
}
@keyframes drift3 {
  0% { transform: translate3d(-2%, 4%, 0) scale(1.05); opacity: .82; }
  100% { transform: translate3d(4%, -4%, 0) scale(.95); opacity: .5; }
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-logo {
  width: clamp(260px, 48vw, 420px); max-width: 88vw; height: auto;
  filter: drop-shadow(0 18px 70px rgba(138, 111, 208, .32));
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.025em; max-width: 16ch; color: var(--mist);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--orchid));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px); font-weight: 400; line-height: 1.6;
  color: var(--slate); max-width: 48ch;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---- Page header (inner pages) ---- */
.page-header {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 60px;
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 100%, var(--glow), transparent 70%),
    var(--ink);
  border-bottom: 1px solid var(--hair);
}
.page-header .eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.page-header h1 {
  font-size: clamp(30px, 5vw, 46px); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--mist); margin-bottom: 14px;
}
.page-header p {
  font-size: clamp(15px, 2vw, 18px); color: var(--slate); max-width: 52ch; margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 14.5px; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .3s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--violet); color: #fff; border-color: var(--violet);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--mist); border-color: var(--hair-strong);
}
.btn-ghost:hover { border-color: rgba(167, 139, 230, .5); background: rgba(167, 139, 230, .06); color: var(--mist); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(60px, 10vw, 100px) 0;
  position: relative;
}
.section-alt { background: var(--ink); }
.section-border { border-top: 1px solid var(--hair); }

.eyebrow-sm {
  font-size: 11.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--mist); margin-bottom: 12px;
}
.section-sub {
  font-size: clamp(15px, 1.8vw, 17px); color: var(--slate); max-width: 56ch; line-height: 1.65;
}

/* ---- Service cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--ink-card); border: 1px solid var(--hair);
  border-radius: 14px; padding: 34px 28px;
  transition: border-color .3s, background .3s, transform .3s;
}
.card:hover { border-color: var(--hair-strong); background: var(--ink-card-hover); transform: translateY(-3px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(167, 139, 230, 0.08); border: 1px solid rgba(167, 139, 230, 0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--mist); margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; color: var(--slate); line-height: 1.6; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--accent); margin-top: 16px;
  transition: gap .25s;
}
.card .card-link:hover { gap: 10px; }
.card .card-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

/* ---- Stat row ---- */
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.stat-item { }
.stat-num {
  font-size: clamp(32px, 5vw, 44px); font-weight: 700; color: var(--mist);
  letter-spacing: -0.03em; line-height: 1;
}
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13.5px; font-weight: 500; color: var(--slate); margin-top: 6px; }

/* ---- Two-col layout ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Values grid ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.value-card {
  padding: 28px 24px; border-radius: 12px;
  border: 1px solid var(--hair); background: var(--ink-card);
}
.value-card h3 {
  font-size: 16px; font-weight: 700; color: var(--mist); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.value-card h3 .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 10px 1px rgba(150, 126, 220, .6);
  flex-shrink: 0;
}
.value-card p { font-size: 14px; color: var(--slate); line-height: 1.6; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }

/* ---- Service detail blocks ---- */
.svc-block { padding: clamp(50px, 8vw, 80px) 0; }
.svc-block + .svc-block { border-top: 1px solid var(--hair); }
.svc-block .eyebrow-sm { margin-bottom: 12px; }
.svc-block h2 {
  font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--mist); margin-bottom: 16px;
}
.svc-block .lead {
  font-size: clamp(15px, 1.8vw, 17px); color: var(--slate); max-width: 60ch; line-height: 1.65;
  margin-bottom: 32px;
}
.svc-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.svc-list-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px; border-radius: 10px;
  background: var(--ink-card); border: 1px solid var(--hair);
}
.svc-list-item .check {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(167, 139, 230, 0.1); border: 1px solid rgba(167, 139, 230, 0.2);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.svc-list-item .check svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 2.2; }
.svc-list-item span { font-size: 14.5px; font-weight: 500; color: var(--mist-dim); }
@media (max-width: 620px) { .svc-list { grid-template-columns: 1fr; } }

/* ---- CTA Band ---- */
.cta-band {
  text-align: center; padding: clamp(60px, 10vw, 90px) 24px;
  background:
    radial-gradient(60% 80% at 50% 100%, var(--glow), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--hair);
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--mist); margin-bottom: 12px;
}
.cta-band p { font-size: 16px; color: var(--slate); max-width: 44ch; margin: 0 auto 28px; }

/* ---- Contact layout ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 70px); margin-top: 44px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(167, 139, 230, 0.08); border: 1px solid rgba(167, 139, 230, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.contact-item h3 { font-size: 14px; font-weight: 600; color: var(--mist); margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 14.5px; color: var(--slate); line-height: 1.5; }

/* Contact form */
.contact-form {
  background: var(--ink-card); border: 1px solid var(--hair);
  border-radius: 16px; padding: clamp(28px, 4vw, 40px);
}
.contact-form h3 { font-size: 20px; font-weight: 700; color: var(--mist); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--slate); }
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font); font-size: 14.5px; color: var(--mist);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair-strong);
  border-radius: 8px; padding: 12px 14px;
  transition: border-color .25s, background .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--violet); background: rgba(167, 139, 230, 0.04);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--ink-card); color: var(--mist); }
.form-submit { margin-top: 8px; }
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--hair);
  padding: 48px 0 32px;
  font-size: 13px; color: var(--slate);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--slate); line-height: 1.6; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mist-dim); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 8px; }
.footer-col ul a { font-size: 13.5px; color: var(--slate); transition: color .25s; }
.footer-col ul a:hover { color: var(--mist); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair);
  font-size: 12px; color: var(--slate); flex-wrap: wrap; gap: 12px;
}
.footer-bottom .place { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .place::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 10px 1px rgba(150, 126, 220, .6);
}

@media (max-width: 620px) {
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================
   UTILITIES & MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none !important; }
  html { scroll-behavior: auto; }
}
