/* Ziggi AI coming-soon. Brand colors come straight from the logo SVG fills. */
:root {
  --plum: #4b152d;
  --plum-deep: #2e0c1b;
  --sage: #466255;
  --rust: #ae4b2e;
  --gold: #ab7b22;
  --mist: #edf0e7;      /* page ground: pale sage */
  --paper: #fbfaf5;     /* arch + cards */
  --ink: #2b1621;
  --muted: #5a5f57;
  --line: rgba(75, 21, 45, .14);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --label: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(174, 75, 46, .10), transparent 60%),
    radial-gradient(50rem 36rem at 105% 30%, rgba(70, 98, 85, .16), transparent 60%),
    radial-gradient(44rem 30rem at 40% 110%, rgba(171, 123, 34, .12), transparent 60%),
    var(--mist);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

/* Gold circuit traces, echoing the ones in the logo */
.circuits { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.trace { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 6 0; }
.trace.t2 { stroke: var(--sage); opacity: .6; }
.nodes circle { fill: var(--mist); stroke: var(--gold); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 4s ease-in-out infinite; }
.nodes circle:nth-child(2n) { animation-delay: 1.3s; }
.nodes circle:nth-child(3n) { animation-delay: 2.4s; }
@keyframes pulse { 0%, 100% { transform: scale(1); fill: var(--mist); } 50% { transform: scale(1.35); fill: #e9c77a; } }

.page {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-block: clamp(28px, 6vw, 72px) 40px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.arch-wrap { position: relative; width: min(100%, 440px); justify-self: center; padding: 22px 22px 0; }
/* 70s rainbow: four arches stepping out from the frame */
.rainbow { position: absolute; inset: 0; pointer-events: none; }
.rainbow i {
  position: absolute; inset: calc(var(--k) * 7px);
  border: 3px solid var(--c); border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.rainbow i:nth-child(1) { --k: 0; --c: var(--plum); }
.rainbow i:nth-child(2) { --k: 1; --c: var(--rust); }
.rainbow i:nth-child(3) { --k: 2; --c: var(--gold); }
.rainbow i:nth-child(4) { --k: 3; --c: var(--sage); }
.arch {
  position: relative;
  background: var(--paper);
  border-radius: 999px 999px 18px 18px;
  padding: clamp(40px, 7vw, 64px) clamp(26px, 5vw, 46px) clamp(26px, 4vw, 38px);
  box-shadow: 0 30px 60px -30px rgba(46, 12, 27, .35), inset 0 0 0 1px var(--line);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
}
.arch img { width: 100%; max-height: 100%; object-fit: contain; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 0 18px;
  font: 600 13px/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--sage);
}
.eyebrow .soon {
  letter-spacing: .14em; color: var(--paper); background: var(--rust);
  padding: 7px 12px 5px; border-radius: 999px;
}
h1 {
  margin: 0 0 20px;
  font: 650 clamp(42px, 6.4vw, 78px)/1.02 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -.015em; color: var(--plum);
  text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 560; color: var(--sage); }
.lede { margin: 0 0 14px; font-size: clamp(18px, 1.6vw, 20px); max-width: 34em; color: var(--ink); }
.sub { margin: 0 0 26px; max-width: 34em; color: var(--muted); }

.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .22s; }
.hero-copy > *:nth-child(n+5) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Notify form */
.notify {
  display: flex; gap: 8px; max-width: 470px;
  background: var(--paper); padding: 6px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 14px 30px -18px rgba(46, 12, 27, .35);
}
.notify input[type=email] {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: 500 16px var(--body); color: var(--ink); padding: 12px 16px;
}
.notify input::placeholder { color: #8b8f86; }
.notify input:focus { outline: none; }
.notify:focus-within { box-shadow: inset 0 0 0 2px var(--gold), 0 14px 30px -18px rgba(46, 12, 27, .35); }
.notify button {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 24px; font: 600 15px var(--label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper); background: var(--plum);
  transition: background .2s, transform .2s;
}
.notify button:hover { background: var(--plum-deep); transform: translateY(-1px); }
.notify button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.notify button[disabled] { opacity: .7; cursor: wait; }
.form-msg { margin: 12px 0 0 18px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-msg.ok { color: var(--sage); font-weight: 600; }
.form-msg.err { color: var(--rust); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Features ---------- */
.features { margin-top: clamp(64px, 10vw, 120px); }
.features-head { text-align: center; margin-bottom: 34px; }
.features-head .eyebrow { justify-content: center; margin-bottom: 12px; }
h2 {
  margin: 0;
  font: 600 clamp(30px, 4vw, 44px)/1.1 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 96;
  color: var(--plum); text-wrap: balance;
}
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.card {
  background: var(--paper); border-radius: 22px 22px 22px 4px;
  padding: 26px 22px 24px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 36px -24px rgba(46, 12, 27, .45); }
.card svg { width: 46px; height: 46px; margin-bottom: 16px; fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font: 600 20px/1.25 var(--display); font-variation-settings: "SOFT" 100; color: var(--plum); }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.c-rust { --c: var(--rust); } .c-sage { --c: var(--sage); } .c-plum { --c: var(--plum); } .c-gold { --c: var(--gold); }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 28px max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  font-size: 14px; color: var(--muted);
}
.foot img { width: 26px; }
.foot p { margin: 0; }
.foot .domain { font: 600 12px var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .arch-wrap { width: min(78%, 340px); }
  .eyebrow { justify-content: center; }
  .lede, .sub { margin-left: auto; margin-right: auto; }
  .notify { margin: 0 auto; }
  .form-msg { margin-left: 0; }
  .circuits { opacity: .35; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .notify { flex-direction: column; border-radius: 24px; padding: 8px; }
  .notify input[type=email] { text-align: center; }
  .notify button { width: 100%; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
