/* ==========================================================================
   Digitaino LLC — shared design system
   Brand: teal #0FA3A8 · orange #E8743B · ink #16191C
   Dark-mode first, light/dark via [data-theme] on <html>
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  --teal: #0FA3A8;
  --orange: #E8743B;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-soft: #f5f8f9;
  --surface: #ffffff;
  --surface-2: #f7fafb;
  --border: #e4eaec;
  --text: #16191c;
  --text-muted: #5a6671;
  --heading: #0f1316;
  --accent: #0c8a8e;          /* teal, tuned for contrast on light */
  --accent-2: #d8602a;        /* orange, tuned for light */
  --shadow: 0 1px 2px rgba(16,25,28,.04), 0 8px 24px rgba(16,25,28,.06);
  --shadow-lg: 0 8px 40px rgba(16,25,28,.10);
  --glow-1: rgba(15,163,168,.10);
  --glow-2: rgba(232,116,59,.08);
  --logo-color: inline;       /* set via [hidden] swaps below */

  --maxw: 880px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0c0e10;
  --bg-soft: #101315;
  --surface: #15191c;
  --surface-2: #1a1f23;
  --border: #262d33;
  --text: #e6ecef;
  --text-muted: #9aa6af;
  --heading: #f3f6f8;
  --accent: #2bc4c9;          /* brightened teal for dark */
  --accent-2: #f0875a;        /* brightened orange for dark */
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.5);
  --glow-1: rgba(15,163,168,.16);
  --glow-2: rgba(232,116,59,.12);
}

/* ----- Base -------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Ambient brand glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 15% -10%, var(--glow-1), transparent 60%),
    radial-gradient(50rem 35rem at 100% 0%, var(--glow-2), transparent 55%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--heading); line-height: 1.2; letter-spacing: -.01em; }

::selection { background: var(--teal); color: #fff; }

/* ----- Navbar ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .94rem;
  padding: .45rem .7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--heading); background: var(--surface-2); text-decoration: none; }

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Logo swap by theme */
.logo-light { display: block; }
.logo-dark  { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }

/* ----- Layout ------------------------------------------------------------ */
main { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ----- Hero -------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
  max-width: 760px;
  margin: 0 auto;
}
.hero .mark { width: 76px; height: 76px; margin: 0 auto 1.5rem; filter: drop-shadow(0 10px 24px rgba(0,0,0,.18)); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.3rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
.gradient-text {
  background: linear-gradient(110deg, var(--teal), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 36em;
}
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* Compact hero for inner / legal pages */
.hero.sm { padding: clamp(2.2rem, 5vw, 3.2rem) 1.25rem 0.6rem; }
.hero.sm h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem;
  padding: .7rem 1.3rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, var(--teal), var(--orange));
  box-shadow: 0 6px 18px rgba(15,163,168,.32);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(15,163,168,.42); color: #fff; }
.btn-ghost {
  color: var(--heading);
  background: var(--surface);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ----- Sections & cards -------------------------------------------------- */
.section { padding: 1.4rem 0; }
.section + .section { padding-top: .4rem; }
.section-head { margin-bottom: 1.1rem; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.section-title::before {
  content: "";
  width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.1rem; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Highlighted (contact) card */
.card-accent {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--teal), var(--orange)) border-box;
  border: 1px solid transparent;
}

/* ----- Grids ------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

.member { text-align: center; }
.member .avatar {
  width: 56px; height: 56px; margin: 0 auto .8rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--orange));
}
.member strong { display: block; color: var(--heading); font-size: 1.06rem; }
.member .role { color: var(--accent); font-weight: 600; font-size: .9rem; margin: .15rem 0 .5rem; }
.member span { color: var(--text-muted); font-size: .94rem; }

/* ----- FAQ / feature lists ----------------------------------------------- */
.q { font-weight: 700; color: var(--heading); margin: 0 0 .35rem; }
.feature-list { list-style: none; padding: 0; margin: .4rem 0 0; }
.feature-list li { position: relative; padding-left: 1.7rem; margin: .5rem 0; }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--orange));
}

/* ----- Definition rows (contact) ----------------------------------------- */
.dl { margin: 0; }
.dl div { display: flex; gap: .6rem; padding: .35rem 0; flex-wrap: wrap; }
.dl dt { color: var(--text-muted); min-width: 90px; font-weight: 600; }
.dl dd { margin: 0; color: var(--text); }

/* ----- Prose tweaks ------------------------------------------------------ */
.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.prose p { margin: .7rem 0; }
.prose ul { margin: .6rem 0; padding-left: 1.4rem; }
.prose li { margin: .35rem 0; }
.meta { color: var(--text-muted); font-size: .92rem; }

/* ----- Footer ------------------------------------------------------------ */
.footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer img { height: 24px; opacity: .9; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .92rem; }
.footer-links a:hover { color: var(--accent); }
.footer .copy { color: var(--text-muted); font-size: .88rem; width: 100%; text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: .4rem; }

/* ----- Responsive nav ---------------------------------------------------- */
@media (max-width: 560px) {
  .nav-links a { padding: .4rem .5rem; }
  .brand img { height: 26px; }
}
