/* ============================================================
   Shared across every page (byte-identical in the pages that
   used them before this file existed) — safe to leave unscoped.
   ============================================================ */
:root {
  --green: #17db76;
  --green-dim: rgba(23, 219, 118, 0.12);
  --green-glow: rgba(23, 219, 118, 0.25);
  --dark: #060d14;
  --dark2: #0a1520;
  --dark3: #0f1e2e;
  --text: #e8f4f0;
  --muted: #5a8a72;
  --card: rgba(15, 30, 46, 0.8);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
.section-title {
  font-family: "Bricolage Grotesque", sans-serif;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 219, 118, 0.08);
  background: rgba(6, 13, 20, 0.6);
}
.nav-logo {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--green);
  text-decoration: none;
}

/* ============================================================
   page-home — index.html (animated landing page)
   ============================================================ */
html.page-home {
  scroll-behavior: smooth;
  overflow-x: hidden;

  body {
    background: var(--dark);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
    cursor: none;
  }
  .cursor {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
      width 0.3s,
      height 0.3s;
    mix-blend-mode: screen;
  }
  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--green);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.5;
  }
  #map-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.18;
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
  }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
  }
  .nav-links a:hover {
    color: var(--green);
  }

  .nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
  }
  .nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease,
      background 0.3s ease;
  }
  .nav-burger:hover span {
    background: var(--green);
  }
  .nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-burger.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 120px 24px 80px;
    overflow: hidden;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-dim);
    border: 1px solid rgba(23, 219, 118, 0.3);
    border-radius: 100px;
    padding: 6px 16px;
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 36px;
    animation: fadeUp 0.8s ease both;
  }
  .hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
  }
  h1 {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s 0.1s ease both;
  }
  h1 .accent {
    color: var(--green);
  }
  h1 .line2 {
    display: block;
    font-family: "Space Mono", monospace;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--muted);
    letter-spacing: -0.01em;
    margin-top: 8px;
  }
  .hero-sub {
    max-width: 520px;
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 32px auto 0;
    animation: fadeUp 0.8s 0.2s ease both;
  }
  .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 16px 32px;
    border-radius: 100px;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
    box-shadow: 0 0 40px var(--green-glow);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(23, 219, 118, 0.4);
  }
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 32px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition:
      border-color 0.2s,
      background 0.2s;
  }
  .btn-secondary:hover {
    border-color: var(--green);
    background: var(--green-dim);
  }

  .scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: "Space Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeUp 1s 0.6s ease both;
  }
  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollAnim 2s infinite;
  }

  .hero-visual {
    position: relative;
    margin-top: 64px;
    animation: fadeUp 0.8s 0.4s ease both;
  }
  .watch-ring {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1a3a2a, var(--dark2));
    border: 2px solid rgba(23, 219, 118, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    box-shadow:
      0 0 80px rgba(23, 219, 118, 0.15),
      inset 0 0 40px rgba(23, 219, 118, 0.05);
  }
  .watch-screen {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(23, 219, 118, 0.15);
  }
  .watch-label {
    font-family: "Space Mono", monospace;
    font-size: 0.6rem;
    color: var(--green);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .watch-title {
    font-size: 1.1rem;
    font-weight: 700;
  }
  .watch-route {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
  }
  .route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
  }
  .route-line-w {
    width: 2px;
    height: 28px;
    background: repeating-linear-gradient(
      to bottom,
      var(--green) 0,
      var(--green) 4px,
      transparent 4px,
      transparent 8px
    );
  }
  .route-pin {
    width: 14px;
    height: 14px;
    background: var(--green);
    clip-path: polygon(50% 0%, 100% 38%, 80% 100%, 50% 85%, 20% 100%, 0% 38%);
  }
  .watch-ring::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(23, 219, 118, 0.1);
    animation: ripple 3s ease-out infinite;
  }
  .watch-ring::after {
    content: "";
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px solid rgba(23, 219, 118, 0.05);
    animation: ripple 3s 1s ease-out infinite;
  }

  section {
    position: relative;
    z-index: 10;
    padding: 120px 24px;
  }
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }
  .section-label {
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
  }
  .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    margin-top: 64px;
    border: 1px solid rgba(23, 219, 118, 0.12);
    border-radius: 24px;
    overflow: hidden;
  }
  .step {
    background: var(--card);
    backdrop-filter: blur(16px);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }
  .step:hover {
    background: rgba(15, 30, 46, 0.95);
  }
  .step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .step:hover::before {
    opacity: 1;
  }
  .step-num {
    font-family: "Space Mono", monospace;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(23, 219, 118, 0.08);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
    transition: color 0.3s;
  }
  .step:hover .step-num {
    color: rgba(23, 219, 118, 0.15);
  }
  .step-icon {
    width: 48px;
    height: 48px;
    background: var(--green-dim);
    border: 1px solid rgba(23, 219, 118, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
  }
  .step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .step p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
  }

  .map-section {
    background: var(--dark2);
    border-top: 1px solid rgba(23, 219, 118, 0.08);
    border-bottom: 1px solid rgba(23, 219, 118, 0.08);
    overflow: hidden;
  }
  .map-parallax {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .map-bg {
    position: absolute;
    inset: -60px;
    background:
      repeating-linear-gradient(
        0deg,
        rgba(23, 219, 118, 0.04) 0px,
        rgba(23, 219, 118, 0.04) 1px,
        transparent 1px,
        transparent 80px
      ),
      repeating-linear-gradient(
        90deg,
        rgba(23, 219, 118, 0.04) 0px,
        rgba(23, 219, 118, 0.04) 1px,
        transparent 1px,
        transparent 80px
      );
    will-change: transform;
  }
  .map-blocks {
    position: absolute;
    inset: 0;
    will-change: transform;
  }
  .map-block {
    position: absolute;
    background: rgba(23, 219, 118, 0.04);
    border: 1px solid rgba(23, 219, 118, 0.06);
    border-radius: 4px;
  }
  .map-road-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(23, 219, 118, 0.06);
  }
  .map-road-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    background: rgba(23, 219, 118, 0.06);
  }
  .map-content {
    position: relative;
    z-index: 2;
    text-align: center;
  }

  .beam-demo {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 24px 0;
  }
  .beam-device {
    background: var(--dark2);
    border: 1px solid rgba(23, 219, 118, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    color: var(--muted);
    min-width: 100px;
  }
  .beam-device .icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
  }
  .beam-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(23, 219, 118, 0.3),
      var(--green),
      rgba(23, 219, 118, 0.3)
    );
    position: relative;
    overflow: hidden;
  }
  .beam-dot-anim {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: beamMove 2s linear infinite;
    box-shadow: 0 0 12px var(--green);
  }

  .why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 64px;
  }
  .why-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(23, 219, 118, 0.1);
    border-radius: 20px;
    padding: 36px;
    transition:
      border-color 0.3s,
      transform 0.3s;
    position: relative;
    overflow: hidden;
  }
  .why-card:hover {
    border-color: rgba(23, 219, 118, 0.3);
    transform: translateY(-4px);
  }
  .why-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    background: linear-gradient(
      135deg,
      rgba(23, 219, 118, 0.06),
      rgba(15, 30, 46, 0.9)
    );
    border-color: rgba(23, 219, 118, 0.2);
  }
  .why-icon {
    font-size: 2rem;
    margin-bottom: 16px;
  }
  .why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .why-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
  }

  .cta-section {
    text-align: center;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(23, 219, 118, 0.04),
      transparent
    );
  }
  .download-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
  }
  .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid rgba(23, 219, 118, 0.2);
    border-radius: 16px;
    padding: 18px 28px;
    text-decoration: none;
    color: var(--text);
    transition:
      border-color 0.3s,
      background 0.3s,
      transform 0.2s;
    backdrop-filter: blur(16px);
  }
  .store-btn:hover {
    border-color: var(--green);
    background: rgba(23, 219, 118, 0.08);
    transform: translateY(-3px);
  }
  .store-btn-icon {
    font-size: 2rem;
  }
  .store-btn-text {
    text-align: left;
  }
  .store-btn-sub {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    display: block;
  }
  .store-btn-name {
    font-size: 1rem;
    font-weight: 700;
    display: block;
  }

  .store-btn.coming-soon {
    position: relative;
    cursor: default;
  }
  .store-tooltip {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 280px;
    max-width: 80vw;
    padding-bottom: 14px;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
    z-index: 20;
  }
  .store-tooltip-card {
    position: relative;
    background: var(--dark2);
    border: 1px solid rgba(23, 219, 118, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--muted);
    text-align: left;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
  .store-tooltip-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark2);
  }
  .store-tooltip-card a {
    color: var(--green);
  }
  .store-btn.coming-soon:hover .store-tooltip,
  .store-btn.coming-soon.tooltip-active .store-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-4px);
  }

  footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(23, 219, 118, 0.08);
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  footer .logo {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.15em;
  }
  footer nav {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
  }
  footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  footer a:hover {
    color: var(--green);
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.7s ease,
      transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
@keyframes ripple {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}
@keyframes beamMove {
  0% {
    left: -4px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 4px);
    opacity: 0;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes beamDown {
  0% {
    top: -3px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 3px);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  html.page-home {
    .why-grid {
      grid-template-columns: 1fr;
    }
    .why-card.featured {
      grid-column: span 1;
      grid-template-columns: 1fr;
    }
  }
}

@media (max-width: 768px) {
  html.page-home {
    nav {
      padding: 16px 20px;
    }
    .nav-burger {
      display: flex;
    }
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      gap: 0;
      background: rgba(6, 13, 20, 0.97);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(23, 219, 118, 0.12);
      padding: 8px 20px 20px;
    }
    .nav-links.open {
      display: flex;
    }
    .nav-links a {
      display: block;
      padding: 14px 4px;
      border-bottom: 1px solid rgba(23, 219, 118, 0.4);
    }
    .nav-links li:last-child a {
      border-bottom: none;
    }
    footer {
      flex-direction: column;
      text-align: center;
    }
    .steps {
      grid-template-columns: 1fr;
    }
  }
}

/* ============================================================
   page-legal — shared base for privacy.html, terms.html,
   contact.php (identical nav/back-link/badge/h1/body copy
   styling across all three; each page adds its own extras below)
   ============================================================ */
.page-legal {
  body {
    background: var(--dark);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
  }
  .back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .back-link:hover {
    color: var(--green);
  }
  main {
    max-width: 760px;
    margin: 0 auto;
    padding: 140px 24px 80px;
  }
  .badge {
    display: inline-block;
    background: rgba(23, 219, 118, 0.1);
    border: 1px solid rgba(23, 219, 118, 0.2);
    border-radius: 100px;
    padding: 4px 14px;
    font-family: "Space Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 24px;
  }
  h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
  }
  .updated {
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
  }
  .highlight {
    background: rgba(23, 219, 118, 0.06);
    border-left: 3px solid var(--green);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 1rem;
    color: var(--text);
  }
  .highlight strong {
    color: var(--green);
  }
  h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--text);
  }
  h2::before {
    content: "//";
    color: var(--green);
    font-family: "Space Mono", monospace;
    font-size: 0.9rem;
    margin-right: 10px;
  }
  p {
    color: var(--muted);
    margin-bottom: 16px;
    font-size: 0.97rem;
  }
  ul {
    color: var(--muted);
    padding-left: 0;
    list-style: none;
    margin-bottom: 16px;
  }
  ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.97rem;
  }
  ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--green);
    font-family: "Space Mono", monospace;
    font-size: 0.8rem;
  }
  a {
    color: var(--green);
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  footer {
    border-top: 1px solid rgba(23, 219, 118, 0.08);
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
  }
  footer p {
    font-size: 0.8rem;
    color: var(--muted);
  }
}

