/* Circora website: night sky, dawn accents, calm motion. No external fonts, no trackers. */
:root {
  --bg: #f6f5fb;
  --surface: #ffffff;
  --text: #14132a;
  --muted: #5d5b78;
  --line: rgba(20, 19, 42, 0.1);
  --night: #6668f2;
  --dawn: #ff9e4d;
  --amber: #ffc461;
  --coral: #ff6b5c;
  --tide: #4dc7bd;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07081a;
    --surface: #12132b;
    --text: #f2f1ff;
    --muted: #a6a4c8;
    --line: rgba(255, 255, 255, 0.1);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav a { color: var(--muted); margin-left: 18px; font-size: 15px; }
@media (max-width: 560px) { nav a.hide-sm { display: none; } }

/* Hero with drifting aurora */
.hero {
  position: relative; overflow: hidden; color: #f2f1ff;
  background: #07081a;
  padding: 72px 0 84px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(80px); opacity: 0.55; pointer-events: none;
}
.hero::before { background: radial-gradient(circle, #4b2bb0, transparent 60%); top: -30vmax; left: -20vmax; animation: drift 18s ease-in-out infinite alternate; }
.hero::after { background: radial-gradient(circle, #b8445b, transparent 60%); bottom: -40vmax; right: -25vmax; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(8vmax, 6vmax); } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(90deg, var(--amber), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: #c9c7e8; max-width: 34ch; margin: 0 0 28px; }
@media (max-width: 820px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .cta { justify-content: center; } }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: linear-gradient(90deg, var(--amber), var(--coral)); color: #14132a;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: rgba(255, 255, 255, 0.1); color: #f2f1ff; }
.note { font-size: 13px; color: #a6a4c8; margin-top: 14px; }

/* Day Orbit (SVG) */
.orbit { width: min(380px, 80vw); margin: 0 auto; display: block; }
.orbit .arc { fill: none; stroke-linecap: round; animation: sweep 2.4s cubic-bezier(.2,.8,.2,1) both; }
.orbit .glow { animation: breathe 3.6s ease-in-out infinite alternate; transform-origin: center; }
@keyframes sweep { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: var(--to); } }
@keyframes breathe { from { opacity: 0.25; transform: scale(0.94); } to { opacity: 0.6; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .orbit .arc, .orbit .glow { animation: none; }
}

/* Sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; margin: 0 0 12px; }
section p.sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .icon { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.i-dawn { background: color-mix(in srgb, var(--dawn) 18%, transparent); }
.i-tide { background: color-mix(in srgb, var(--tide) 18%, transparent); }
.i-night { background: color-mix(in srgb, var(--night) 18%, transparent); }
.i-coral { background: color-mix(in srgb, var(--coral) 18%, transparent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.quote { font-size: 20px; line-height: 1.5; border-left: 3px solid var(--coral); padding: 4px 0 4px 18px; }
.muted { color: var(--muted); }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .price { grid-template-columns: 1fr; } }
.price .card h3 { font-size: 22px; }
.price ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); }
.price li { margin: 6px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tide) 20%, transparent); color: var(--tide); }

/* Legal / docs pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: 38px; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--muted); margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.placeholder { background: color-mix(in srgb, var(--amber) 30%, transparent); padding: 0 4px; border-radius: 4px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); margin-right: 16px; }
