/* Gongfucha — landing palette from TeaTheme.swift */

:root {
  --void: #120824;
  --void-mid: #1f0d38;
  --void-deep: #0a0517;
  --neon-magenta: #ff33d1;
  --neon-cyan: #33f2ff;
  --neon-yellow: #ffeb59;
  --neon-orange: #ff5933;
  --neon-violet: #9e47ff;
  --bamboo: #59d98c;
  --paper: #f0edfa;
  --mist: #a69ec7;
  --accent-blue: #598cff;
  --radius: 22px;
  --radius-sm: 16px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Noto Sans SC", "Source Serif 4", Georgia, serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper);
  background: var(--void-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background atmosphere ── */

.glow-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(158, 71, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(255, 51, 209, 0.18), transparent 50%),
    linear-gradient(165deg, var(--void-mid) 0%, var(--void-deep) 45%, #2e0533 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  animation: drift 20s ease-in-out infinite alternate;
}

.glow-orb--magenta {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--neon-magenta) 0%, transparent 70%);
  top: -80px;
  right: 8%;
}

.glow-orb--cyan {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
  bottom: 18%;
  left: -50px;
  animation-delay: -7s;
}

.glow-orb--violet {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--neon-violet) 0%, transparent 70%);
  top: 48%;
  right: -40px;
  animation-delay: -13s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(28px, -20px) scale(1.1); }
}

.grid-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(115deg, transparent 40%, var(--neon-cyan) 40.5%, transparent 41%),
    linear-gradient(115deg, transparent 60%, var(--neon-magenta) 60.5%, transparent 61%);
  background-size: 48px 100%;
}

/* ── Layout ── */

.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

section {
  padding-block: 5rem;
}

.section-label {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--neon-yellow), #ffc740 55%, var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(51, 242, 255, 0.35));
}

.section-lead {
  color: var(--mist);
  font-size: 1.1rem;
  max-width: 640px;
}

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 5, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 242, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.wordmark {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(255, 51, 209, 0.35);
}

.wordmark span {
  color: var(--neon-cyan);
  -webkit-text-fill-color: var(--neon-cyan);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--neon-yellow);
  text-shadow: 0 0 14px rgba(255, 235, 89, 0.45);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(51, 242, 255, 0.35);
  border-radius: 10px;
  color: var(--paper);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ── Hero ── */

.hero {
  padding-block: 5rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid rgba(51, 242, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 24px rgba(51, 242, 255, 0.15);
}

.hero h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 4.1rem);
  line-height: 1.08;
  margin-bottom: 0.5rem;
  color: var(--paper);
}

.hero h1 .accent {
  display: block;
  margin-top: 0.35rem;
  background: linear-gradient(180deg, var(--neon-yellow), #ffc740, var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(51, 242, 255, 0.45));
}

.hero-subtitle {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--mist);
  font-size: 1.15rem;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.85rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--void-deep);
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-violet));
  border: 1.5px solid rgba(51, 242, 255, 0.65);
  box-shadow:
    0 4px 24px rgba(255, 51, 209, 0.35),
    0 0 40px rgba(51, 242, 255, 0.2);
}

.btn-primary:hover {
  box-shadow:
    0 6px 32px rgba(255, 51, 209, 0.45),
    0 0 48px rgba(51, 242, 255, 0.3);
}

.btn-ghost {
  color: var(--paper);
  background: transparent;
  border: 1.5px solid rgba(255, 235, 89, 0.45);
}

.btn-ghost:hover {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 22px rgba(255, 235, 89, 0.2);
}

/* ── Stat pills ── */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.stat-pill {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 13, 56, 0.95), rgba(158, 71, 255, 0.18));
  border: 1px solid rgba(51, 242, 255, 0.22);
  color: var(--paper);
  box-shadow: 0 0 20px rgba(255, 51, 209, 0.08);
}

.stat-pill strong {
  color: var(--neon-yellow);
}

/* ── Feature cards ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03), rgba(158, 71, 255, 0.1)),
    rgba(31, 13, 56, 0.65);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1.25px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(51, 242, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.25px;
  background: linear-gradient(135deg, rgba(51, 242, 255, 0.85), rgba(255, 51, 209, 0.75), rgba(158, 71, 255, 0.7));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 51, 209, 0.18);
}

.feature-num {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--neon-magenta);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 14px rgba(255, 51, 209, 0.55);
}

.feature-card h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--neon-yellow);
  margin-bottom: 0.65rem;
}

.feature-card p {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── About ── */

.about-block {
  background: linear-gradient(180deg, rgba(31, 13, 56, 0.55), transparent);
  border-block: 1px solid rgba(51, 242, 255, 0.08);
}

.about-text {
  color: var(--mist);
  max-width: 720px;
  font-family: "Source Serif 4", Georgia, serif;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-text em {
  color: var(--neon-cyan);
  font-style: normal;
  font-weight: 600;
}

/* ── Privacy ── */

.privacy-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(158, 71, 255, 0.08)),
    rgba(31, 13, 56, 0.7);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(51, 242, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 32px rgba(255, 51, 209, 0.08);
  margin-top: 2rem;
}

.privacy-effective {
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--neon-yellow);
  margin-bottom: 1.5rem;
}

.privacy-card h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--neon-yellow);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.privacy-card h3:first-of-type {
  margin-top: 1.25rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--mist);
  font-size: 0.95rem;
}

.privacy-card strong {
  color: var(--paper);
  font-weight: 600;
}

.privacy-card a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.privacy-card a:hover {
  text-decoration: underline;
}

.privacy-card ul {
  margin: 0.5rem 0 0 1.25rem;
}

.privacy-card li + li {
  margin-top: 0.35rem;
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(158, 71, 255, 0.1)),
    rgba(31, 13, 56, 0.65);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid rgba(51, 242, 255, 0.22);
  box-shadow: 0 0 20px rgba(255, 51, 209, 0.06);
}

.contact-card .label {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}

.contact-card a {
  color: var(--neon-yellow);
  text-decoration: none;
  word-break: break-all;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card p {
  color: var(--mist);
  font-size: 0.95rem;
}

.contact-note {
  margin-top: 1.25rem;
  color: var(--mist);
  font-size: 0.95rem;
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(51, 242, 255, 0.1);
  text-align: center;
}

.footer-legal {
  color: var(--mist);
  font-size: 0.85rem;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 1rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(166, 158, 199, 0.55);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 5, 23, 0.97);
    border-bottom: 1px solid rgba(51, 242, 255, 0.12);
    padding: 1rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
  }

  .privacy-card {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow-orb { animation: none; }
  .btn:hover,
  .feature-card:hover { transform: none; }
}
