:root {
  color-scheme: dark;
  --bg: #070e0c;
  --surface: #0f1c17;
  --surface-alt: #152620;
  --surface-hover: #1b332a;
  --surface-card: #0d1814;
  --line: #213830;
  --line-light: #2d4c42;
  --text: #f3f8f5;
  --muted: #a4bbb0;
  --muted-dark: #6e867b;
  --accent: #9ef8ad;
  --accent-rgb: 158, 248, 173;
  --accent-dark: #5ee475;
  --accent-glow: rgba(158, 248, 173, 0.2);
  --purple-accent: #a78bfa;
  --danger: #ff6b6b;
  --warning: #ffb84d;
  --info: #64b5f6;
  --wrap: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: .22em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Page Container Wrap (Constrained & Centered) */
.wrap {
  width: min(var(--wrap), calc(100% - clamp(32px, 5vw, 64px)));
  max-width: var(--wrap);
  margin-inline: auto;
  position: relative;
  box-sizing: border-box;
}

/* Guard: Prevent any combined classes from breaking .wrap */
.wrap.app-hero,
.wrap.bento-section,
.wrap.page,
main.wrap,
section.wrap {
  width: min(var(--wrap), calc(100% - clamp(32px, 5vw, 64px))) !important;
  max-width: var(--wrap) !important;
  margin-inline: auto !important;
}

.skip {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: .7rem 1.2rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: translateY(0); }

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.brand-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(158, 248, 173, 0.12);
  color: var(--accent);
  border: 1px solid rgba(158, 248, 173, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 550;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  background: var(--surface);
}

.nav a[aria-current="page"],
.nav a.active {
  color: var(--accent);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-weight: 650;
}

/* Support Button as distinct last tab in navbar */
.nav a.nav-support-btn {
  background: var(--surface-alt);
  color: var(--accent);
  border: 1px solid rgba(158, 248, 173, 0.4);
  font-weight: 700;
  padding: 0.48rem 1.1rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}
.nav a.nav-support-btn:hover {
  background: var(--accent);
  color: #071710;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(158, 248, 173, 0.4);
  transform: translateY(-1px);
}
.nav a.nav-support-btn[aria-current="page"] {
  background: var(--accent);
  color: #071710;
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(158, 248, 173, 0.3);
}

/* Nav toggle button for mobile */
.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle:hover { border-color: var(--accent); }
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================================
   APP LANDING HERO SECTION (HOME PAGE)
   ==================================================================== */
.app-hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero-glow-backdrop {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 90vw);
  height: 480px;
  background: radial-gradient(circle at 50% 40%, rgba(158, 248, 173, 0.16) 0%, rgba(21, 38, 32, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(158, 248, 173, 0.08);
  border: 1px solid rgba(158, 248, 173, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  box-shadow: 0 0 20px rgba(158, 248, 173, 0.1);
}
.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.app-hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0 0 1.3rem;
  font-weight: 820;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

/* Play Store Download Badge Button */
.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #0f241c;
  color: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.play-store-btn:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(158, 248, 173, 0.18);
  color: var(--accent);
}
.play-store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.play-btn-text { text-align: left; }
.play-btn-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: block; }
.play-btn-title { font-size: 1.05rem; font-weight: 750; color: #fff; line-height: 1.1; }

.hero-stats-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ====================================================================
   UNCROPPED PHONE MOCKUPS (NO CUTS!)
   ==================================================================== */
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Real smartphone container with EXACT natural aspect ratio (518 / 1024) */
.phone-mockup-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 518 / 1024;
  background: #070d0b;
  border-radius: 40px;
  border: 5px solid #1c2e27;
  box-shadow:
    0 0 0 2px #0a130f,
    0 24px 50px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(158, 248, 173, 0.16);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.phone-mockup-frame:hover {
  transform: translateY(-5px);
}
/* Ensure the image is NEVER cut off */
.phone-mockup-frame img,
.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070d0b;
  display: block;
}

/* Floating interactive badges (Restricted to safe boundaries) */
.floating-badge {
  position: absolute;
  background: rgba(15, 28, 23, 0.94);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}
.floating-badge-top {
  top: 12%;
  left: 0;
  color: var(--accent);
}
.floating-badge-bottom {
  bottom: 8%;
  right: 0;
  animation-delay: -2s;
  color: #fff;
}
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ====================================================================
   SHOWCASE SECTION: Real 3D App Screens (Full Uncut View)
   ==================================================================== */
.app-showcase-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, #0d1e18 0%, transparent 60%);
  width: 100%;
}

.section-badge-center {
  text-align: center;
  margin-bottom: 3.2rem;
}
.section-badge-center h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  letter-spacing: -.035em;
  margin-top: 0.5rem;
}
.section-badge-center p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0.8rem auto 0;
}

.mobile-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2.5rem);
  align-items: stretch;
  width: 100%;
}

.showcase-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(158, 248, 173, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(158, 248, 173, 0.1);
}

