:root {
  --bg: #080910;
  --bg-2: #0d1020;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.115);
  --text: #f6f4ee;
  --muted: #b8b5c8;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #9b6cff;
  --brand-2: #28e0a9;
  --brand-3: #f8d15c;
  --accent-orange: #ff7a3d;
  --accent-amber: #ffb74d;
  --legacy-purple: #A855F7;
  --legacy-teal: #06B6D4;
  --legacy-cyan-glow: rgba(0, 245, 255, 0.08);
  --ink: #080910;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(155, 108, 255, 0.32), transparent 30rem),
    radial-gradient(circle at 92% 4%, rgba(40, 224, 169, 0.18), transparent 25rem),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin: 0 auto; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}
.narrow { max-width: 860px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 16, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 10px 24px rgba(155, 108, 255, 0.32));
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.nav-links a, .footer-links a, .social-links a {
  text-decoration: none;
  color: var(--muted);
}
.nav-links a {
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  font-weight: 800;
}

.hero { padding: 5.5rem 0 4rem; }
.hero-home { min-height: 82vh; display: grid; align-items: center; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 2rem;
  align-items: center;
}
.page-hero { padding: 5rem 0 3rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: var(--brand-2);
  background: rgba(40, 224, 169, 0.1);
  border: 1px solid rgba(40, 224, 169, 0.24);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 900;
}
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.045em; }
h1 { font-size: clamp(3rem, 8vw, 7.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.7rem; }
.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  max-width: 64ch;
}
.lead.compact { font-size: 1.05rem; }
.tagline {
  margin: 0 0 1.2rem;
  color: var(--brand-3);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
}
.tagline span { color: var(--brand-2); margin: 0 0.25rem; }
.actions, .callout-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand-2);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(40, 224, 169, 0.18);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.button:hover { transform: translateY(-1px); }
.button.secondary, .button.ghost {
  background: rgba(255,255,255,0.08);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.button.small { min-height: 40px; padding: 0.56rem 0.82rem; font-size: 0.92rem; }
.text-link { color: var(--brand-2); font-weight: 900; }
.text-muted { color: var(--muted); }

.panel, .app-card, .feature-card, .content-card, .callout, .companion-card, .sponsor-slot {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-card, .orbit-card, .feature-card, .content-card, .callout, .sponsor-slot, .companion-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top-color: rgba(168, 85, 247, 0.72);
  border-left-color: rgba(6, 182, 212, 0.72);
  box-shadow:
    var(--shadow),
    -10px 0 30px -10px rgba(56, 189, 248, 0.22),
    0 10px 30px var(--legacy-cyan-glow);
}

.app-card::before, .orbit-card::before, .feature-card::before, .content-card::before, .callout::before, .sponsor-slot::before, .companion-card::before,
.app-card::after, .orbit-card::after, .feature-card::after, .content-card::after, .callout::after, .sponsor-slot::after, .companion-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.app-card::before, .orbit-card::before, .feature-card::before, .content-card::before, .callout::before, .sponsor-slot::before, .companion-card::before {
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--legacy-purple), var(--legacy-teal), transparent 78%);
  opacity: 0.92;
}

.app-card::after, .orbit-card::after, .feature-card::after, .content-card::after, .callout::after, .sponsor-slot::after, .companion-card::after {
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--legacy-teal), var(--legacy-purple), transparent 82%);
  opacity: 0.92;
}

.app-card.featured {
  box-shadow:
    var(--shadow),
    -10px 0 32px -10px rgba(56, 189, 248, 0.28),
    0 12px 36px rgba(0, 245, 255, 0.11);
}
.orbit-card { padding: 1.5rem; position: relative; overflow: hidden; }
/* Hero preview slider: cross-fades through the three glass-render panels.
   Pure CSS (opacity only) so it never blocks scrolling or clicks. */
.hero-slider {
  position: relative;
  height: clamp(206px, 27vw, 270px);
  margin-bottom: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top-color: rgba(168, 85, 247, 0.5);
  border-left-color: rgba(6, 182, 212, 0.5);
  background: #0a0d16;
  pointer-events: none;
}
.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlide 13.5s var(--ease-soft) infinite;
}
.hero-slider img:nth-child(2) { animation-delay: -4.5s; }
.hero-slider img:nth-child(3) { animation-delay: -9s; }
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(8, 9, 16, 0.34)),
    linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent 36%, rgba(168, 85, 247, 0.1));
}
@keyframes heroSlide {
  0%   { opacity: 1; }
  27%  { opacity: 1; }
  36%  { opacity: 0; }
  91%  { opacity: 0; }
  100% { opacity: 1; }
}