/* page-terms — terms.html only (adds strong.w + wrapping footer with links + mobile stacking) */
.page-terms {
  strong.w {
    color: var(--text);
  }
  footer {
    flex-wrap: wrap;
    gap: 16px;
  }
  footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  footer a:hover {
    color: var(--green);
  }
}

@media (max-width: 600px) {
  .page-terms {
    nav {
      padding: 16px 20px;
    }
    footer {
      flex-direction: column;
      text-align: center;
    }
  }
}

/* page-contact — contact.php only (narrower main, form styling, same wrapping footer as terms) */
.page-contact {
  main {
    max-width: 560px;
  }
  .sub {
    color: var(--muted);
    margin-bottom: 48px;
    font-size: 0.97rem;
  }
  .notice {
    border-radius: 0 12px 12px 0;
    border-left: 3px solid var(--green);
    background: rgba(23, 219, 118, 0.06);
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 0.92rem;
  }
  .notice.error {
    border-color: #e05a5a;
    background: rgba(224, 90, 90, 0.08);
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  label {
    font-family: "Space Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    display: block;
  }
  input,
  textarea {
    width: 100%;
    background: var(--card);
    border: 1px solid rgba(23, 219, 118, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
  }
  input:focus,
  textarea:focus {
    outline: none;
    border-color: var(--green);
  }
  textarea {
    resize: vertical;
    min-height: 140px;
  }
  .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--green);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
    box-shadow: 0 0 40px rgba(23, 219, 118, 0.25);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(23, 219, 118, 0.4);
  }
  .direct {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(23, 219, 118, 0.08);
    font-size: 0.9rem;
    color: var(--muted);
  }
  footer {
    flex-wrap: wrap;
    gap: 16px;
  }
  footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  footer a:hover {
    color: var(--green);
  }
}

@media (max-width: 600px) {
  .page-contact {
    nav {
      padding: 16px 20px;
    }
    footer {
      flex-direction: column;
      text-align: center;
    }
  }
}
