/*
  Teamnest Website - Shared Styles
  Features: Unified visual theme, responsive layout, and lightweight motion effects.
  Implementation: CSS variables, grid/flex layout, and page-specific active navigation states.
  Changes: Initial stylesheet for home, support, privacy policy, and marketing pages, plus account deletion form styles.
*/
:root {
  --ink: #102227;
  --ink-soft: #365157;
  --bg: #f5f8f4;
  --surface: rgba(255, 255, 255, 0.82);
  --line: rgba(16, 34, 39, 0.12);
  --brand: #0a8f72;
  --brand-deep: #066957;
  --highlight: #ffc157;
  --shadow: 0 14px 40px rgba(7, 26, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, #d7f3e8 0, rgba(215, 243, 232, 0.45) 25%, transparent 52%),
    radial-gradient(circle at 93% 85%, #ffe0ad 0, rgba(255, 224, 173, 0.55) 22%, transparent 50%),
    var(--bg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1,
h2 {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.01em;
  margin-top: 0;
}

a {
  color: var(--brand-deep);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.nav-list {
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-list a:hover {
  background: rgba(10, 143, 114, 0.14);
  color: var(--ink);
}

body[data-page="home"] .nav-list a[href="index.html"],
body[data-page="marketing"] .nav-list a[href="marketing.html"],
body[data-page="support"] .nav-list a[href="support.html"],
body[data-page="delete-account"] .nav-list a[href="delete-account.html"],
body[data-page="privacy"] .nav-list a[href="privacy.html"] {
  background: rgba(10, 143, 114, 0.2);
  color: var(--ink);
}

main {
  padding: 0.8rem 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 1.35rem;
}

.hero {
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-deep);
  font-weight: 600;
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 105, 87, 0.18);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  border: 1px solid var(--line);
}

.feature-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy h2 {
  margin-top: 1rem;
}

.muted {
  color: var(--ink-soft);
}

.delete-form-wrap {
  margin-top: 1.1rem;
}

.request-form {
  display: grid;
  gap: 0.72rem;
}

.request-form label {
  font-weight: 600;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.request-form textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
}

.request-form .btn {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.small-text {
  font-size: 0.9rem;
  margin: 0;
}

.site-footer {
  padding: 1.2rem 0 2.4rem;
  color: var(--ink-soft);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.45;
}

.bg-orb-a {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, #5fd8b7, #2fbfa0);
  left: -60px;
  top: 80px;
}

.bg-orb-b {
  width: 270px;
  height: 270px;
  background: linear-gradient(135deg, #ffd18b, #ffb46e);
  right: -70px;
  bottom: 90px;
}

.rise-in {
  animation: rise-in 520ms ease both;
}

.stagger-in > * {
  animation: rise-in 520ms ease both;
}

.stagger-in > *:nth-child(2) {
  animation-delay: 90ms;
}

.stagger-in > *:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

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

  .hero {
    padding: 1.4rem;
  }
}
