/* Tāl Chakra · Illuminated Living web theme
 * Adapted from the app's design language: dark mode, serif display,
 * gold diamonds, rangoli dividers, breathing ornaments.
 */

:root {
  /* Color palette (mirrors Taal-Chakra_XCode/Utilities/ColorTheme.swift) */
  --bg: #000000;
  --surface: #0A0806;
  --surface-raised: #14100B;
  --text: #E8D9B8;
  --text-strong: #FFF4D6;
  --text-dim: #8A7B5E;
  --text-faint: #5A4F3A;

  --gold: #FFD700;        /* sam, primary accent */
  --gold-dim: #B89B1F;
  --amber: #FF9500;       /* bass bols */
  --cyan: #00D4FF;        /* treble bols */
  --pink: #FF2D92;        /* compound / tihai */
  --green: #00E5A0;       /* subdivision */
  --rose: #FF6B8A;
  --lavender: #B49CFF;

  --border-faint: rgba(255, 215, 0, 0.08);
  --border-soft: rgba(255, 215, 0, 0.18);
  --border-bright: rgba(255, 215, 0, 0.35);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --max-width: 1040px;

  --font-display: ui-serif, "Iowan Old Style", "Apple Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient illuminated background: very subtle pulsing gold glow at top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 215, 0, 0.045), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(255, 149, 0, 0.02), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 212, 255, 0.015), transparent 50%);
  animation: ambient 9s ease-in-out infinite;
}

/* Faint woven texture layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.015) 0.5px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

@keyframes ambient {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1;    }
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

@keyframes breathe-soft {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.8;  }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.breathe { animation: breathe 3.5s ease-in-out infinite; }
.breathe-soft { animation: breathe-soft 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .breathe, .breathe-soft, body::before {
    animation: none;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ---------- Top bar ---------- */

.topbar {
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.brand-name {
  color: var(--text-strong);
}

.brand-name .accent {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease-out;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease-out;
}

.nav a:hover { color: var(--gold); }
.nav a:hover::after { transform: scaleX(1); }

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

.hero {
  padding: var(--space-9) 0 var(--space-8);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-text { position: relative; }

.hero-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-6);
  display: inline-block;
}

.hero-icon {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  background: #0A0806;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.35),
    0 0 40px rgba(255, 215, 0, 0.18),
    0 0 80px rgba(255, 149, 0, 0.12);
  z-index: 1;
}

.hero-icon-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 0.5px dashed rgba(255, 215, 0, 0.25);
  animation: spin-slow 60s linear infinite;
}

.hero-icon-halo::before,
.hero-icon-halo::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.hero-icon-halo::before { top: -3px; left: calc(50% - 3px); }
.hero-icon-halo::after  { bottom: -3px; left: calc(50% - 3px); }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-tag::before,
.hero-tag::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.75;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  font-weight: 300;
  margin-bottom: var(--space-5);
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.hero h1.wordmark {
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 300;
  margin-bottom: var(--space-4);
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.15);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.75;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 300;
  font-style: italic;
  max-width: 520px;
  margin-bottom: var(--space-5);
}

.hero-text p.hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

.appstore-badge {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  opacity: 0.92;
}

.appstore-badge img {
  display: block;
  width: 180px;
  height: auto;
  border-radius: 6px;
}

.appstore-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.appstore-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.appstore-caption::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* Hero screenshot */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.hero-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.14))
          drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

.hero-visual-frame img,
.screen-frame img {
  cursor: zoom-in;
}

/* ---------- Rangoli divider ---------- */

.rangoli {
  padding: var(--space-8) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.rangoli-line {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.35), transparent);
}

.rangoli-dot {
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

.rangoli-diamond {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
  animation: breathe 3.5s ease-in-out infinite;
}

.rangoli-diamond-sm {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* ---------- Section headers ---------- */

section {
  scroll-margin-top: var(--space-7);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  color: var(--text-strong);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 680px;
}

.section-title .accent {
  color: var(--gold);
  font-style: italic;
}

.section-lead {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 300;
  max-width: 680px;
  margin-bottom: var(--space-6);
}

/* ---------- About paragraph ---------- */

.about {
  padding: var(--space-6) 0 var(--space-7);
  text-align: center;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.55;
  color: var(--text-strong);
  font-style: italic;
  font-weight: 300;
  max-width: 760px;
  margin: 0 auto var(--space-5);
  letter-spacing: -0.01em;
}

.about-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Features grid (halo cards) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding: var(--space-5) 0 var(--space-7);
}

.halo-card {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.035) 0%,
    rgba(255, 215, 0, 0.01) 100%
  );
  border: 0.5px solid rgba(255, 215, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease-out, border-color 0.3s ease-out;
}

.halo-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at center top, var(--card-accent, rgba(255,215,0,0.12)), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.halo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  border: 0.5px dashed rgba(255, 215, 0, 0.08);
  margin: 6px;
  pointer-events: none;
}

.halo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.3);
}

.halo-card--gold   { --card-accent: rgba(255, 215, 0, 0.15); }
.halo-card--cyan   { --card-accent: rgba(0, 212, 255, 0.14); }
.halo-card--green  { --card-accent: rgba(0, 229, 160, 0.14); }
.halo-card--pink   { --card-accent: rgba(255, 45, 146, 0.14); }
.halo-card--amber  { --card-accent: rgba(255, 149, 0, 0.15); }