/* Feature screenshot cards (app pages). */
.shot { margin: 0; padding: 0; overflow: hidden; }
/* Legacy bare image (e.g. the wide SVG mockups). */
.shot > img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
/* Orientation-agnostic screenshot frame: the image is centered on a dark
   "surface", so portrait phone shots and landscape captures both look right —
   portrait gets side gutters, landscape fills the width, cards stay equal
   height within a row of the same orientation. */
.shot-media {
  display: grid;
  place-items: center;
  background: radial-gradient(120% 100% at 50% 0%, #10131f, #0a0d16);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem;
  min-height: 220px;
}
.shot-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 30rem;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.shot figcaption { padding: 1.05rem 1.25rem 1.25rem; }
.shot figcaption h3 { margin-bottom: 0.4rem; }

/* Simple data table (privacy / permissions pages). */
.data-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0.5rem; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--text); font-weight: 800; }
.data-table td { color: var(--muted); }
.data-table td strong { color: var(--text); font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
@media (max-width: 560px) { .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; } .data-table th { padding-bottom: 0; } .data-table td { border-bottom: none; padding-top: 0.2rem; } .data-table tr { border-bottom: 1px solid var(--line); padding: 0.5rem 0; } }

/* Pricing plans: Free vs Pro. */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
.pro-plan { background: linear-gradient(180deg, rgba(40, 224, 169, 0.16), rgba(255, 255, 255, 0.075)); }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
.mini-stats, .metric-grid, .mini-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.mini-stats div, .metric, .mini-form div {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
  border-radius: 18px;
  padding: 0.85rem;
}
/* Purple-top / cyan-left accent on the hero mini-stat tiles, matching the cards. */
.mini-stats div {
  position: relative;
  overflow: hidden;
  border-top-color: rgba(168, 85, 247, 0.72);
  border-left-color: rgba(6, 182, 212, 0.72);
}
.mini-stats div::before, .mini-stats div::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.mini-stats div::before {
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--legacy-purple), var(--legacy-teal), transparent 78%);
  opacity: 0.92;
}
.mini-stats div::after {
  top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(180deg, var(--legacy-teal), var(--legacy-purple), transparent 82%);
  opacity: 0.92;
}
.mini-stats strong, .metric strong, .mini-form strong { display: block; color: var(--text); font-size: 1.08rem; }
.mini-stats small, .metric span, .mini-form span { color: var(--muted); font-size: 0.88rem; }

.section-pad { padding: 3.5rem 0; }
.surface-section { background: rgba(255,255,255,0.028); }

/* Orange gradient hairline between stacked sections: a 1px line that fades
   in from the edges and softly glows, themed to the warm accent. */
