/* ============================================================
   Buteo — buteoapp.com Shared Design System
   Brand palette: #ff6700 (primary), dark wilderness tones
   ============================================================ */

/* ---------- Reset & Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  /* Brand */
  --orange:       #ff6700;
  --orange-light: #ff8c3a;
  --orange-dark:  #d45500;
  --orange-glow:  rgba(255, 103, 0, 0.25);

  /* Neutrals */
  --bg-body:      #0d0f11;
  --bg-surface:   #15181c;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover:rgba(255, 255, 255, 0.07);
  --border-subtle:rgba(255, 255, 255, 0.08);
  --border-card:  rgba(255, 255, 255, 0.10);

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary:#a0a8b4;
  --text-muted:   #6b7280;

  /* Effects */
  --glass-bg:     rgba(21, 24, 28, 0.75);
  --glass-blur:   12px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow:  0 0 40px var(--orange-glow);

  /* Layout */
  --max-width:    1120px;
  --gutter:       clamp(1rem, 4vw, 3rem);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover {
  color: var(--orange-light);
}

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

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.35s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-brand img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px var(--gutter);
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 15, 17, 0.45) 0%,
    rgba(13, 15, 17, 0.70) 55%,
    rgba(13, 15, 17, 0.98) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 var(--gutter);
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  margin: 0 auto 28px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* App Store badge */
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-decoration: none;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--orange);
}

/* ---------- Feature Cards ---------- */
.features {
  padding: 100px 0;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--orange);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ---------- Page Content (Legal / Support) ---------- */
.page-header {
  padding-top: 120px;
  padding-bottom: 48px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header .last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.page-body {
  padding: 56px 0 100px;
}
.page-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.page-body h2:first-child {
  margin-top: 0;
}
.page-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}
.page-body p,
.page-body li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.page-body ul, .page-body ol {
  padding-left: 1.5em;
  margin-bottom: 20px;
}
.page-body strong {
  color: var(--text-primary);
  font-weight: 600;
}
.page-body .highlight-box {
  background: var(--bg-card);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}
.page-body .highlight-box p {
  margin-bottom: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item:hover {
  border-color: var(--orange);
}
.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.25s var(--ease);
}
.faq-question:hover {
  background: var(--bg-card-hover);
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
  color: var(--text-muted);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- Contact Card ---------- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.3s var(--ease);
}
.contact-card:hover {
  border-color: var(--orange);
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}
.contact-card a.email-link {
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.footer-brand img {
  height: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.footer-links a:hover {
  color: var(--orange);
}
.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 24px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s var(--ease) forwards;
}
.animate-in.delay-1 { animation-delay: 0.15s; }
.animate-in.delay-2 { animation-delay: 0.3s; }
.animate-in.delay-3 { animation-delay: 0.45s; }
.animate-in.delay-4 { animation-delay: 0.6s; }
.animate-in.delay-5 { animation-delay: 0.75s; }

/* ---------- Responsive Fine-Tuning ---------- */
@media (max-width: 640px) {
  .hero { min-height: 80vh; }
  .hero-icon { width: 90px; height: 90px; }
  .features { padding: 60px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
