/* ============================================================
   HowToDAO — Global Stylesheet
   Color palette preserved from original brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #FAFAFA;
  background-image:
    radial-gradient(at 0% 0%, hsla(211, 25%, 22%, 0.05) 0, transparent 40%),
    radial-gradient(at 100% 0%, hsla(30, 93%, 60%, 0.08) 0, transparent 50%),
    radial-gradient(at 50% 100%, hsla(160, 73%, 65%, 0.06) 0, transparent 60%);
  background-attachment: fixed;
  color: #282E38;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy: #2a3848;
  --navy-dark: #1f2a38;
  --navy-light: #3a4b5f;
  --mint: #5FE7C3;
  --orange: #F5944D;
  --orange-dark: #D5743D;
  --yellow: #FFDA55;
  --bg: #FAFAFA;
  --text: #282E38;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.05), inset 0 0 0 1px rgba(255,255,255,0.5);
  --shadow-card-hover: 0 20px 40px -10px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(255,255,255,0.8), 0 0 0 1px rgba(95,231,195,0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, h2 { font-family: 'Source Serif 4', Georgia, serif; }
h3, h4, h5, h6 { font-family: 'Inter', sans-serif; }

h1 { font-size: clamp(2.25rem, 3vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.875rem, 2vw + 0.75rem, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.5vw + 0.5rem, 2rem); line-height: 1.25; }
h4 { font-size: clamp(1.15rem, 1vw + 0.4rem, 1.5rem); }
p { font-size: clamp(1rem, 0.3vw + 0.875rem, 1.15rem); }

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 6vw, 7rem) 0;
}

.section-sm {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logo-accent {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange);
  border-radius: 1.5px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 14px rgba(213, 116, 61, 0.35);
  transition: all var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 116, 61, 0.5);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem 1.5rem;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInDown 0.3s ease;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-dark);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--orange);
}

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  text-align: center;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 14px rgba(213, 116, 61, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(213, 116, 61, 0.5);
  background: linear-gradient(135deg, #F9A466 0%, #E08552 100%);
}

.btn-outline {
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 56, 72, 0.2);
}

.btn-lg {
  min-height: 56px;
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 231, 195, 0.5);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-icon-mint { background: rgba(95, 231, 195, 0.15); color: #2A9D7E; }
.card-icon-orange { background: rgba(245, 148, 77, 0.15); color: var(--orange-dark); }
.card-icon-navy { background: rgba(42, 56, 72, 0.1); color: var(--navy); }
.card-icon-yellow { background: rgba(255, 218, 85, 0.2); color: #B8941A; }

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); line-height: 1.7; }

/* ── Premium Surfaces ──────────────────────────────────────── */
.premium-surface {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 42, 56, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(247,244,240,0.88) 100%);
  box-shadow: 0 20px 55px -38px rgba(31,42,56,0.26), 0 10px 18px -16px rgba(31,42,56,0.16);
}

.premium-surface-dark {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top left, rgba(95,231,195,0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(245,148,77,0.18), transparent 30%),
    linear-gradient(135deg, #182230 0%, #243244 52%, #1d2a3a 100%);
  box-shadow: 0 30px 80px -40px rgba(24,34,48,0.9);
  color: #F3F6F8;
}

.premium-surface-dark h2,
.premium-surface-dark h3,
.premium-surface-dark h4 {
  color: #F3F6F8;
}

.premium-surface-dark p,
.premium-surface-dark li {
  color: rgba(243, 246, 248, 0.8);
}

/* ── Eyebrow / Kicker ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  border: 1px solid rgba(42, 56, 72, 0.1);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}

.eyebrow-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #F3F6F8;
}

/* ── Grid ──────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding-top: calc(72px + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(2rem, 4vw, 5rem);
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 0.5vw + 0.9rem, 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-proof .dot {
  color: var(--border);
}

/* ── Team Cards ────────────────────────────────────────────── */
.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.team-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(42, 56, 72, 0.05);
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.05);
}

.team-card-body {
  padding: 1.5rem 2rem 2rem;
}

.team-card-body h3 {
  margin-bottom: 0.25rem;
}

.team-card-body .role {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--navy-dark);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ── Steps ─────────────────────────────────────────────────── */
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: var(--navy);
}

.step-content h3 { margin-bottom: 0.5rem; }
.step-content p { color: var(--text-muted); }

/* ── Stats ─────────────────────────────────────────────────── */
.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2rem, 1.25vw + 1.4rem, 2.85rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

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

/* ── Feature List ──────────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FE7C3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Testimonial ───────────────────────────────────────────── */
.testimonial {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.4rem);
  font-style: italic;
  color: var(--navy-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ── Text Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-mint { color: var(--mint); }
.text-navy { color: var(--navy-dark); }
.text-white { color: var(--white); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.max-w-prose { max-width: 680px; }
.max-w-3xl { max-width: 900px; }
.max-w-4xl { max-width: 1100px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ── Page-specific ─────────────────────────────────────────── */
.page-hero {
  padding-top: calc(72px + 3rem);
  padding-bottom: 2rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Platform feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(42,56,72,0.05) 0%, rgba(95,231,195,0.08) 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid var(--border);
}

.feature-visual-icon {
  font-size: 5rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse {
    direction: ltr;
  }
}

/* ── Scroll Indicator ──────────────────────────────────────── */
.scroll-indicator {
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
  opacity: 0.4;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  max-width: 200px;
}

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ── Responsive Fine-tuning ────────────────────────────────── */
@media (max-width: 640px) {
  .container, .container-wide {
    padding: 0 1rem;
  }
  
  .card { padding: 1.5rem; }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}
