/* ── All Teknologies LLC ──────────────────────────────────────────────
   Light, white, modern. One accent colour (violet, matched to the
   Invoicing app) on a white ground, generous whitespace, soft depth.
   No CDN, no build step, no dependencies. */

:root {
  /* Brand */
  --brand: #7514f0;
  --brand-lite: #863bff;
  --brand-soft: #a97bff;
  --wash: #f5f0ff;

  /* Ground */
  --bg: #ffffff;
  --bg-alt: #fafafc;

  /* Ink */
  --ink: #0a0a12;
  --ink-2: #55556a;
  /* --ink-3 is the lightest text on the page; #6f6f85 keeps it soft while
     still clearing WCAG AA (4.9:1 on white, 4.7:1 on --bg-alt). */
  --ink-3: #6f6f85;

  /* Lines */
  --line: #ececf1;
  --line-2: #dfdfe9;

  /* Deep enough to pass AA as 11px uppercase text on its own tint (4.8:1). */
  --mint: #0b7d55;

  /* Depth — layered, never a single heavy drop */
  --sh-sm: 0 1px 2px rgba(16, 12, 40, 0.04), 0 2px 6px rgba(16, 12, 40, 0.04);
  --sh-md: 0 2px 4px rgba(16, 12, 40, 0.04), 0 8px 20px rgba(16, 12, 40, 0.06);
  --sh-lg: 0 4px 10px rgba(16, 12, 40, 0.05), 0 20px 50px rgba(16, 12, 40, 0.09);
  --sh-brand: 0 6px 16px -4px rgba(117, 20, 240, 0.4);

  --shell: 1180px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; font-weight: 640; }
p { margin: 0; }

::selection { background: rgba(134, 59, 255, 0.16); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Ambient mesh: soft pastel washes behind the top of the page ──── */

.aurora {
  position: fixed;
  inset: -20vmax 0 auto;
  height: 130vh;
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.62;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  animation: drift 30s var(--ease) infinite alternate;
}

.aurora span:nth-child(1) {
  width: 54vmax; height: 42vmax; top: 4%; left: -6%;
  background: radial-gradient(circle, rgba(134, 59, 255, 0.3), transparent 68%);
}
.aurora span:nth-child(2) {
  width: 44vmax; height: 38vmax; top: -4%; right: -4%;
  background: radial-gradient(circle, rgba(71, 191, 255, 0.26), transparent 68%);
  animation-duration: 36s; animation-delay: -9s;
}
.aurora span:nth-child(3) {
  width: 46vmax; height: 36vmax; top: 34%; left: 38%;
  background: radial-gradient(circle, rgba(255, 122, 205, 0.16), transparent 70%);
  animation-duration: 42s; animation-delay: -18s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vmax, 4vmax, 0) scale(1.14); }
}

/* ── Layout ───────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 26px;
}

section { padding-block: clamp(76px, 10vw, 132px); position: relative; }

#about { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 17.5px; line-height: 1.65; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 680;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-lite));
}

.lead { color: var(--ink-2); font-size: clamp(16.5px, 1.8vw, 19px); line-height: 1.66; }

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-lite), var(--brand));
  color: #fff;
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px -6px rgba(117, 20, 240, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}

.btn-ghost:hover {
  border-color: #c9c9dd;
  color: var(--ink);
  box-shadow: var(--sh-md);
}

.btn-sm { padding: 9.5px 19px; font-size: 14px; }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--line);
}

.site-header .shell { display: flex; align-items: center; gap: 30px; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 640; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--sh-sm); }
.brand-name { font-size: 16px; letter-spacing: -0.028em; }
.brand-name .light { color: var(--ink-3); font-weight: 460; }

.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }

.site-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1.5px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav .btn { color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(72px, 11vw, 146px) clamp(50px, 7vw, 86px); }

.hero h1 {
  font-size: clamp(42px, 7.2vw, 84px);
  letter-spacing: -0.045em;
  max-width: 14ch;
  background: linear-gradient(165deg, #0a0a12 34%, #2e1f52 72%, #5b34a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead { margin-top: 26px; max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 17px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--sh-sm);
  font-size: 13.5px;
  color: var(--ink-2);
}

.pill strong { color: var(--ink); font-weight: 620; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(15, 157, 107, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(15, 157, 107, 0.16); }
  50%      { box-shadow: 0 0 0 6px rgba(15, 157, 107, 0.05); }
}

/* ── Marquee ──────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 17px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slide 42s linear infinite;
}

.marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline: 15px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 540;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.marquee-track > span > span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ── Featured service ─────────────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
  padding: clamp(28px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--wash), transparent 58%),
    #fff;
  box-shadow: var(--sh-lg);
}

.feature-head { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.feature-head img { width: 44px; height: 42px; }
.feature-head h3 { font-size: clamp(26px, 3vw, 34px); }

.tag {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 3.5px 12px;
  border: 1px solid rgba(15, 157, 107, 0.28);
  border-radius: 999px;
  background: rgba(15, 157, 107, 0.08);
  color: var(--mint);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
}

.feature li {
  position: relative;
  padding-left: 25px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.52em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--wash);
}

.feature li::after {
  content: "";
  position: absolute;
  left: 6px; top: 0.76em;
  width: 6.5px; height: 3.5px;
  border-left: 1.7px solid var(--brand);
  border-bottom: 1.7px solid var(--brand);
  transform: rotate(-45deg);
}

.feature-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* ── App-window impression ────────────────────────────────────────── */

