/* ============================================================
   Velatrix App Studio — shared stylesheet
   Edit the tokens below to re-theme the whole site in one place.
   ============================================================ */

:root {
  /* Brand gradient — aurora: indigo → violet → cyan */
  --g1: #6366f1;
  --g2: #a855f7;
  --g3: #22d3ee;

  --bg: #0b0d14;
  --bg-elev: #11141f;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(167, 139, 250, 0.45);

  --text: #eef0f6;
  --text-soft: #a7adbe;
  --text-faint: #6b7183;

  --radius-lg: 22px;
  --radius-md: 14px;
  --maxw: 1080px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.crumbs {
  padding: 16px 24px 0;
  max-width: var(--maxw);
  margin: 0 auto;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--text-faint);
}
.crumbs a {
  color: var(--text-soft);
  text-decoration: none;
}
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--g3);
  outline-offset: 3px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Ambient background glow ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% -6%,  rgba(99, 102, 241, 0.28), transparent 65%),
    radial-gradient(700px 480px at 88% -10%, rgba(168, 85, 247, 0.22), transparent 65%),
    radial-gradient(900px 600px at 50% 110%, rgba(34, 211, 238, 0.10), transparent 60%);
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: linear-gradient(100deg, var(--g1), var(--g2) 55%, var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(11, 13, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 26px;
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.45);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--g1), var(--g2) 60%, var(--g3));
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

nav.links {
  display: flex;
  gap: 26px;
}

nav.links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

nav.links a:hover,
nav.links a.active { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 108px 0 84px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero p.sub {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--g1), var(--g2));
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139, 92, 246, 0.5); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: var(--card);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ---------- Section headings ---------- */
section { padding: 56px 0; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-head p { color: var(--text-soft); max-width: 560px; margin: 0 auto; }

/* ---------- App grid ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.app-card {
  position: relative;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.app-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* per-app icon gradients — assign class icon-a/b/c/d on the .app-icon */
.icon-a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.icon-b { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.icon-c { background: linear-gradient(135deg, #f43f5e, #fb923c); }
.icon-d { background: linear-gradient(135deg, #10b981, #34d399); }

/* real app-icon image (PNG from the app itself) */
.app-icon-img {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

/* per-app accent — FitScan AI (sunrise orange) */
.app-card.fitscan { border-color: rgba(249, 115, 22, 0.35); }
.app-card.fitscan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, #ea580c, #fb923c 60%, #fed7aa);
}
.app-card.fitscan:hover {
  border-color: rgba(251, 146, 60, 0.72);
  box-shadow: 0 18px 44px rgba(234, 88, 12, 0.22);
}

/* per-app accent — GardenAhead (moss + terracotta) */
.app-card.gardenahead { border-color: rgba(169, 80, 43, 0.4); }
.app-card.gardenahead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, #3D5A3E, #A9502B 60%, #C96A44);
}
.app-card.gardenahead:hover {
  border-color: rgba(201, 106, 68, 0.72);
  box-shadow: 0 18px 44px rgba(61, 90, 62, 0.22);
}
.app-card.gardenahead .app-badge {
  color: #F6F3EC;
  background: linear-gradient(90deg, #3D5A3E, #A9502B);
}


.app-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #431407;
  background: linear-gradient(90deg, #fb923c, #fed7aa);
  padding: 4px 10px;
  border-radius: 999px;
}

/* "coming soon" placeholder tile */
.app-card.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  color: var(--text-faint);
  min-height: 220px;
}
.app-card.soon .soon-mark { font-size: 30px; margin-bottom: 10px; opacity: 0.7; }
.app-card.soon:hover { transform: none; border-color: var(--card-border); box-shadow: none; }

.app-card h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.app-card .tagline { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 20px; min-height: 3.1em; }

.app-links { display: flex; gap: 16px; flex-wrap: wrap; }
.app-links a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #a5b4fc;
  transition: color 0.18s ease;
}
.app-links a:hover { color: #c7d2fe; }
.app-link-muted {
  color: var(--text-faint);
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-disabled {
  cursor: default;
  opacity: 0.78;
}

/* ---------- Legal / prose pages ---------- */
.page-hero { padding: 84px 0 30px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.page-hero .meta { color: var(--text-faint); font-size: 0.92rem; }

.prose {
  max-width: 760px;
  padding-bottom: 80px;
}
.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.prose h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--g1), var(--g2));
}
.prose p, .prose li { color: var(--text-soft); font-size: 1rem; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: #a5b4fc; }
.prose a.btn {
  margin-top: 12px;
  color: #fff;
}

/* ---------- Contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 36px 0 60px;
}

.contact-card {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--card-border-hover); }
.contact-card .ico { font-size: 30px; margin-bottom: 12px; }
.contact-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.contact-card p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 14px; }

/* ---------- Per-app support (email icon) ---------- */
.support-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
}
.support-mail {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.support-mail:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(34, 197, 94, 0.5); }
.support-mail svg { width: 40px; height: 40px; display: block; }
.support-box p { color: var(--text-soft); margin-bottom: 22px; }
.support-box .hint { font-size: 0.86rem; color: var(--text-faint); margin-top: 16px; margin-bottom: 0; }

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--text-faint); font-size: 1.2rem; transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--text-soft); font-size: 0.94rem; padding-top: 12px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 44px 0 52px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-soft); text-decoration: none; font-size: 0.9rem; }
footer a:hover { color: var(--text); }
footer .copy { color: var(--text-faint); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  nav.links { gap: 16px; }
  nav.links a { font-size: 0.85rem; }
  .hero { padding: 76px 0 60px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
