:root {
  --header-h: 74px;

  /* Base (dark) */
  --bg: #0b0f17;
  --surface: rgba(255,255,255,0.06);
  --card: rgba(255,255,255,0.04);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --stroke: rgba(255,255,255,0.10);
  --grid: rgba(255,255,255,0.08);

  /* Accents */
  --accent: #0a84ff;
  --accent2: #7c3aed;

  /* Radii */
  --r-xl: 22px;
  --r-lg: 16px;

  /* Layout */
  --container: 1100px;
  --pad: 24px;
}

:root{
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Light theme */
html[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: rgba(0,0,0,0.04);
  --card: rgba(0,0,0,0.03);
  --text: rgba(0,0,0,0.90);
  --muted: rgba(0,0,0,0.62);
  --stroke: rgba(0,0,0,0.10);
  --grid: rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

/* Smooth scroll only for anchor navigation */
html { scroll-behavior: smooth; }

/* Theme colors */
html[data-theme="dark"] .panel::before,
html[data-theme="dark"] .card::before,
html[data-theme="dark"] .mini-card::before{
  background: linear-gradient(
    to bottom,
    rgba(10,132,255,0.18),
    rgba(124,58,237,0.10),
    rgba(0,0,0,0)
  );
}

html[data-theme="light"] .panel::before,
html[data-theme="light"] .card::before,
html[data-theme="light"] .mini-card::before{
  background: linear-gradient(
    to bottom,
    rgba(10,30,80,0.12),
    rgba(10,30,80,0.04),
    rgba(10,30,80,0)
  );
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;

  position: relative;
  isolation: isolate; /* for background effects */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  /* One background */
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(10,132,255,0.18), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(124,58,237,0.16), transparent 55%),
    radial-gradient(1100px 700px at 50% 110%, rgba(10,132,255,0.10), transparent 55%);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  background: var(--surface);
  padding: 0.14em 0.38em;
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 99;
}
.skip-link:focus { left: 12px; }

.muted { 
  color: var(--muted); 
  font-size: 0.82rem;
}
.small { font-size: 0.92rem; }

.link { color: var(--muted); }
.link:hover { color: var(--text); text-decoration: underline; }

.dot { opacity: 0.5; }

/* ===== Fixed Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;

  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.18));
}

html[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(255,255,255,0.90), rgba(255,255,255,0.60));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h);
}

.header-spacer { height: var(--header-h); }

h1, h2, h3, .brand-text strong {
  font-family: var(--font-head);
  font-weight: 300;          
  letter-spacing: -0.02em;   
}

h1 { font-weight: 400; }
h2, h3 { font-weight: 300; }


/* Anchor offset so sections are not hidden under fixed header */
section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ===== Brand ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 48px;
  height: 48px;
}

.brand-text { display: grid; gap: 2px; }
.brand-text strong { font-weight: 800; letter-spacing: -0.02em; }
.brand-text .muted { font-size: 0.9rem; }

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 10px;
}

.nav a {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.98rem;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; gap: 10px; }

/* ===== Buttons (Outlined, no animations) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;

  /* no transitions / no animations */
  transition: none;
}

.btn:hover {
  background: var(--surface);
}

.btn:active {
  background: var(--surface);
}

.btn-outline { background: transparent; }

.btn-accent {
  border-color: color-mix(in srgb, var(--stroke), var(--accent) 55%);
  color: var(--text);
}
.btn-accent:hover {
  background: color-mix(in srgb, var(--accent), transparent 88%);
}

.btn-compact {
  padding: 10px 12px;
  border-radius: 12px;
}

.btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

/* ===== Hero ===== */
.hero { padding: 44px 0 26px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  width: fit-content;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 58ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.mini-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 14px;
}

.mini-title { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.mini-value { margin-top: 6px; font-weight: 800; }

.hero-art .art {
  width: 100%;
  height: auto;
}

/* ===== Sections ===== */
.section { padding: 42px 0; }

.section.alt {
  padding: 46px 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02), transparent);
}
html[data-theme="light"] .section.alt {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02), transparent);
}

.section-head { display: grid; gap: 6px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.02em; }
.section-head p { margin: 0; }

section.section-mini .section-head{
  margin-bottom: 14px;
}

section.section-mini .section-head h2{
  font-size: 1.6rem;  
  margin-bottom: 6px;
}

section.section-mini .section-head .muted{
  margin: 0;
}


/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 18px;

  /* no animations */
  transition: none;

  display: grid;
  gap: 14px;
  min-height: 170px;
}

.badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}

.card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; }

.card-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions .link {
  font-size: 0.85rem;          
  line-height: 1.2;
  font-weight: 500;           
  opacity: 0.82;              
  letter-spacing: 0.01em;
}

.card-actions .link:hover{
  opacity: 1;
}

.card-actions .dot {
  opacity: 0.35; 
  font-size: 0.95rem;
}


/* ===== Support panels: equal height + footer pinned bottom ===== */
.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 14px;
  align-items: stretch; /* important */
}

.panel {
  position: relative;
  overflow: hidden;

  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 18px;

  display: flex;              /* important */
  flex-direction: column;     /* important */
  height: 100%;
}

/* Shared "top wash" for cards */
.panel,
.card,
.mini-card{
  position: relative;
  overflow: hidden;
}

.mini-card::before,
.mini-card::after{
  z-index: 0;
}

.mini-card > *{
  position: relative;
  z-index: 1;
}

.panel::before,
.card::before,
.mini-card::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:4rem;
  pointer-events:none;
}

.mini-dot{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  z-index: 3;
}

/* Make sure content stays above the gradient */
.panel > *,
.card > *,
.mini-card > *{
  position: relative;
  z-index: 1;
}

.panel h3 { margin: 0 0 10px; letter-spacing: -0.02em; }
.panel p { margin: 0 0 12px; color: var(--muted); }

.panel-body { flex: 1; }      /* pushes footer down */
.panel-footer { margin-top: auto; }

.contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.checklist { margin: 0; padding-left: 18px; color: var(--muted); }
.checklist li { margin: 8px 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: var(--surface);
  width: 100%;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.18);
}

.status-dot.mini-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  z-index: 3;
}

.app-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.app-head-text{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-head-text .badge{
  margin-bottom:10px; 
  align-self: flex-end; /* badge right */
  margin-left: auto; 
  display: inline-flex;
}

.app-head-text h3 { margin:0; }

.app-icon {
  width:56px;
  height:56px;
  border-radius:16px;
  flex:0 0 56px;
  object-fit:cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}


/* ===== Legal ===== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 16px;

  transition: none;
}

.legal-title {
  font-weight: 820;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 20px 0 28px;
  margin-top: 10px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.dot-logo {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mini-cards { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 520px) {
  :root { --pad: 18px; }
  .legal-grid { grid-template-columns: 1fr; }
}
