/* DragonWire product site — static, no dependencies. Dark theme matching the app. */
:root {
  --bg: #0d0e12;
  --panel: #16181f;
  --panel-2: #1c1f28;
  --text: #e7e9ee;
  --muted: #9aa0ad;
  --gold: #f1c75a;
  --gold-dim: #b8902f;
  --ember: #ff6b5e;
  --success: #4fd08a;
  --line: #2a2d38;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- Sticky travelling header ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  transition: background .3s ease, padding .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(13,14,18,.78);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 10px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand img { width: 26px; height: 26px; display: block; }
nav.site a { color: var(--muted); margin-left: 22px; font-size: 15px; position: relative; transition: color .2s; }
nav.site a:hover { color: var(--text); text-decoration: none; }
nav.site a.active { color: var(--gold); }
nav.site a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
@media (max-width: 680px) { nav.site a { margin-left: 14px; font-size: 14px; } nav.site a:first-child { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; text-align: center; padding: 92px 20px 48px; overflow: hidden; }
.hero .aurora { position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0; filter: blur(70px); opacity: .6; pointer-events: none; }
.hero .aurora span { position: absolute; border-radius: 50%; display: block; }
.hero .aurora .a1 { width: 440px; height: 440px; left: 8%; top: -60px; background: radial-gradient(circle, #e3b34155, transparent 70%); animation: float1 14s ease-in-out infinite; }
.hero .aurora .a2 { width: 380px; height: 380px; right: 6%; top: 10px; background: radial-gradient(circle, #6b4bff33, transparent 70%); animation: float2 18s ease-in-out infinite; }
.hero .aurora .a3 { width: 300px; height: 300px; left: 45%; top: 120px; background: radial-gradient(circle, #ff6b5e22, transparent 70%); animation: float1 20s ease-in-out infinite reverse; }
.hero .grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .14;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -1px; font-weight: 800; }
.hero h1 .accent {
  background: linear-gradient(90deg, #f1c75a, #ffe9a8, #f1c75a); -webkit-background-clip: text; background-clip: text;
  color: transparent; background-size: 200% auto; animation: shimmer 6s linear infinite;
}
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 11px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn.primary { background: var(--gold); color: #1a1500; box-shadow: 0 6px 24px -8px #f1c75a99; }
.btn.primary:hover { background: #ffd874; transform: translateY(-2px); box-shadow: 0 10px 30px -8px #f1c75abb; text-decoration: none; }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--gold); transform: translateY(-2px); text-decoration: none; }
.hero .note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ---- Hero visual: packets flowing through DragonWire ---- */
.flow { margin: 44px auto 0; max-width: 760px; width: 100%; }
.flow svg { width: 100%; height: auto; display: block; }
.packet { offset-rotate: 0deg; }
.p1 { offset-path: path("M40 60 H360"); animation: run 2.6s linear infinite; }
.p2 { offset-path: path("M40 110 H360"); animation: run 2.6s linear infinite .9s; }
.p3 { offset-path: path("M40 160 H360"); animation: run 2.6s linear infinite 1.6s; }
.q1 { offset-path: path("M440 110 H760"); animation: run 2.2s linear infinite .3s; }
.q2 { offset-path: path("M440 60 H760"); animation: run 2.2s linear infinite 1.1s; }
.q3 { offset-path: path("M440 160 H760"); animation: run 2.2s linear infinite 1.8s; }
.core-glow { transform-origin: 400px 110px; animation: pulse 3s ease-in-out infinite; }

/* ---- Sections ---- */
section { padding: 56px 0; }
section h2 { font-size: 30px; text-align: center; margin: 0 0 10px; letter-spacing: -0.5px; }
section .sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }
.eyebrow { text-align: center; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  --mx: 50%; --my: 50%;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .3s ease;
}
.card > * { position: relative; z-index: 1; }
/* gradient border on hover */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; z-index: 2;
  background: linear-gradient(130deg, #f1c75a66, transparent 42%); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .3s;
}
/* spotlight that follows the cursor */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(241,199,90,.16), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); border-color: #3a3f4d; box-shadow: 0 22px 50px -26px #000, 0 0 0 1px #f1c75a22; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card .ic {
  font-size: 22px; margin-bottom: 14px; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #f1c75a26, #f1c75a10); border: 1px solid #f1c75a2e;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.card:hover .ic { transform: scale(1.1) rotate(-6deg); box-shadow: 0 8px 20px -10px #f1c75a66; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.platforms { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; color: var(--muted); font-size: 14px; transition: border-color .2s, color .2s, transform .2s; }
.pill:hover { border-color: var(--gold-dim); color: var(--text); transform: translateY(-2px); }

/* billing toggle */
.billing { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 28px; }
.billing .seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.billing button.on { background: var(--gold); color: #1a1500; }
.billing .save { color: var(--success); font-size: 13px; font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.plan {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 26px; text-align: center; position: relative; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--gold-dim); box-shadow: 0 30px 80px -40px #f1c75a55; }
.plan .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1500; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .3px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .tagline { color: var(--muted); font-size: 13px; min-height: 34px; margin: 0 0 10px; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1.1; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan .per { color: var(--muted); font-size: 13px; min-height: 18px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; }
.plan li::before { content: "✓"; color: var(--success); position: absolute; left: 0; font-weight: 700; }
.plan .btn { width: 100%; }
.pricing .free { color: var(--muted); font-size: 14px; margin-top: 20px; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; max-width: 420px; } }

footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 30px 20px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); margin-right: 18px; }
footer.site a:hover { color: var(--gold); }

/* ---- Free vs Pro comparison ---- */
.compare { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { background: var(--panel-2); font-weight: 700; }
.compare thead th:nth-child(2), .compare thead th:nth-child(3) { text-align: center; width: 110px; }
.compare td:nth-child(2), .compare td:nth-child(3) { text-align: center; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: #ffffff06; }
.compare .yes { color: var(--success); font-weight: 700; }
.compare .no { color: #5a6070; }
.compare .pro-col { color: var(--gold); }
.compare .grp td { background: #ffffff05; font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }

/* ---- Documents (privacy/terms) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc p, .doc li { color: #c9cdd6; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .placeholder { background: rgba(241,199,90,.12); border: 1px dashed var(--gold-dim); border-radius: 6px; padding: 2px 6px; color: var(--gold); }

/* ---- Scroll-reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes shimmer { to { background-position: 200% center; } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,26px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-34px,20px); } }
@keyframes run { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .accent, .hero .aurora span, .packet, .core-glow { animation: none !important; }
  .card, .card .ic { transition: none; }
  .card:hover { transform: none; }
  .card:hover .ic { transform: none; }
  html { scroll-behavior: auto; }
}
