/* TWR Landscape Landing — palette from AppTheme.swift */

:root {
  --accent: #4db36b;
  --accent-light: #6bd98c;
  --accent-secondary: #bf9459;
  --bg: #0a0d0f;
  --bg-elevated: #0d1210;
  --card: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.38);
  --hero-grad-start: #1a4d29;
  --hero-grad-end: #33804d;
  --warm-grad-start: #8c6633;
  --warm-grad-end: #b88c4d;
  --glow: rgba(77, 179, 107, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --container: min(1120px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Particle background */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(77, 179, 107, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(191, 148, 89, 0.06), transparent 50%),
    linear-gradient(180deg, #080a0c 0%, #0a100c 50%, #080b09 100%);
}

.particles::before,
.particles::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.particles::before {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -60px;
  background: var(--hero-grad-end);
}

.particles::after {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: -40px;
  background: var(--accent-secondary);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 13, 15, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
  box-shadow: 0 0 20px var(--glow);
  font-size: 1.1rem;
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
  color: #fff !important;
  box-shadow: 0 4px 24px var(--glow);
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--card-border);
}

.section-eyebrow,
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-line {
  display: block;
}

.hero-line.accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--hero-grad-start), var(--hero-grad-end));
  color: #fff;
  box-shadow: 0 8px 32px var(--glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual cards */
.hero-visual {
  position: relative;
  min-height: 360px;
}

.hero-card {
  position: absolute;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 30px var(--glow);
  backdrop-filter: blur(8px);
}

.hero-card-main {
  top: 0;
  left: 0;
  right: 10%;
  z-index: 3;
}

.hero-card-side {
  right: 0;
  top: 38%;
  width: 58%;
  z-index: 2;
}

.hero-card-side.warm {
  left: 8%;
  right: auto;
  top: 68%;
  width: 52%;
  border-color: rgba(191, 148, 89, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(191, 148, 89, 0.12);
}

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

.card-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.35rem 0 0.15rem;
}

.card-value.good {
  color: var(--accent-light);
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hero-grad-start), var(--accent-light));
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(77, 179, 107, 0.25);
  box-shadow: 0 8px 32px var(--glow);
  transform: translateY(-2px);
}

.feature-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-copy .disclaimer {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 148, 89, 0.25);
  background: rgba(191, 148, 89, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Privacy */
.privacy-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 0.5rem;
}

.effective-date {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.policy-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.policy-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--accent-light);
}

.policy-card p,
.policy-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.policy-card p + p {
  margin-top: 0.65rem;
}

.policy-card ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.policy-card li {
  margin-bottom: 0.35rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.reply-time {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-card a {
  font-family: var(--font-display);
  font-weight: 600;
  word-break: break-word;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
    max-width: 420px;
    margin-inline: auto;
  }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(10, 13, 15, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--card-border);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.25rem 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-card:hover,
  .btn:hover {
    transform: none;
  }
}