.showcase-phone-container {
  width: 100%;
  aspect-ratio: 518 / 1024;
  border-radius: 26px;
  border: 4px solid #1c2e27;
  overflow: hidden;
  background: #070d0b;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.showcase-phone-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070d0b;
  display: block;
}

.showcase-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.showcase-card-body h3 {
  font-size: 1.3rem;
  margin: 0.3rem 0 0.5rem;
  color: #fff;
}
.showcase-prompt-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.showcase-spec-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.spec-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--accent);
  border: 1px solid rgba(158, 248, 173, 0.2);
}

/* In-App 3D Inspector Controls Explainer */
.inspector-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.2rem);
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  width: 100%;
}
.inspector-controls-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.inspector-item {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}
.inspector-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}
.inspector-item h4 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: #fff;
}
.inspector-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ====================================================================
   BENTO FEATURE GRID
   ==================================================================== */
.bento-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
  width: 100%;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.bento-card:hover {
  border-color: rgba(158, 248, 173, 0.35);
  transform: translateY(-3px);
}
.bento-card-wide { grid-column: span 2; }
.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(158, 248, 173, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.bento-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}
.bento-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Compatibility / Slicer Marquee */
.compat-section {
  padding-block: 3.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #050a08;
  text-align: center;
  width: 100%;
}
.compat-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.compat-badges {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  align-items: center;
}
.compat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
}
.compat-tag:hover {
  color: var(--accent);
  border-color: rgba(158, 248, 173, 0.4);
}

/* Download CTA Banner */
.download-cta-box {
  background: linear-gradient(135deg, #0d2119 0%, #081410 100%);
  border: 1px solid rgba(158, 248, 173, 0.3);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4.2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(158, 248, 173, 0.1);
  margin-block: clamp(3rem, 6vw, 5.5rem);
  width: 100%;
}
.download-cta-box h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -.035em;
  margin: 0.5rem 0 1rem;
}
.download-cta-box p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

/* ====================================================================
   BALANCED ABOUT PAGE LAYOUT (FULL-WIDTH & UNCUT)
   ==================================================================== */
.about-hero-block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.about-hero-block h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0.5rem 0 1.2rem;
}
.about-hero-block .lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto;
}

/* 3-Column Phone Mockup Gallery on About Page (Uncut 100% visible) */
.about-phones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  width: 100%;
}
.about-phone-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.about-phone-card:hover {
  transform: translateY(-5px);
  border-color: rgba(158, 248, 173, 0.4);
}
.about-phone-mockup {
  width: 100%;
  aspect-ratio: 518 / 1024;
  border-radius: 24px;
  border: 4px solid #1c2e27;
  overflow: hidden;
  background: #070d0b;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.about-phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #070d0b;
  display: block;
}
.about-phone-card h4 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  color: #fff;
}
.about-phone-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* 2-Column Split: Mission Story & Tech Specs */
.about-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  width: 100%;
}
.about-story h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  margin-top: 0;
  margin-bottom: 1rem;
}
.about-story p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

/* Tech Specs Table Card */
.spec-sheet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.spec-sheet-card h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-size: 1.25rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--muted); }
.spec-val { color: var(--text); font-weight: 650; }

/* ====================================================================
   DOCUMENTATION & LEGAL 2-COLUMN LAYOUT (PRIVACY & TERMS)
   No right-side void! Symmetrical and balanced on all monitors.
   ==================================================================== */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  width: 100%;
}

.legal-main {
  width: 100%;
  min-width: 0;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.8rem;
  margin-bottom: 2.2rem;
}
.legal-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0.4rem 0 1rem;
}
.legal-meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin-bottom: 1.6rem;
  transition: border-color 0.2s ease;
}
.legal-card:hover {
  border-color: rgba(158, 248, 173, 0.3);
}
.legal-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.28rem;
  color: var(--text);
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}
.legal-card ul {
  padding-left: 1.4rem;
  margin-block: 0.8rem;
}
.legal-card li { margin-bottom: 0.4rem; }

/* Sticky Sidebar on Legal Pages */
.legal-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.sidebar-box h4 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-toc {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sidebar-toc a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.sidebar-toc a:hover {
  color: var(--accent);
  background: var(--surface-alt);
  transform: translateX(3px);
}

/* ====================================================================
   SUPPORT PAGE BALANCED 2-COLUMN LAYOUT
   ==================================================================== */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  width: 100%;
}

.support-info-cards {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
}
.info-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.support-form {
  display: grid;
  gap: .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.form-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}
.form-header h3 { margin: 0 0 0.3rem; }
.form-header p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.support-form label {
  font-size: .88rem;
  font-weight: 650;
  color: #dbe7df;
  margin-top: 0.3rem;
}

.support-form input,
.support-form textarea,
.support-form select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem;
  font: inherit;
  font-size: .95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-form input:focus,
.support-form textarea:focus,
.support-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.support-form textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.db-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.db-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
}
.db-pill.connected .db-pill-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.db-pill.disconnected .db-pill-dot { background: var(--danger); }

/* Common Buttons & Badges */
.button {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}