.halo-card--gold   .card-diamond { background: var(--gold); box-shadow: 0 0 14px rgba(255, 215, 0, 0.7); }
.halo-card--cyan   .card-diamond { background: var(--cyan); box-shadow: 0 0 14px rgba(0, 212, 255, 0.6); }
.halo-card--green  .card-diamond { background: var(--green); box-shadow: 0 0 14px rgba(0, 229, 160, 0.6); }
.halo-card--pink   .card-diamond { background: var(--pink); box-shadow: 0 0 14px rgba(255, 45, 146, 0.6); }
.halo-card--amber  .card-diamond { background: var(--amber); box-shadow: 0 0 14px rgba(255, 149, 0, 0.6); }

.card-diamond {
  position: relative;
  width: 14px;
  height: 14px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-bottom: var(--space-4);
  z-index: 1;
}

.card-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  z-index: 1;
}

.card-body {
  position: relative;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
  z-index: 1;
}

/* ---------- Screens (screenshot strip) ---------- */

.screens {
  padding: var(--space-5) 0 var(--space-8);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6) var(--space-5);
}

.screen {
  text-align: center;
}

.screen-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
}

.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screen:hover .screen-frame {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.3),
    0 18px 60px rgba(255, 215, 0, 0.1),
    0 18px 60px rgba(0, 0, 0, 0.6);
}

.screen-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.screen-caption::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Support / contact form ---------- */

.support {
  padding: var(--space-6) 0 var(--space-8);
  max-width: 640px;
}

.support-intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.support-intro a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px dashed rgba(255, 215, 0, 0.4);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.form-row label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
}

.form-row input,
.form-row textarea {
  background: rgba(255, 215, 0, 0.02);
  border: none;
  border-bottom: 0.5px solid rgba(255, 215, 0, 0.2);
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 17px;
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
  resize: vertical;
  border-radius: 0;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-faint);
  font-style: italic;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
  background: rgba(255, 215, 0, 0.04);
}

.form-row textarea { min-height: 140px; line-height: 1.6; }

.submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: transparent;
  border: 0.5px solid var(--gold);
  color: var(--gold);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease-out;
  margin-top: var(--space-3);
}

.submit-btn::before,
.submit-btn::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s ease-out;
}

.submit-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.08);
  color: var(--text-strong);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
}

.submit-btn:hover:not(:disabled)::before { transform: rotate(45deg) scale(1.3); }
.submit-btn:hover:not(:disabled)::after  { transform: rotate(45deg) scale(1.3); }

.submit-btn:disabled {
  border-color: var(--text-faint);
  color: var(--text-faint);
  cursor: not-allowed;
}

.submit-btn:disabled::before,
.submit-btn:disabled::after { background: var(--text-faint); }

.form-message {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 18px;
  margin-top: var(--space-2);
}

.form-message.success { color: var(--green); }
.form-message.error   { color: var(--pink); }

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

.footer {
  padding: var(--space-7) 0 var(--space-6);
  border-top: 0.5px solid var(--border-faint);
  margin-top: var(--space-7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.footer-left {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-left::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  gap: var(--space-5);
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.footer a:hover { color: var(--gold); }

/* ---------- Legal pages ---------- */

.legal {
  padding: var(--space-7) 0 var(--space-8);
  max-width: 760px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 56px);
  color: var(--text-strong);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.legal h1 .accent {
  color: var(--gold);
  font-style: italic;
}

.legal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.legal-kicker::before,
.legal-kicker::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-strong);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-5);
  border-top: 0.5px solid var(--border-faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.legal h2::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
}

.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: var(--space-5); }

.legal h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-weight: 400;
}

.legal p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: var(--space-4);
  max-width: 680px;
}

.legal p strong {
  color: var(--text-strong);
  font-weight: 500;
}

.legal a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px dashed rgba(255, 215, 0, 0.35);
}

.legal a:hover { border-bottom-style: solid; }

.legal address {
  font-style: normal;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.6;
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--gold);
  background: rgba(255, 215, 0, 0.03);
  margin-bottom: var(--space-4);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 215, 0, 0.08), transparent 60%);
  pointer-events: none;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 80px rgba(255, 215, 0, 0.2))
          drop-shadow(0 30px 80px rgba(0, 0, 0, 0.8));
  transform: scale(0.96);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.25, 1);
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 3;
  background: transparent;
  border: 0.5px solid rgba(255, 215, 0, 0.35);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: all 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--gold);
  color: var(--text-strong);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.25);
}

.lightbox-close {
  top: var(--space-5);
  right: var(--space-5);
}

.lightbox-prev {
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 3;
}

.lightbox-caption::before,
.lightbox-caption::after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
}

@media (max-width: 620px) {
  .lightbox-prev, .lightbox-next { display: none; }
  .lightbox-close { top: var(--space-3); right: var(--space-3); padding: var(--space-2) var(--space-3); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-7) 0 var(--space-6);
  }

  .hero-visual-frame { max-width: 280px; }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .nav { gap: var(--space-4); font-size: 10px; }

  .hero { padding: var(--space-6) 0 var(--space-5); }
  .hero h1 { font-size: 40px; }
  .hero h1.wordmark { font-size: 60px; letter-spacing: -0.03em; }
  .hero-subtitle { font-size: 11px; }
  .hero-tagline { font-size: 18px; }
  .hero-icon-wrap, .hero-icon { width: 80px; height: 80px; }

  .features { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; gap: var(--space-5); }

  .footer { flex-direction: column; text-align: center; }
  .footer-nav { gap: var(--space-4); }

  .rangoli-line { max-width: 60px; }
}
