/* adibotz.com launch site — shared styles for the home page and app pages.
   Layout: one centred 1080px column; home = animated network hero + three "what I do" cards + contact;
   app pages = brand bar, app header, sub-nav, readable 70ch document. */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink: #0e1630;
  --muted: #5a6480;
  --line: #dde3ef;
  --accent: #2347e8;
  --accent-ink: #ffffff;
  --accent-soft: #e4eafd;
  --signal: #0f9f8f;
  --shadow: 0 1px 2px rgba(14, 22, 48, .05), 0 10px 30px -12px rgba(14, 22, 48, .14);
  --shadow-hover: 0 2px 4px rgba(14, 22, 48, .06), 0 22px 44px -16px rgba(35, 71, 232, .28);
  --glass: rgba(244, 246, 251, .8);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080d1c; --surface: #0f1730; --surface-2: #141e3d; --ink: #e8ecf7; --muted: #94a0bf;
    --line: #1f2b52; --accent: #6f8cff; --accent-ink: #0a1022; --accent-soft: #18244f; --signal: #2dd4bf;
    --shadow: 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-hover: 0 24px 48px -18px rgba(111,140,255,.35);
    --glass: rgba(8, 13, 28, .74);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080d1c; --surface: #0f1730; --surface-2: #141e3d; --ink: #e8ecf7; --muted: #94a0bf;
  --line: #1f2b52; --accent: #6f8cff; --accent-ink: #0a1022; --accent-soft: #18244f; --signal: #2dd4bf;
  --shadow: 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-hover: 0 24px 48px -18px rgba(111,140,255,.35);
  --glass: rgba(8, 13, 28, .74);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }

/* Brand bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--glass); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.12rem var(--f-display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); box-shadow: 0 6px 16px -6px var(--accent); }
.mark svg { width: 22px; height: 22px; fill: var(--accent-ink); stroke: var(--accent-ink); stroke-width: 2; }
.mark svg path { fill: none; }
.bar-link { font-weight: 600; font-size: .92rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font: 600 .95rem/1 var(--f-body);
  border: 1px solid var(--line); color: var(--ink); background: var(--surface); cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(65% 85% at 18% 45%, var(--bg) 22%, transparent 72%); }
.net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 22px; padding-block: clamp(64px, 11vw, 128px) clamp(56px, 8vw, 96px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 500 .78rem var(--f-mono); color: var(--muted);
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.hero h1 { font-size: clamp(3rem, 9vw, 6.2rem); line-height: .95; font-weight: 800; letter-spacing: -.04em; }
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.lead { max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden; display: grid; gap: 12px; align-content: start;
  padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .96rem; }
.icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 500; }

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: clamp(24px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--accent-soft), var(--surface) 65%);
}
.contact h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.contact .email { font: 700 clamp(1.2rem, 3vw, 1.6rem) var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 22px; }

/* ---------- App pages ---------- */
.app-hero { padding-block: 48px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.app-icon {
  width: 76px; height: 76px; border-radius: 18px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--signal)); box-shadow: 0 14px 30px -12px var(--accent);
}
.app-icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-title { display: grid; gap: 4px; min-width: 0; }
.app-title h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 20px 0; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: .95rem; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.doc { max-width: 72ch; padding-block: 36px 80px; display: grid; gap: 14px; }
.doc h2 { font-size: 1.35rem; margin-top: 18px; }
.doc h3 { font-size: 1.05rem; margin-top: 6px; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .meta { font: 500 .8rem var(--f-mono); color: var(--muted); }
.callout { padding: 16px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.callout strong { color: var(--ink); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.feature { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.feature b { font-family: var(--f-display); font-size: 1.02rem; }
.feature span { color: var(--muted); font-size: .92rem; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 500 .72rem var(--f-mono); border: 1px solid var(--line); color: var(--muted); background: var(--surface); width: fit-content; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p + p { margin-top: 8px; }

.rise { animation: rise .7s var(--ease) both; }
.rise:nth-child(2) { animation-delay: .06s; } .rise:nth-child(3) { animation-delay: .12s; }
.rise:nth-child(4) { animation-delay: .18s; } .rise:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
