/* ============================================================
   ATZ ENTERPRISES — Design System
   Palette: white / black / purple
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink: #0c0a12;
  --ink-2: #171321;
  --ink-soft: #4d4661;
  --ink-faint: #7a7390;

  --purple-900: #4c1d95;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-300: #c4b5fd;
  --purple-100: #ede9fe;
  --lav: #f6f3fd;

  --line: rgba(12, 10, 18, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);

  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-card: 0 24px 48px -24px rgba(76, 29, 149, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--purple-600); color: #fff; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.h-xl { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h-lg { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h-md { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.grad-text {
  background: linear-gradient(100deg, var(--purple-500), var(--purple-300) 60%, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(76px, 11vw, 132px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: 18px; }

.section--dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(109, 40, 217, 0.22), transparent 60%),
    var(--ink);
  color: #f4f1fb;
}
.section--dark .lead { color: #b9b2cc; }
.section--dark .eyebrow { color: var(--purple-300); }

.section--lav { background: var(--lav); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Grain overlay for dark surfaces ---------- */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  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.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 300;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500), var(--purple-300));
  transition: width 80ms linear;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background 0.4s var(--ease-out), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(12, 10, 18, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.7);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s;
  padding-block: 6px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--purple-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 28px;
    background: rgba(12, 10, 18, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s var(--ease-out);
  }
  body.nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 12px 4px; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s, background-color 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn .arrow { transition: transform 0.3s var(--ease-out); display: inline-flex; }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(124, 58, 237, 0.65);
}
.btn-primary:hover { box-shadow: 0 18px 42px -12px rgba(124, 58, 237, 0.8); }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-130%);
}
.btn-primary:hover::before { transform: translateX(130%); transition: transform 0.75s ease; }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-out);
  z-index: -1;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover::after { transform: scaleY(1); }

.btn-ghost--ink {
  border-color: rgba(12, 10, 18, 0.25);
  color: var(--ink);
}
.btn-ghost--ink::after { background: var(--purple-100); }
.btn-ghost--ink:hover { border-color: var(--purple-600); color: var(--purple-700); }

.btn-sm { padding: 11px 20px; font-size: 0.85rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-700);
}
.link-more .arrow { transition: transform 0.3s var(--ease-out); }
.link-more:hover .arrow { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 56px) 88px;
  background: var(--ink);
  color: #f4f1fb;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.9;
}

.aurora { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 640px; height: 640px;
  left: -12%; top: -22%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.75), transparent 65%);
}
.aurora span:nth-child(2) {
  width: 560px; height: 560px;
  right: -14%; top: 4%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 65%);
  animation-delay: -7s;
  animation-duration: 26s;
}
.aurora span:nth-child(3) {
  width: 520px; height: 520px;
  left: 28%; bottom: -34%;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.65), transparent 65%);
  animation-delay: -13s;
  animation-duration: 30s;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(60px, -40px, 0) scale(1.12); }
  100% { transform: translate3d(-50px, 50px, 0) scale(0.95); }
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, rgba(196, 181, 253, 0.22) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(720px 480px at 72% 38%, #000 0%, transparent 74%);
  mask-image: radial-gradient(720px 480px at 72% 38%, #000 0%, transparent 74%);
  animation: dots-pan 60s linear infinite;
}
@keyframes dots-pan { to { background-position: 300px 150px; } }

.hero-inner { max-width: 820px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 10px 2px rgba(139, 92, 246, 0.7);
}

.hero h1 { margin-bottom: 26px; }
.hero .lead { color: #b9b2cc; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.hero-scroll::after {
  content: "";
  width: 1.5px;
  height: 42px;
  background: linear-gradient(to bottom, var(--purple-500), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  background: linear-gradient(90deg, #150f22, #0c0a12 55%, #150f22);
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  padding-block: 20px;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}
.marquee-group span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  color: var(--purple-500);
  font-size: 0.7rem;
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- About / stats ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-copy p + p { margin-top: 18px; }
.about-copy p { color: var(--ink-soft); }
.about-copy p strong { color: var(--ink); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.stat:hover {
  transform: translateY(-5px);
  border-color: var(--purple-300);
  box-shadow: var(--shadow-card);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--purple-700), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}
.stat-label {
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-faint);
}

/* ---------- Brand cards ---------- */
.brand-cards { display: grid; gap: 28px; }

.brand-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
  gap: 36px;
  align-items: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -30px rgba(20, 10, 40, 0.45); }

.brand-card--dark {
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(109, 40, 217, 0.35), transparent 60%),
    var(--ink-2);
  color: #f4f1fb;
}
.brand-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(196, 181, 253, 0.14) 1px, transparent 1.6px);
  background-size: 26px 26px;
  transition: transform 0.8s var(--ease-out);
}
.brand-card--dark:hover::before { transform: scale(1.06); }

