/* ============================================================
   Artemius Labs — design system
   Apple-inspired restraint, with our own identity:
   electric-indigo aurora, custom monogram, premium type.
   ============================================================ */

:root {
  /* Surfaces */
  --white: #ffffff;
  --paper: #f5f5f7;        /* Apple's signature light gray */
  --paper-2: #ebebef;
  --ink: #1d1d1f;          /* near-black text */
  --ink-soft: #424245;
  --gray: #6e6e73;         /* secondary text */
  --gray-2: #86868b;
  --line: #d2d2d7;         /* hairline borders */
  --black: #06060a;        /* full-bleed dark panels */

  /* Identity — electric indigo aurora */
  --brand: #5546ff;
  --brand-2: #8b5cf6;
  --brand-3: #5b9dff;
  --brand-ink: #4b3fe6;
  --brand-soft: rgba(85, 70, 255, 0.08);

  /* Type */
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tracking-tight: -0.022em;

  /* Geometry */
  --max: 1080px;
  --max-wide: 1280px;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 30px;
  --shadow-sm: 0 4px 20px -8px rgba(0, 0, 0, 0.12);
  --shadow: 0 30px 60px -28px rgba(20, 18, 60, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: var(--tracking-tight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; transition: color 0.2s var(--ease); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-wide { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography scale ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.07; color: var(--ink); }
.display {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--gray); }

.grad-text {
  background: linear-gradient(105deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand-ink); margin-bottom: 18px;
  text-transform: none;
}
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--gray); line-height: 1.45; font-weight: 400; }
.kicker { font-size: 1.05rem; color: var(--gray); max-width: 620px; }

/* ---------- Buttons (Apple pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.01em;
  padding: 13px 26px; border-radius: 980px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(85, 70, 255, 0.65);
}
.btn-primary:hover { background: var(--brand-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(85, 70, 255, 0.7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-soft { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--paper-2); color: var(--ink); transform: translateY(-2px); }
.btn-on-dark { background: rgba(255,255,255,0.12); color:#fff; border-color: rgba(255,255,255,0.2); backdrop-filter: blur(8px); }
.btn-on-dark:hover { background: rgba(255,255,255,0.2); color:#fff; }

/* Text link with chevron */
.link-chevron { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 1.05rem; }
.link-chevron .chev { transition: transform 0.25s var(--ease); }
.link-chevron:hover .chev { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(85,70,255,0.6);
}
.brand-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--ink-soft); font-weight: 400; font-size: 0.92rem;
  padding: 8px 14px; border-radius: 980px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links .btn { font-size: 0.9rem; padding: 8px 18px; }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(80px, 13vw, 160px) 0 clamp(60px, 9vw, 120px); text-align: center; overflow: hidden; }
.aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 25% 18%, rgba(85, 70, 255, 0.20), transparent 70%),
    radial-gradient(38% 48% at 78% 12%, rgba(139, 92, 246, 0.18), transparent 70%),
    radial-gradient(45% 55% at 55% 30%, rgba(91, 157, 255, 0.14), transparent 72%);
  filter: blur(8px);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero .display { margin: 0 auto 26px; max-width: 16ch; }
