/* Fonts loaded via <link> in HTML for performance */

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

:root {
  --teal: #00897b;
  --dark: #0a0f0f;
  --surface: #111818;
  --surface2: #1a2222;
  --accent: #4aeacc;
  --accent2: #ff7a65;
  --text: #e8eeee;
  --text-dim: #7a9090;
}

html {
  overflow-x: hidden;
}
body {
  font-family: "Outfit", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ============================================================
   SHARED: BUTTONS
   ============================================================ */

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-accent:hover {
  background: #72f5d8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 234, 204, 0.3);
  text-decoration: none;
}
.btn-dim {
  background: var(--surface2);
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}
.btn-dim:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   SHARED: CARDS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid rgba(74, 234, 204, 0.2);
  border-radius: 16px;
  transition: all 0.3s;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent);
  margin-top: -4px;
  margin-bottom: 4px;
}

/* ============================================================
   SHARED: INLINE CODE
   ============================================================ */

.tl-item code,
.callout code,
.faq-section details code,
.legal code {
  background: var(--surface2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ============================================================
   SHARED: SECTION HEADER / TAG
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.tag {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================================
   SHARED: PAGE HERO
   ============================================================ */

.page-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* ============================================================
   NAV
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 15, 15, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
.nav-brand:hover {
  text-decoration: none;
}
.nav-brand img {
  width: 28px;
  height: 28px;
}
.nav-brand .brand-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}
.nav-cta {
  background: var(--accent);
  color: var(--dark);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}
.nav-cta:hover {
  background: #72f5d8;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent);
  text-decoration: none;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.footer-heart svg {
  width: 14px;
  height: 14px;
  fill: var(--accent2);
  animation: heartbeat 1.5s ease-in-out infinite;
}
.footer-heart a {
  color: var(--accent2);
  transition: color 0.2s;
}
.footer-heart a:hover {
  color: #ff9a89;
}
.trademark {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1rem;
}

/* ============================================================
   HOME: HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 7rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}
.hero-divider {
  border: none;
  width: 60%;
  max-width: 500px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(74, 234, 204, 0.3),
    transparent
  );
  margin: 2.5rem auto;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float 15s ease-in-out infinite;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--teal);
  top: 5%;
  left: -10%;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent2);
  bottom: 10%;
  right: -5%;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 30%;
  right: 20%;
  opacity: 0.1;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-badge img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   HOME: HERO STATS
   ============================================================ */

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 3rem;
}
.stat {
  text-align: center;
}
.stat .val {
  font-family: "Space Mono", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* ============================================================
   HOME: BENTO FEATURES
   ============================================================ */

.bento {
  padding: 5rem 2rem;
}
.bento-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.bento-card {
  padding: 2rem;
  position: relative;
}
.bento-card.wide {
  grid-column: span 2;
}
.bento-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.bento-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ============================================================
   HOME: SHOWCASE (SCREENSHOTS)
   ============================================================ */

.showcase {
  padding: 5rem 2rem;
  background: var(--surface);
}
.showcase-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.showcase-tabs button {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dim);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
  font-family: inherit;
}
.showcase-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.showcase-tabs button.active {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.showcase-window {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}
.window-bar {
  height: 40px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 6px;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.r {
  background: #ff5f57;
}
.window-dot.y {
  background: #febc2e;
}
.window-dot.g {
  background: #28c840;
}
.showcase-window picture {
  display: contents;
}
.showcase-window img {
  width: 100%;
  display: block;
}

/* ============================================================
   HOME: GETTING STARTED (TIMELINE)
   ============================================================ */

.how {
  padding: 5rem 2rem;
}
.how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.how-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.how-subtitle-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.tl-item {
  position: relative;
  margin-bottom: 2rem;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--dark);
  left: -2.5rem;
  transform: translateX(-50%);
  margin-left: 6px;
}
.tl-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.tl-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ============================================================
   HOME: CALLOUT
   ============================================================ */

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(255, 107, 101, 0.2);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.callout strong {
  color: var(--accent2);
}
.callout-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
.callout-do,
.callout-dont {
  border-radius: 8px;
  overflow: hidden;
}
.callout-label {
  display: block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.callout-label.do {
  background: rgba(74, 234, 204, 0.12);
  color: var(--accent);
}
.callout-label.dont {
  background: rgba(255, 107, 101, 0.12);
  color: var(--accent2);
}
.code-block {
  background: var(--dark);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-dim);
  overflow-x: auto;
  padding: 0.5rem 0;
}
.code-line {
  padding: 0 0.75rem;
  white-space: pre;
}
.code-line.hl-ok {
  background: rgba(74, 234, 204, 0.1);
  color: var(--accent);
}
.code-line.hl-bad {
  background: rgba(255, 107, 101, 0.1);
  color: var(--accent2);
}

/* ============================================================
   HOME: DIAGRAM TYPES
   ============================================================ */

.diagrams {
  padding: 5rem 2rem;
  background: var(--surface);
}
.diagrams-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.diagrams h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.diagram-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.diagram-card {
  background: var(--dark);
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.diagram-card,
.diagram-card:hover {
  text-decoration: none;
}
.diagram-card:hover {
  margin-top: -5px;
  margin-bottom: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.diagram-card picture {
  display: contents;
}
.diagram-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
}
.diagram-card span {
  display: block;
  padding: 0.65rem 0.75rem;
  font-family: "Space Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  order: -1;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.chip-cloud a,
.chip-cloud span {
  font-family: "Space Mono", monospace;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  transition: all 0.25s;
  text-decoration: none;
}
.chip-cloud a:hover,
.chip-cloud span:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.diagrams-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.diagrams-ref {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
.support-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.support-card p {
  flex: 1;
}
.support-card .card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: rgba(74, 234, 204, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-card .card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.support-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.support-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.support-card .btn-sm {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s;
}
.support-card .btn-sm:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  text-decoration: none;
}

.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.contact-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-section > p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-embed {
  background: #f0ebf8;
  border-radius: 16px;
  overflow: hidden;
}
.form-embed iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
  background: #f0ebf8;
}

.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}
.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.faq-section details {
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s;
}
.faq-section details:hover {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.faq-section details[open] {
  border-color: var(--accent);
}
.faq-section details summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s;
}
.faq-section details summary::-webkit-details-marker {
  display: none;
}
.faq-section details summary::before {
  content: "+";
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}
.faq-section details[open] summary::before {
  content: "−";
}
.faq-section details[open] summary {
  color: var(--accent);
}
.faq-section details div,
.faq-section details p,
.faq-section details ul,
.faq-section details ol {
  padding: 0 1.5rem 1rem 3rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.faq-section details ul,
.faq-section details ol {
  padding-left: 4.5rem;
}
.faq-section details li {
  margin-bottom: 0.3rem;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gallery-item-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  order: 0;
}
.gallery-item-header h3 {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}
.gallery-item-header .gallery-links {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.gallery-item-header .gallery-links a,
.gallery-item-header .gallery-links button {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.gallery-item-header .gallery-links a:hover,
.gallery-item-header .gallery-links button:hover {
  opacity: 1;
  text-decoration: none;
}
.gallery-item-render {
  background: #fff;
  min-height: 180px;
  padding: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  order: 2;
}
.gallery-item-render svg {
  max-width: 100%;
  height: auto;
}
.gallery-item-render .mermaid-placeholder {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}
.gallery-item-code {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  order: 1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.gallery-item-code.open {
  max-height: 150px;
  overflow-y: auto;
}
.gallery-item-code pre {
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-dim);
  overflow-x: auto;
  background: var(--dark);
}

/* ============================================================
   LEGAL PAGES (PRIVACY / TERMS)
   ============================================================ */

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}
.legal h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.legal .updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.legal h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal p {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.legal ul,
.legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal li {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.legal strong {
  color: var(--text);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.legal th,
.legal td {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.legal th {
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
}
.legal td {
  color: var(--text-dim);
}

/* ============================================================
   COMPONENTS: PENDING MODAL
   ============================================================ */

.pending-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pending-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.pending-modal-card {
  background: var(--surface);
  border: 1px solid rgba(74, 234, 204, 0.15);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s ease;
}
.pending-modal.visible .pending-modal-card {
  transform: translateY(0) scale(1);
}
.pending-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.pending-modal-card h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.pending-modal-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.pending-modal-close {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 0.6rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.pending-modal-close:hover {
  background: #72f5d8;
  transform: translateY(-1px);
}

/* ============================================================
   COMPONENTS: PENDING BANNER
   ============================================================ */

.pending-banner {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: -3rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(255, 122, 101, 0.06);
  border: 1px solid rgba(255, 122, 101, 0.18);
  border-radius: 12px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
.pending-banner strong {
  color: var(--accent2);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* ============================================================
   ANIMATIONS: SCROLL REVEAL
   ============================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .reveal,
.js .gallery-item {
  opacity: 0;
}
.js .reveal.visible {
  animation: fadeInUp 0.6s ease forwards;
}
.js .gallery-item.reveal.visible:nth-child(even) {
  animation-delay: 0.12s;
}

.js .reveal-stagger > * {
  opacity: 0;
}
.js .reveal-stagger.visible > * {
  animation: fadeInUp 0.5s ease forwards;
}
.reveal-stagger.visible > *:nth-child(1) {
  animation-delay: 0s;
}
.reveal-stagger.visible > *:nth-child(2) {
  animation-delay: 0.08s;
}
.reveal-stagger.visible > *:nth-child(3) {
  animation-delay: 0.16s;
}
.reveal-stagger.visible > *:nth-child(4) {
  animation-delay: 0.24s;
}
.reveal-stagger.visible > *:nth-child(5) {
  animation-delay: 0.32s;
}
.reveal-stagger.visible > *:nth-child(6) {
  animation-delay: 0.4s;
}

.js .hero-content {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.js .pending-banner {
  animation: fadeInUp 0.6s ease 0s both;
}
.js .hero-divider {
  animation: fadeInUp 0.5s ease 0.1s both;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.25);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.2);
  }
  56% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.wide {
    grid-column: span 1;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 15, 0.95);
    padding: 1rem 2rem;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .diagram-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 1.8rem;
  }
  .legal {
    padding-top: 6rem;
  }
}
