/* Shared theme for the root landing page and /ai/, styled after ziniosedge.com.
   Served at /ze-theme.css (copied into the bundle root by the deploy pipeline). */
:root {
  --bg: #F4F5F7;
  --bg-elev: #FFFFFF;
  --bg-tint: #ECEEF2;
  --nav: #333333;
  --border: #E1E4EA;
  --border-strong: #C9CED8;
  --fg: #16181D;
  --fg-soft: #4B505B;
  --muted: #858B97;
  --orange: #E87F36;
  --orange-deep: #C66520;
  --orange-soft: rgba(232, 127, 54, 0.12);
  --orange-glow: rgba(232, 127, 54, 0.30);
  --blue: #4A7BD0;
  --ink: #141517;
  --radius: 28px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0.9rem 1.5rem 4rem; }

/* ---------- Nav pill ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--nav); color: #fff;
  border-radius: 16px; padding: 0.85rem 1.75rem;
}
.nav .brand {
  display: flex; align-items: center; background: #fff;
  border-radius: 10px; padding: 0.4rem 0.7rem;
}
.nav .brand img { height: 26px; width: auto; display: block; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; }
.nav ul a { color: #fff; text-decoration: none; font-size: 1.02rem; transition: color .15s ease; }
.nav ul a:hover, .nav ul a.active { color: var(--orange); }
.btn-outline {
  color: #fff; text-decoration: none; font-size: 1rem;
  border: 1px solid rgba(255,255,255,.75); border-radius: 10px; padding: 0.7rem 1.4rem;
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover { background: #fff; color: var(--nav); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem;
  padding: 4.5rem 0 3.5rem;
}
h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.22;
}
h1 .hl {
  display: inline-block; color: #fff; font-weight: 400;
  padding: 0 0.25em; margin-right: 0.05em; border-radius: 10px;
  background: linear-gradient(100deg, #4A7BD0 0%, #E8A064 100%);
}
.lead { margin-top: 1.75rem; font-size: 1.18rem; color: var(--fg); max-width: 520px; }
.btn-discover {
  display: inline-flex; align-items: center; gap: 1.1rem; margin-top: 2.25rem;
  text-decoration: none; font-size: 1.05rem; color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 0.35rem 1.6rem 0.35rem 0.4rem;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.btn-discover:hover { border-color: var(--orange); box-shadow: 0 10px 26px -14px var(--orange-glow); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.25rem; }
.hero-actions .btn-discover { margin-top: 0; }
.btn-link { color: var(--fg-soft); text-decoration: none; font-size: 1rem; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.btn-link:hover { color: var(--orange); border-color: var(--orange); }
.btn-discover .ico {
  width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-size: 1.3rem;
}

/* ---------- Hero visual: app launcher ---------- */
.visual {
  position: relative; min-height: 440px; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; color: #fff; isolation: isolate;
  background:
    radial-gradient(360px 260px at 85% 10%, rgba(232,127,54,.35), transparent 70%),
    radial-gradient(360px 260px at 10% 95%, rgba(74,123,208,.35), transparent 70%),
    var(--ink);
}
.visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}
.launcher { display: grid; grid-template-columns: repeat(3, 78px); gap: 14px; }
.tile {
  width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  animation: float 6s ease-in-out infinite;
}
.tile.filled { border-color: transparent; box-shadow: 0 16px 30px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.tile svg { width: 32px; height: 32px; }
.tile.core svg { width: 36px; height: 36px; }
.tile.core {
  font-size: 2rem; background: linear-gradient(135deg, #F4A261, var(--orange));
  box-shadow: 0 0 0 8px rgba(232,127,54,.12), 0 20px 50px -12px var(--orange-glow);
}
.tile:nth-child(2n) { animation-delay: -1.5s; }
.tile:nth-child(3n) { animation-delay: -3s; }
.tile.core { animation: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem; border-radius: 999px; font-size: .85rem; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip b { font-weight: 600; }
.chip.tr { top: 1.4rem; right: 1.4rem; }
.chip.bl { bottom: 1.4rem; left: 1.4rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem; color: #D5D8DF; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ---------- Section heading + search ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 1.5rem 0 1.5rem;
}
h2.section { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; }
h2.section b { font-weight: 500; color: var(--orange); }
.search {
  width: min(100%, 340px); font: inherit; font-size: .95rem; color: var(--fg);
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
  padding: .75rem 1rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 1.4rem;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 22px;
  padding: 1.35rem 1.35rem 1.25rem; text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(232,127,54,.45); box-shadow: 0 24px 48px -28px var(--orange-glow); }
.card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.card.hidden { display: none; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.mono {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s ease;
}
.mono svg { width: 26px; height: 26px; }
.card:hover .mono { transform: scale(1.06) rotate(-3deg); }
.arrow {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); color: var(--fg-soft); font-size: 1rem;
  transition: background .2s, color .2s, border-color .2s, transform .25s ease;
}
.card:hover .arrow { background: var(--orange); border-color: var(--orange); color: #fff; transform: rotate(-45deg); }
.card h2 { font-size: 1.2rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.card p { color: var(--fg-soft); font-size: .92rem; margin-top: .3rem; }
.card-body { flex: 1; }
.features { list-style: none; margin-top: 1rem; display: grid; gap: .55rem; }
.features li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--fg); }
.features svg {
  flex-shrink: 0; width: 18px; height: 18px; padding: 3px; margin-top: 1px; border-radius: 50%;
  color: var(--orange); background: var(--orange-soft); stroke-width: 2.6;
}
.grid.projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1.25rem; }
.grid.projects .card { padding: 1.6rem; }
.grid.projects .card h2 { font-size: 1.35rem; }
.card-foot { display: flex; align-items: center; gap: .6rem; margin-top: -.8rem; min-width: 0; }
.grid.projects .card-foot { margin-top: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.live { flex-shrink: 0; }
.live {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 500;
  color: #15803D; background: rgba(34,197,94,.12); padding: .2rem .6rem; border-radius: 999px;
}
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card .url { color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .74rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-theme="dark"] .live { color: #4ADE80; }
.no-results, .empty-note { display: none; margin-top: 2rem; color: var(--muted); }

/* ---------- AI banner ---------- */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin: 1rem 0 3.5rem; padding: 2.2rem 2.4rem; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: radial-gradient(500px 240px at 90% 0%, rgba(232,127,54,.45), transparent 70%), var(--ink);
  transition: transform .18s ease, box-shadow .25s ease;
}
.banner:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -26px rgba(20,21,23,.8); }
.banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; }
.banner h2 b { font-weight: 500; color: var(--orange); }
.banner p { margin-top: .4rem; color: #C4C8D1; max-width: 560px; }
.banner .cta { background: var(--orange); color: #fff; font-weight: 500; padding: .8rem 1.4rem; border-radius: 10px; white-space: nowrap; }

footer {
  margin-top: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between;
}
.meta-pill { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* Dark theme is opt-in via the bulb toggle (sets data-theme on <html>). */
:root[data-theme="dark"] {
  --bg: #0F1013; --bg-elev: #17191E; --bg-tint: #20232A; --nav: #1E2025;
  --border: #262A32; --border-strong: #363B46; --fg: #F2F3F6; --fg-soft: #B9BDC6; --muted: #7C828E;
  --orange: #FF9248; --orange-deep: #FFB07A; --blue: #6C98E6; --ink: #1A1C21;
}
body { transition: background .25s ease, color .25s ease; }

/* ---------- Theme bulb toggle ---------- */
.nav-right { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .glow { fill: var(--orange); stroke: var(--orange); }
.theme-toggle .rays { opacity: 1; transition: opacity .2s ease; }
:root[data-theme="dark"] .theme-toggle .glow { fill: none; stroke: currentColor; }
:root[data-theme="dark"] .theme-toggle .rays { opacity: 0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .visual { min-height: 360px; }
  .nav ul { gap: 1.25rem; }
}
@media (max-width: 560px) {
  .wrap { padding: .6rem 1rem 3rem; }
  .nav { padding: .7rem 1rem; gap: .75rem; }
  .nav .brand img { height: 22px; }
  .btn-outline { display: none; }
  .grid { grid-template-columns: 1fr; }
  .banner { padding: 1.6rem; }
  .launcher { grid-template-columns: repeat(3, 62px); gap: 10px; }
  .tile { width: 62px; height: 62px; border-radius: 18px; }
  .tile svg { width: 26px; height: 26px; }
  .chip.tr { top: 1rem; right: 1rem; }
  .chip.bl { bottom: 1rem; left: 1rem; }
}
