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

:root {
  /* Core Colors */
  --bg-primary: #0e1a16;
  --bg-secondary: #132822;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --surface-border: rgba(255, 255, 255, 0.1);
  
  /* Accents */
  --accent-primary: #16a34a;
  --accent-secondary: #22c55e;
  --accent-highlight: #eab308;
  --accent-red: #7f1d1d;
  --accent-neon-hint: #4ade80;

  /* Typography Colors */
  --text-primary: #ecfdf5;
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;

  /* Layout & Spacing */
  --max-width: 1320px;
  --space-mobile: 60px;
  --space-tablet: 80px;
  --space-desktop: 110px;
  
  /* Radii & Effects */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --glow-primary: 0 4px 20px rgba(22, 163, 74, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

/* ================= Global Background Effects ================= */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(22, 163, 74, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
  animation: ambientBreathe 15s ease-in-out infinite alternate;
}

@keyframes ambientBreathe {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* ================= Layout & Containers ================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

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

section {
  padding: var(--space-mobile) 0;
}

@media (min-width: 768px) {
  section { padding: var(--space-tablet) 0; }
}

@media (min-width: 1024px) {
  section { padding: var(--space-desktop) 0; }
}

/* ================= Header & Nav ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(14, 26, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(14, 26, 22, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
}

.nav-links {
  display: none;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }

.mobile-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

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

@media (min-width: 1024px) {
  .mobile-toggle, .mobile-menu { display: none; }
  .nav-links {
    display: flex;
    gap: 40px;
  }
}

/* ================= Components ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(22, 163, 74, 0.4);
  filter: brightness(1.1);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--surface-hover);
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.2);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ================= Hero Section ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-primary), transparent);
  opacity: 0.6;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.1);
  transition: transform 10s ease;
}

@media (min-width: 1024px) {
  .hero-image {
    height: 600px;
  }
}

.hero-visual:hover .hero-image {
  transform: scale(1.05);
}

/* ================= Features / General Content ================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-secondary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

/* ================= Forms ================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-control {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

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

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-content p, .legal-content li {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 60px 0 30px;
  background: var(--bg-primary);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.footer-badges {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* ================= Animations ================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-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; }