.hero .lead { margin: 0 auto 38px; max-width: 600px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Hero visual — abstract orb */
.hero-orb {
  position: relative; z-index: 1;
  width: min(640px, 86vw); aspect-ratio: 16 / 9; margin: 64px auto 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 20% 0%, #2a2350 0%, #0d0b1f 55%, #06060a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid; place-items: center;
}
.hero-orb::before {
  content: ""; position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--brand), var(--brand-2), var(--brand-3), var(--brand));
  filter: blur(30px); opacity: 0.85;
  animation: spin 16s linear infinite;
}
.hero-orb::after {
  content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #0d0b1f 40%, transparent 72%);
}
.hero-orb .orb-label {
  position: relative; z-index: 2; color: rgba(255,255,255,0.92);
  font-weight: 600; font-size: clamp(1rem,2vw,1.3rem); letter-spacing: -0.02em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Generic section ---------- */
.section { padding: clamp(70px, 11vw, 130px) 0; }
.section.tight { padding: clamp(50px, 8vw, 90px) 0; }
.bg-paper { background: var(--paper); }
.bg-dark { background: var(--black); color: #f5f5f7; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #a1a1aa; }
.bg-dark .eyebrow { color: #b9b2ff; }

.section-head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head .kicker { margin: 0 auto; }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 34px;
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.bg-paper .tile { background: var(--white); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tile h3 { margin-bottom: 10px; }
.tile p { font-size: 1rem; }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile.span-6 { grid-column: span 6; }
.tile.tall { min-height: 320px; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-soft), rgba(139,92,246,0.1));
  border: 1px solid rgba(85,70,255,0.16);
}
.tile-icon svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.7; }
.tile.feature {
  grid-column: span 3; min-height: 360px;
  background: radial-gradient(130% 130% at 100% 0%, #1a1640 0%, #0a0820 60%, var(--black) 100%);
  color: #fff; border: none; display: flex; flex-direction: column; justify-content: flex-end;
}
.tile.feature h3, .tile.feature .big { color: #fff; }
.tile.feature p { color: #b8b4d6; }
.tile.feature .big { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.tile.feature .tile-icon { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.tile.feature .tile-icon svg { stroke: #fff; }

/* ---------- Alternating showcase rows ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.showcase + .showcase { margin-top: clamp(70px, 10vw, 130px); }
.showcase.reverse .showcase-media { order: 2; }
.showcase h2 { margin-bottom: 18px; }
.showcase p { font-size: 1.12rem; margin-bottom: 24px; }
.showcase-media {
  border-radius: var(--r-lg); aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.media-a { background: radial-gradient(120% 120% at 0% 0%, #ede9ff, #f7f6ff 60%, #fff); }
.media-b { background: radial-gradient(120% 120% at 100% 0%, #e7f0ff, #f5f9ff 60%, #fff); }
.media-c { background: radial-gradient(120% 120% at 50% 0%, #f1ecff, #faf8ff 60%, #fff); }
.media-glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.media-glyph svg { width: 44%; height: 44%; opacity: 0.9; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .num { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat .label { color: var(--gray); font-size: 0.98rem; margin-top: 8px; }
.bg-dark .stat .label { color: #a1a1aa; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding-top: 24px; border-top: 1px solid var(--line); }
.step .n { font-size: 0.85rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.98rem; }

/* ---------- Pricing / engagement cards ---------- */
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan h3 { margin-bottom: 10px; }
.plan p { font-size: 1rem; }

/* ---------- Big CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 22px; }
.cta-final .lead { margin: 0 auto 36px; max-width: 560px; }

/* ---------- Page head (interior pages) ---------- */
.page-head { position: relative; padding: clamp(80px, 11vw, 140px) 0 clamp(20px, 4vw, 50px); text-align: center; overflow: hidden; }
.page-head .display { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 auto 22px; max-width: 18ch; }
.page-head .lead { margin: 0 auto; max-width: 620px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.info-item { padding: 22px 0; border-top: 1px solid var(--line); }
.info-item:first-child { border-top: none; padding-top: 0; }
.info-item h4 { font-size: 0.82rem; color: var(--gray-2); font-weight: 500; margin-bottom: 6px; }
.info-item p, .info-item a { color: var(--ink); font-size: 1.12rem; font-weight: 500; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
input, textarea, select {
  width: 100%; background: var(--paper); border: 1px solid transparent; border-radius: 13px;
  padding: 14px 16px; color: var(--ink); font-family: inherit; font-size: 1rem; letter-spacing: -0.01em;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--gray-2); }
input:focus, textarea:focus, select:focus { outline: none; background: var(--white); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--gray-2); margin-top: 16px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.05rem; line-height: 1.6; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated { color: var(--gray-2); font-size: 0.95rem; margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 60px 0 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { font-size: 0.95rem; margin-top: 16px; max-width: 290px; }
.footer-col h4 { font-size: 0.82rem; color: var(--gray-2); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--gray-2); font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orb::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.span-3, .tile.span-2, .tile.feature { grid-column: span 1; }
  .tile.span-6 { grid-column: span 2; }
  .showcase, .contact-grid { grid-template-columns: 1fr; }
  .showcase.reverse .showcase-media { order: 0; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 2px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-links .nav-cta { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .bento, .footer-top, .steps, .stats { grid-template-columns: 1fr; }
  .tile.span-6 { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