main > section + section { position: relative; }
main > section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, var(--max));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    var(--accent-orange) 28%,
    var(--accent-amber) 50%,
    var(--accent-orange) 72%,
    transparent 96%
  );
  filter: drop-shadow(0 0 6px rgba(255, 122, 61, 0.55));
  pointer-events: none;
}
.section-head { margin-bottom: 1.6rem; }
.section-head p { color: var(--muted); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.app-grid, .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.app-card, .feature-card, .content-card { padding: 1.25rem; }
.app-card.featured { background: linear-gradient(180deg, rgba(40,224,169,0.16), rgba(255,255,255,0.075)); }
.status {
  display: inline-flex;
  margin: 0 0 1rem;
  border: 1px solid rgba(40,224,169,0.32);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  color: var(--brand-2);
  font-weight: 900;
  font-size: 0.78rem;
}
.status.muted { color: var(--brand-3); border-color: rgba(248,209,92,0.26); }
.app-type { color: var(--brand-3); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.app-card p, .feature-card p, .content-card p, .callout p { color: var(--muted); }
.callout { padding: 1.35rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.project-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-list .app-card { min-height: 100%; }
.check-list { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.check-list li { margin: 0.45rem 0; }

.phone-panel { padding: 1.1rem; max-width: 430px; margin-left: auto; }
.media-panel { padding: 0.8rem; max-width: 460px; margin-left: auto; }
.media-panel img { display: block; width: 100%; height: auto; border-radius: 16px; }
.phone-screen {
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(transparent 14px, rgba(255,255,255,0.04) 15px),
    linear-gradient(90deg, transparent 14px, rgba(255,255,255,0.04) 15px),
    #0a0f1e;
  background-size: 30px 30px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.route-line {
  position: relative;
  min-height: 140px;
  margin: 1rem 0;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 40%, rgba(40,224,169,0.18), transparent 10rem);
}
.route-line::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 14%;
  top: 52%;
  border-top: 4px dashed rgba(40,224,169,0.72);
  transform: rotate(-12deg);
}
.route-line span {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand-3);
}
.route-line span:nth-child(1) { left: 14%; top: 62%; }
.route-line span:nth-child(2) { left: 36%; top: 48%; background: var(--brand-2); }
.route-line span:nth-child(3) { left: 58%; top: 42%; background: var(--brand); }
.route-line span:nth-child(4) { right: 12%; top: 30%; background: var(--brand-2); }
.metric-grid { grid-template-columns: repeat(2, 1fr); }

.companion-body {
  background: #0a0d16;
  padding: 0.75rem;
}
.companion-shell {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.companion-card, .sponsor-slot { padding: 1rem; box-shadow: none; }
.companion-card h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
.companion-card h2, .sponsor-slot h2 { font-size: 1.35rem; }
.mini-form { grid-template-columns: repeat(2, 1fr); }
.sponsor-slot { border-color: rgba(248,209,92,0.34); background: linear-gradient(180deg, rgba(248,209,92,0.16), rgba(255,255,255,0.07)); }
.sponsor-slot > p:first-child { color: var(--brand-3); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; font-size: 0.76rem; }
.companion-footer { text-align: center; color: var(--muted); font-size: 0.9rem; }

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.16);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}
.footer-grid p { margin: 0.35rem 0 0; color: var(--muted); }
.footer-links, .social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: end; }
.footer-links a:hover, .social-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: 76px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: rgba(8, 9, 16, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav-links.open { display: flex; }
  .hero-grid, .app-grid, .grid-3, .project-list { grid-template-columns: 1fr; }
  .phone-panel, .media-panel { margin: 0; max-width: none; }
  .split-head, .callout, .footer-grid { align-items: start; flex-direction: column; }
  .social-links, .footer-links { justify-content: start; }
  h1 { font-size: clamp(2.6rem, 16vw, 5rem); }
}

@media (max-width: 520px) {
  .container { width: min(100% - 1rem, var(--max)); }
  .hero { padding-top: 3.4rem; }
  .mini-stats, .metric-grid, .mini-form { grid-template-columns: 1fr; }
  .tagline { letter-spacing: 0.1em; }
}


/* Modern motion layer: subtle, content-preserving animations. */
.site-header {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.nav-links a,
.text-link,
.footer-links a,
.social-links a {
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.nav-links a:hover,
.text-link:hover,
.footer-links a:hover,
.social-links a:hover {
  transform: translateY(-1px);
}

.app-card,
.feature-card,
.content-card,
.callout,
.panel,
.companion-card,
.sponsor-slot {
  transition:
    transform 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    background 260ms var(--ease-out);
}

.app-card:hover,
.feature-card:hover,
.content-card:hover,
.panel:hover,
.companion-card:hover,
.sponsor-slot:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    var(--shadow),
    -12px 0 34px -12px rgba(6, 182, 212, 0.28),
    0 12px 40px rgba(168, 85, 247, 0.13);
}

.app-card > *:not(.app-card-visual),
.orbit-card > *:not(.hero-slider) {
  position: relative;
  z-index: 2;
}

.app-card-visual {
  position: relative;
  z-index: 0;
  overflow: hidden;
  height: clamp(142px, 16vw, 190px);
  margin: -0.25rem -0.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top-color: rgba(168, 85, 247, 0.56);
  border-left-color: rgba(6, 182, 212, 0.56);
  border-radius: calc(var(--radius) - 7px);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.app-card-slider {
  display: flex;
  width: 300%;
  height: 100%;
  animation: appImageSlide 15s var(--ease-soft) infinite;
}

.app-card:nth-child(2n) .app-card-slider { animation-delay: -3s; }
.app-card:nth-child(3n) .app-card-slider { animation-delay: -6s; }

.app-card-slider img {
  flex: 0 0 33.333333%;
  width: 33.333333%;
  height: 100%;
  object-fit: cover;
}

.app-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 46%, rgba(8, 9, 16, 0.22)),
    linear-gradient(90deg, rgba(6, 182, 212, 0.12), transparent 34%, rgba(168, 85, 247, 0.12));
}

@keyframes appImageSlide {
  0%, 26% { transform: translateX(0); }
  34%, 60% { transform: translateX(-33.333333%); }
  68%, 94% { transform: translateX(-66.666666%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .app-card-slider {
    transform: none !important;
  }
  /* Reduced motion: stop the cross-fade, just show the first panel. */
  .hero-slider img { animation: none !important; opacity: 0; }
  .hero-slider img:first-child { opacity: 1; }
}