.brand-card--lav {
  background:
    radial-gradient(600px 400px at 90% 90%, rgba(139, 92, 246, 0.18), transparent 60%),
    var(--lav);
  border: 1px solid rgba(109, 40, 217, 0.12);
}

.brand-card .eyebrow { margin-bottom: 14px; }
.brand-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.brand-card p { max-width: 52ch; }
.brand-card--dark p { color: #b9b2cc; }
.brand-card--lav p { color: var(--ink-soft); }

.brand-card .tm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-card--dark .pill { border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.75); }
.brand-card--lav .pill { border: 1px solid rgba(109, 40, 217, 0.3); color: var(--purple-700); }

.brand-card-art {
  display: grid;
  place-items: center;
  min-height: 200px;
}
.brand-mark-lg {
  width: clamp(130px, 16vw, 180px);
  height: auto;
  transition: transform 0.6s var(--ease-out);
}
.brand-card:hover .brand-mark-lg { transform: scale(1.07) rotate(-2deg); }
.brand-card--dark .brand-mark-lg { color: #fff; filter: drop-shadow(0 0 34px rgba(139, 92, 246, 0.45)); }
.brand-card--lav .brand-mark-lg { color: var(--purple-700); filter: drop-shadow(0 18px 30px rgba(109, 40, 217, 0.25)); }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, background 0.45s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.65), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s;
}
.service-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.06); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--purple-300);
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; color: #fff; }
.service-card p { font-size: 0.93rem; color: #a79fbd; }
.service-card .pill {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Trademark table ---------- */
.tm-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: #fff;
}
.tm-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.tm-table th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-faint);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--lav);
  white-space: nowrap;
}
.tm-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
  vertical-align: middle;
}
.tm-table tr:last-child td { border-bottom: none; }
.tm-table tbody tr { transition: background 0.25s; }
.tm-table tbody tr:hover { background: var(--lav); }
.tm-table .tm-name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tm-table .tm-no { font-family: var(--font-mono); font-size: 0.82rem; color: var(--purple-700); }
.tm-class {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--purple-100);
  color: var(--purple-700);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.tm-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  max-width: 70ch;
}
.tm-note a { color: var(--purple-700); font-weight: 600; }
.tm-note a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.contact-info h2 { margin-bottom: 18px; }
.contact-info .lead { margin-bottom: 36px; }

