/* CoreLayer Solutions — shared styles */

:root {
  --bg: #f7f8fa;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f3f7;
  --border: rgba(18, 22, 31, 0.09);
  --border-strong: rgba(18, 22, 31, 0.16);
  --ink: #12151b;
  --ink-2: #2b3038;
  --muted: #5b626e;
  --faint: #8a919c;
  --accent: #2f6df6;
  --accent-ink: #ffffff;
  --accent-hover: #245ddc;
  --accent-soft: rgba(47, 109, 246, 0.10);
  --accent-glow: rgba(47, 109, 246, 0.16);
  --accent-2: #6f5bff;
  --ok: #1d9e64;
  --ok-soft: rgba(29, 158, 100, 0.12);
  --shadow-sm: 0 1px 2px rgba(18, 22, 31, .05), 0 6px 18px -10px rgba(18, 22, 31, .14);
  --shadow-md: 0 1px 2px rgba(18, 22, 31, .06), 0 20px 48px -20px rgba(18, 22, 31, .22);
  --shadow-lg: 0 2px 4px rgba(18, 22, 31, .06), 0 40px 80px -30px rgba(18, 22, 31, .30);
  --radius: 14px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f14;
    --bg-2: #10141a;
    --panel: #141920;
    --panel-2: #1a2029;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --ink: #f1f3f6;
    --ink-2: #d5d9e0;
    --muted: #a3abb7;
    --faint: #6f7783;
    --accent: #6d9bff;
    --accent-ink: #0b1020;
    --accent-hover: #86adff;
    --accent-soft: rgba(109, 155, 255, 0.12);
    --accent-glow: rgba(109, 155, 255, 0.18);
    --accent-2: #9d8bff;
    --ok: #4cd08f;
    --ok-soft: rgba(76, 208, 143, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 20px -12px rgba(0, 0, 0, .6);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .5), 0 24px 56px -22px rgba(0, 0, 0, .75);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 48px 90px -30px rgba(0, 0, 0, .85);
  }
}

/* ---- Base ---- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

:target { scroll-margin-top: 90px; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 24px;
}

.narrow { max-width: 720px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

p { margin: 0 0 14px; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.ink { color: var(--ink); }

ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
li { margin-bottom: 6px; }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn svg { width: 16px; height: 16px; }

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand svg { width: 30px; height: 30px; display: block; border-radius: 8px; }

.brand span {
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--muted);
  font-size: .93rem;
  font-weight: 520;
  padding: 7px 11px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }

.nav a.btn { padding: 8px 15px; font-size: .9rem; margin-left: 8px; color: var(--accent-ink); }
.nav a.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }

@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { margin-left: 0; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding-block: 88px 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(ellipse 50% 45% at 20% 10%, var(--accent-glow), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 30%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: balance;
}

.lede {
  margin: 20px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 50ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 36px;
  font-size: .88rem;
  color: var(--faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* Hero visual: a stack of "layers" echoing the logo */

.hero-art {
  position: relative;
  height: 360px;
  perspective: 1200px;
}

.layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(330px, 100%);
  height: 200px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-32deg) translateZ(var(--z));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: float 7s ease-in-out infinite;
  animation-delay: var(--delay);
}

.layer-1 { --z: -60px; --delay: 0s; opacity: .55; }
.layer-2 { --z: 20px; --delay: -2s; opacity: .8; }
.layer-3 { --z: 100px; --delay: -4s; }

.layer .bar {
  height: 12px;
  border-radius: 6px;
  background: var(--panel-2);
}
.layer .bar.w1 { width: 46%; background: var(--accent); }
.layer .bar.w2 { width: 78%; }
.layer .bar.w3 { width: 62%; }
.layer .bar.w4 { width: 34%; }

.layer .dots { display: flex; gap: 6px; margin-bottom: 4px; }
.layer .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: block; }
.layer .dots i:first-child { background: var(--accent); }

.layer .badge-ok {
  margin-top: auto;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 650;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .layer { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .hero { padding-block: 56px 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { height: 260px; order: -1; margin-top: -8px; }
  .layer { width: min(280px, 90%); height: 170px; }
  .layer-1 { --z: -50px; } .layer-2 { --z: 10px; } .layer-3 { --z: 70px; }
}

@media (max-width: 480px) {
  .hero-art { display: none; }
}

/* ---- Sections ---- */

section { padding-block: 64px; }
section + section { border-top: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 34px; }

.kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}

h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.section-head p { margin-top: 12px; font-size: 1.05rem; }

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 640;
  letter-spacing: -0.012em;
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card p { margin: 0; font-size: .95rem; }

.icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.icon svg { width: 20px; height: 20px; }

/* App showcase */

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.app-icon {
  width: 84px; height: 84px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px -12px var(--accent);
  display: grid;
  place-items: center;
}
.app-icon svg { width: 52px; height: 52px; }

.app-card h3 { font-size: 1.25rem; margin-bottom: 4px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 650;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.app-card .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .app-card { grid-template-columns: 1fr; padding: 22px; }
}

/* Two-column about */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.facts {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.facts h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin-bottom: 14px; }

dl { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; }
dt { color: var(--faint); font-size: .9rem; }
dd { margin: 0; color: var(--ink); font-size: .95rem; min-width: 0; }
dd a { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 12px; }
}

/* Contact */

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-panel h2 { margin-bottom: 10px; }

.contact-list { display: grid; gap: 14px; }

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.contact-row .icon { margin: 0; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.contact-row .icon svg { width: 17px; height: 17px; }
.contact-row strong { display: block; font-size: .9rem; font-weight: 620; color: var(--ink); }
.contact-row span, .contact-row a { font-size: .92rem; }
.contact-row span { color: var(--muted); }

@media (max-width: 760px) {
  .contact-panel { grid-template-columns: 1fr; padding: 26px; gap: 22px; }
}

/* ---- Inner pages (legal, support) ---- */

.page-head { padding-block: 64px 28px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.page-head .lede { font-size: 1.05rem; margin-top: 12px; }

.prose section { padding-block: 28px; }
.prose section + section { border-top: 1px solid var(--border); }
.prose h2 { font-size: 1.3rem; margin-bottom: 12px; }
.prose h3 { margin-top: 22px; font-size: 1.02rem; }
.prose p, .prose li { font-size: 1rem; }
.prose .prose-end { padding-bottom: 64px; }

.callout {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 18px;
}
.callout p { color: var(--ink); }

.faq { display: grid; gap: 10px; }

details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
}
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 620;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 500;
  color: var(--faint);
  font-size: 1.2rem;
  line-height: 1;
  flex: none;
}
details[open] summary::after { content: "–"; }
details p { padding-bottom: 16px; }

/* ---- Footer ---- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-block: 48px 36px;
  color: var(--faint);
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-grid p { color: var(--faint); font-size: .9rem; max-width: 42ch; }

.site-footer h4 {
  margin: 0 0 12px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
  font-weight: 650;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--ink-2); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; font-size: .85rem; }

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---- Placeholder marker (remove once filled in) ---- */

.todo {
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 5px;
  padding: 1px 7px;
  color: var(--accent);
  font-size: .9em;
  font-weight: 500;
}