.button-primary {
  background: var(--accent);
  color: #071710;
}
.button-primary:hover {
  background: #bbf8c6;
  box-shadow: 0 0 24px rgba(158, 248, 173, 0.45);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: #0b1915;
}
.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
  color: var(--accent);
}

.button-sm {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  font-size: 0.84rem;
}

.button-danger {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff9e9e;
}
.button-danger:hover {
  background: rgba(255, 107, 107, 0.3);
  border-color: var(--danger);
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.badge-success {
  background: rgba(158, 248, 173, 0.15);
  color: var(--accent);
  border: 1px solid rgba(158, 248, 173, 0.3);
}
.badge-success .badge-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

.badge-warning {
  background: rgba(255, 184, 77, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 184, 77, 0.3);
}
.badge-warning .badge-dot { background: var(--warning); }

.badge-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.badge-danger .badge-dot { background: var(--danger); }

.badge-info {
  background: rgba(100, 181, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(100, 181, 246, 0.3);
}
.badge-info .badge-dot { background: var(--info); }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.alert-success {
  background: rgba(158, 248, 173, 0.12);
  border: 1px solid rgba(158, 248, 173, 0.35);
  color: #bbf8c6;
}
.alert-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
}
.alert-info {
  background: rgba(100, 181, 246, 0.12);
  border: 1px solid rgba(100, 181, 246, 0.35);
  color: #b3d9ff;
}

.page,
.page-main {
  min-height: 72vh;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  width: 100%;
}

.page-inner {
  width: min(var(--wrap), calc(100% - clamp(32px, 5vw, 64px)));
  max-width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Admin Dashboard */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block: 2rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  width: 100%;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}
.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.stat-box .stat-value {
  font-size: 1.8rem;
  font-weight: 780;
  color: var(--accent);
}
.admin-grid { display: grid; gap: 1rem; width: 100%; }
.submission-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.2s ease;
}
.submission-item:hover { border-color: rgba(158, 248, 173, 0.4); }
.submission-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.submission-sender h4 { margin: 0; font-size: 1.15rem; }
.submission-sender a { color: var(--accent); font-size: 0.9rem; text-decoration: none; }
.submission-meta { color: var(--muted); font-size: 0.82rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.submission-content {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-block: 0.8rem;
  font-size: 0.95rem;
  white-space: pre-wrap;
  color: var(--text);
}
.submission-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ====================================================================
   SUCCESS MODAL POPUP (MESSAGE SENT POPUP)
   ==================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 8, 6, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #0d1b15;
  border: 1px solid rgba(158, 248, 173, 0.35);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(158, 248, 173, 0.15);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(158, 248, 173, 0.12);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  box-shadow: 0 0 24px rgba(158, 248, 173, 0.35);
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 0.8rem;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 0 1.2rem;
}
.modal-desc strong {
  color: #fff;
}

.modal-meta {
  background: rgba(21, 38, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.6rem;
}

.modal-ticket-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.modal-meta code {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: monospace;
}

.modal-btn {
  width: 100%;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ====================================================================
   HELP CENTER & FAQ PAGE
   ==================================================================== */
.help-hero-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.help-hero-block h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 0.5rem 0 1.2rem;
}
.help-hero-block .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--muted);
  line-height: 1.7;
}

.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  width: 100%;
}
.help-cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.help-cat-card:hover {
  border-color: rgba(158, 248, 173, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.help-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.help-cat-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: #fff;
}
.help-cat-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  flex-grow: 1;
}
.help-cat-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.help-cat-link:hover { text-decoration: underline; }

.help-faq-wrap {
  max-width: 960px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  width: 100%;
}
.help-faq-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.help-faq-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0.4rem 0 0.8rem;
}
.help-faq-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.faq-list {
  display: grid;
  gap: 1.2rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  transition: border-color 0.25s ease;
}
.faq-item:hover {
  border-color: rgba(158, 248, 173, 0.35);
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}
.faq-question svg {
  color: var(--accent);
  flex-shrink: 0;
}
.faq-answer {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  padding-left: 2rem;
}
.faq-answer strong {
  color: var(--text);
}

.help-cta-banner {
  background: linear-gradient(135deg, #0f1c17 0%, #152922 100%);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.help-cta-banner h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.8rem;
}
.help-cta-banner p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.8rem;
  color: var(--muted);
  background: #040806;
  width: 100%;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-brand p { margin: 0; }
.footer-links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
}

/* ====================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ==================================================================== */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .about-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead { margin-inline: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats-row { justify-content: center; }
  .hero-phone-wrap { margin-top: 2rem; }
  .floating-badge { display: none; }
  
  .mobile-showcase-grid,
  .about-phones-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .help-categories-grid {
    grid-template-columns: 1fr;
  }
  .faq-answer {
    padding-left: 0;
  }
  .inspector-strip { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-wide { grid-column: span 1; }
  .support-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #08120f;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.2rem;
    gap: 0.4rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .nav a.nav-support-btn {
    margin-left: 0;
    margin-top: 0.4rem;
    text-align: center;
    justify-content: center;
  }
  .header-inner { min-height: 66px; }
  .inspector-controls-list { grid-template-columns: 1fr; }
}
