/* AiDigiApps — shared styles */
:root {
  --bg: #0b0e14;
  --bg-soft: #121826;
  --card: #161d2e;
  --border: #243049;
  --text: #e6ebf5;
  --muted: #9aa6bd;
  --brand: #5b8cff;
  --brand-2: #8a6cff;
  --accent: #34d3a6;
  --radius: 16px;
  --maxw: 1080px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --bg-soft: #eef2f8;
    --card: #ffffff;
    --border: #e2e8f2;
    --text: #131722;
    --muted: #5a677e;
    --shadow: 0 12px 40px rgba(20, 30, 60, .10);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.02em; color: var(--text);
}
.brand:hover { text-decoration: none; }
/* Wordmark tinted to match the logo: Ai (blue) · Digi (dark) · Apps (green) */
.brand-name { font-weight: 800; }
.bn-ai   { color: #1f72e6; }              /* blue  */
.bn-digi { color: var(--text); }          /* dark — adapts to light/dark theme */
.bn-apps { color: #3aa641; }              /* green */
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover; display: block; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav-links { gap: 14px; } .nav-links a.hide-sm { display: none; } }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 72px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: min(300px, 78vw); height: auto; border-radius: 20px;
  display: block; margin: 0 auto 24px; object-fit: contain;
  background: #fff; box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-soft); margin-bottom: 20px;
}
h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.05;
  letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800;
}
.gradient-text {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto 30px; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.07); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { text-decoration: none; border-color: var(--brand); }

/* ---- Sections ---- */
section { padding: 56px 0; }
.section-title { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; margin: 0 0 10px; font-weight: 750; text-align: center; }
.section-sub { color: var(--muted); text-align: center; max-width: 600px; margin: 0 auto 40px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.card .ico { font-size: 26px; margin-bottom: 12px; display: block; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- App showcase card (home) ---- */
.app-card {
  display: flex; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow);
}
.app-card .app-icon {
  width: 84px; height: 84px; border-radius: 20px; flex: none;
  border: 1px solid var(--border); overflow: hidden;
}
.app-card .app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-hero-icon {
  width: 100px; height: 100px; border-radius: 23px;
  display: block; margin: 0 auto 22px; object-fit: cover;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.app-card .meta h3 { margin: 0 0 4px; font-size: 22px; }
.app-card .meta p { margin: 0 0 12px; color: var(--muted); }
@media (max-width: 560px) { .app-card { flex-direction: column; text-align: center; } }

/* ---- Legal / doc pages ---- */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); text-align: left; }
.doc .updated { color: var(--muted); font-size: 14px; margin: -8px 0 30px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc .muted, .doc small { color: var(--muted); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--brand); border-radius: 10px;
  padding: 14px 18px; margin: 18px 0;
}
.faq { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq:last-child { border-bottom: none; }
.faq h3 { margin: 0 0 6px; font-size: 17px; }
.faq p { margin: 0; color: var(--muted); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border); padding: 40px 0; margin-top: 30px;
  color: var(--muted); font-size: 14px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.pill-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.pill { font-size: 13px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; }