.window {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdce8; }
.window-bar i:nth-child(1) { background: #ffbdb0; }
.window-bar i:nth-child(2) { background: #ffe0a8; }
.window-bar i:nth-child(3) { background: #bfe8cd; }

.window-bar b {
  margin-left: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 580;
  letter-spacing: 0.02em;
}

.window-body { padding: 18px; display: grid; gap: 13px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.stat {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}

.stat span {
  display: block;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stat b { display: block; margin-top: 5px; font-size: 17px; font-weight: 660; letter-spacing: -0.03em; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}

.bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-lite), #d9c4ff);
  transform-origin: bottom;
  animation: grow 0.85s var(--ease) both;
}

@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.rows { display: grid; gap: 8px; }
.rows i { height: 10px; border-radius: 999px; background: #f0f0f6; }
.rows i:nth-child(2) { width: 74%; }
.rows i:nth-child(3) { width: 55%; }

/* ── Cards ────────────────────────────────────────────────────────── */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

/* Cursor-tracked spotlight (coords set in app.js) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(134, 59, 255, 0.07), transparent 62%);
  transition: opacity 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--sh-md);
}

.card:hover::before { opacity: 1; }

.card h3 { font-size: 19px; letter-spacing: -0.028em; }
.card p { margin-top: 11px; color: var(--ink-2); font-size: 14.8px; line-height: 1.65; }

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(160deg, var(--wash), #fff);
  color: var(--brand);
  box-shadow: var(--sh-sm);
}

.icon-tile svg { width: 21px; height: 21px; }

/* ── Callout ──────────────────────────────────────────────────────── */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(32px, 4.4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 150% at 100% 0%, var(--wash), transparent 60%),
    #fff;
  box-shadow: var(--sh-lg);
}

.callout h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 18ch; }
.callout p { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }

/* ── Contact ──────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }

.contact-item { display: block; color: inherit; }
.contact-item:hover { color: inherit; }

.contact-item span {
  display: block;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-item b {
  display: block;
  margin-top: 9px;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.022em;
  word-break: break-word;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 44px;
}

.site-footer .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-footer p { color: var(--ink-3); font-size: 14px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 26px; margin-left: auto; }
.footer-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: var(--brand); }

/* ── Scroll reveal (only when JS runs) ────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease) var(--d, 0ms),
    transform 0.75s var(--ease) var(--d, 0ms);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 940px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .window { order: -1; }
  #about .bento { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 660px) {
  .shell { padding-inline: 20px; }
  .site-header .shell { height: 66px; gap: 14px; }
  .site-nav { gap: 18px; }
  .site-nav .hide-sm { display: none; }
  .hero h1 { max-width: none; }
  .bento,
  .contact-grid,
  .feature ul { grid-template-columns: minmax(0, 1fr); }
  .callout { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .marquee-track, .bars i, .dot { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