.contact-rows { display: grid; gap: 10px; }
.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background 0.3s;
}
.contact-row:hover { border-color: rgba(139, 92, 246, 0.5); background: rgba(255, 255, 255, 0.05); }
.contact-row .service-icon { width: 42px; height: 42px; margin: 0; flex-shrink: 0; }
.contact-row h4 { font-size: 0.95rem; color: #fff; margin-bottom: 3px; }
.contact-row p, .contact-row a { font-size: 0.9rem; color: #a79fbd; }
.contact-row a:hover { color: var(--purple-300); }

.contact-form {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 18, 0.5);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field select option { background: var(--ink-2); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
.field .error-msg {
  display: none;
  font-size: 0.78rem;
  color: #fca5a5;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f87171; }
.field.invalid .error-msg { display: block; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}
.form-status.ok {
  display: block;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.45);
  color: #ddd3f7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b9b2cc;
  padding: clamp(56px, 8vw, 88px) 0 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: 56px;
}
.footer-about p { font-size: 0.92rem; margin-top: 18px; max-width: 40ch; }
.footer-col h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  font-size: 0.92rem;
  color: #b9b2cc;
  transition: color 0.25s, padding-left 0.25s;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 0 30px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}
.footer-bottom p { max-width: 72ch; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 400;
  max-width: 520px;
  margin-inline: auto;
  background: rgba(18, 14, 28, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  padding: 22px 24px;
  color: #ddd6ee;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(24px);
  opacity: 0;
  visibility: hidden;
  transition: 0.5s var(--ease-out);
}
.cookie-banner.show { transform: none; opacity: 1; visibility: visible; }
.cookie-banner h4 { color: #fff; font-size: 0.98rem; margin-bottom: 6px; }
.cookie-banner p { font-size: 0.84rem; line-height: 1.6; }
.cookie-banner p a { color: var(--purple-300); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 350;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(124, 58, 237, 0.7);
  transform: translateY(80px);
  opacity: 0;
  transition: 0.45s var(--ease-out);
}
.to-top.show { transform: none; opacity: 1; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="left"].in-view, [data-reveal="right"].in-view { transform: none; }
[data-reveal="zoom"] { transform: scale(0.93); }
[data-reveal="zoom"].in-view { transform: scale(1); }

/* ---------- Page hero (brand + legal pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(800px 420px at 78% 0%, rgba(109, 40, 217, 0.3), transparent 62%),
    var(--ink);
  color: #f4f1fb;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 96px)) 0 clamp(56px, 8vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .lead { color: #b9b2cc; }
.page-hero-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(196, 181, 253, 0.16) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(640px 380px at 80% 30%, #000, transparent 75%);
  mask-image: radial-gradient(640px 380px at 80% 30%, #000, transparent 75%);
}
.page-hero .brand-mark-lg { color: #fff; }
.page-hero-flex {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr);
  gap: 40px;
  align-items: center;
}

/* ---------- Feature lists (brand pages) ---------- */
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(135deg, var(--purple-600), var(--purple-900));
}

.category-card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-300);
  box-shadow: var(--shadow-card);
}
.category-card .service-icon {
  background: var(--purple-100);
  color: var(--purple-700);
}
.category-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.category-card p { font-size: 0.92rem; color: var(--ink-soft); }
.category-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.category-card .tags span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--purple-700);
  border: 1px solid rgba(109, 40, 217, 0.15);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(560px 300px at 50% 120%, rgba(139, 92, 246, 0.45), transparent 70%),
    linear-gradient(135deg, #17102a, var(--ink));
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(196, 181, 253, 0.15) 1px, transparent 1.6px);
  background-size: 26px 26px;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: #b9b2cc; max-width: 56ch; margin: 0 auto 32px; }

/* ---------- Legal pages ---------- */
.legal-body {
  max-width: 800px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 80px);
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-300);
}
.legal-body h2 {
  font-size: 1.45rem;
  margin: 2.4em 0 0.7em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-body h3 { font-size: 1.08rem; margin: 1.8em 0 0.5em; }
.legal-body p, .legal-body li { color: #423c55; line-height: 1.8; }
.legal-body p + p { margin-top: 0.9em; }
.legal-body ul, .legal-body ol { margin: 0.9em 0 0.9em 1.1em; display: grid; gap: 0.55em; }
.legal-body ul li { list-style: disc; }
.legal-body ol li { list-style: decimal; }
.legal-body a { color: var(--purple-700); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--ink); }

.notice-box {
  margin: 1.6em 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--lav);
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-left: 4px solid var(--purple-600);
}
.notice-box p { color: var(--ink-soft); font-size: 0.95rem; }
.notice-box p strong { color: var(--purple-900); }

.legal-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.legal-index a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.83rem;
  transition: 0.3s;
}
.legal-index a:hover, .legal-index a.active {
  border-color: var(--purple-500);
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
  .brand-card { grid-template-columns: 1fr; }
  .brand-card-art { order: -1; min-height: 150px; }
  .page-hero-flex { grid-template-columns: 1fr; }
  .page-hero-flex .brand-mark-lg { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-scroll { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}
