/* Shared Styles for All Pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  /* Sage Green - Interactive Elements & Accents */
  --sage-primary: hsl(150, 20%, 50%);
  --sage-accent: hsl(150, 25%, 60%);
  --sage-dark: hsl(150, 20%, 35%);
  --sage-light: hsl(150, 15%, 85%);

  /* Deep Black - Headers & Premium Feel */
  --black-primary: hsl(0, 0%, 4%);
  --black-secondary: hsl(0, 0%, 10%);
  --text-black: hsl(0, 0%, 8%);

  /* Warm Tan - Backgrounds & Subtle Elements */
  --tan-primary: hsl(30, 45%, 65%);
  --tan-accent: hsl(30, 45%, 55%);
  --tan-dark: hsl(30, 25%, 30%);
  --tan-light: hsl(40, 33%, 92%);
  --tan-lighter: hsl(40, 33%, 97%);

  /* Text Colors */
  --text-dark: hsl(30, 25%, 20%);
  --text-muted: hsl(30, 25%, 50%);

  /* Borders */
  --omega-border: hsl(30, 25%, 85%);
  --border: hsl(30, 25%, 85%);
  --white: #ffffff;

  /* Modern additions */
  --gradient-1: linear-gradient(135deg, var(--sage-primary) 0%, var(--sage-accent) 100%);
  --gradient-2: linear-gradient(135deg, var(--tan-lighter) 0%, var(--white) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.16);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--tan-lighter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Whole page grain overlay */
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  background-size: 200px 200px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 10000;
}

/* Navigation - Hamburger on small/medium, side-nav on wide screens */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: auto;
  background: white;
  border-bottom: 1px solid var(--omega-border);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 3.5rem;
}

/* Left side: logo (+ nav links on wide screens) */
.nav-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.logo-container {
  flex-shrink: 0;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.logo {
  height: 2.8rem;
  width: auto;
}

/* Nav links + CTA hidden by default (hamburger mode) */
.nav-links {
  display: none;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 10px 0;
  transition: color 0.2s ease;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 22px;
  font-weight: 400;
}

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

.nav-links a.active {
  color: var(--text-dark);
  font-weight: 500;
}

.nav-cta {
  display: none;
}

.nav-cta a {
  padding: 10px 0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 22px;
  text-align: left;
}

.nav-cta .btn-demo {
  background: var(--sage-primary);
  color: white;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 22px;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
  margin-left: -20px;
}

.nav-cta .btn-demo:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
}

.nav-cta .btn-login {
  color: var(--text-muted);
  font-size: 22px;
}

.nav-cta .btn-login:hover {
  color: var(--text-dark);
}

/* Icon sizing for SVGs */
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Hamburger menu button — visible by default */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ---- Wide screens: switch to side-nav layout ---- */
@media (min-width: 1500px) {
  .navbar {
    pointer-events: none;
    background: transparent;
    border-bottom: none;
  }

  .navbar-container {
    align-items: flex-start;
    padding: 24px 48px;
    height: auto;
  }

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    pointer-events: auto;
  }

  .logo {
    height: 3.5rem;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-cta {
    display: flex;
    position: fixed;
    bottom: 32px;
    left: 48px;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    z-index: 50;
  }

  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 16px;
  width: 220px;
  background: white;
  border: 1px solid var(--omega-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu {
    right: 48px;
  }
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.mobile-menu-links a.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--sage-primary);
}

.mobile-menu-cta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--omega-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-cta a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.mobile-menu-cta .btn-login {
  border: 1px solid var(--omega-border);
  background: transparent;
}

.mobile-menu-cta .btn-demo {
  background: var(--sage-primary);
  color: white;
}


/* Common Button Styles */
.btn {
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary {
  color: white;
  background: linear-gradient(135deg, var(--sage-primary) 0%, var(--sage-accent) 100%);
}

.btn-hero-primary:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
  color: var(--text-dark);
  background: white;
  border: 2px solid var(--omega-border);
}

.btn-hero-secondary:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  padding-left: 24px;
  padding-right: 24px;
  overflow: hidden;
  background: var(--tan-lighter);
  text-align: center;
}

@media (min-width: 1024px) {
  .page-header {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--text-black);
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .page-header h1 {
    font-size: 5rem;
  }
}

.page-header p {
  font-size: 1.25rem;
  font-weight: 200;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.625;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .page-header p {
    font-size: 1.5rem;
  }
}

/* Footer - card style with grain */
.footer-card {
  background: radial-gradient(ellipse at center,
      #1a1a1a 0%,
      #101010 50%,
      #080808 100%);
  border-radius: 1.5rem;
  width: calc(100% - 64px);
  max-width: 1000px;
  margin: 0 auto 24px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 1024px) {
  .footer-card {
    margin: 0 auto 32px;
  }
}

/* Subtle sage green glow */
.footer-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle,
      rgba(102, 153, 128, 0.1) 0%,
      transparent 70%);
  filter: blur(100px);
  z-index: 1;
}

/* Grain texture overlay */
.footer-card .footer-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  z-index: 2;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

.footer-card>*:not(.footer-grain) {
  position: relative;
  z-index: 3;
}

footer {
  background: transparent;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 24px;
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 1.25rem 32px;
  }
}

/* Slim single-bar footer */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

img.footer-brand {
  height: 2.25rem;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  font-size: 0.8125rem;
}

.footer-links li + li::before {
  content: '·';
  color: rgba(255,255,255,0.25);
  padding: 0 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--sage-primary), var(--sage-accent));
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 640px) {
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-links {
    font-size: 0.75rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 80px 20px 60px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer-card {
    width: calc(100% - 24px);
    margin: 0 auto 12px;
    border-radius: 1rem;
  }
}