:root {
  --bg: #fdf8ee;
  --bg-soft: #f5efe3;
  --surface: #ffffff;
  --text: #1f2421;
  --text-muted: #5c635d;
  --green: #2d6a4f;
  --green-dark: #1b4332;
  --orange: #e87a2a;
  --orange-bright: #f4a261;
  --orange-light: #ffd6a5;
  --orange-pale: #fff0dc;
  --charcoal: #2b2f2c;
  --gray: #d8d4cc;
  --accent: #007aff;
  --gradient-hero: linear-gradient(135deg, #fdf8ee 0%, #fff6ea 45%, #f5efe3 100%);
  --gradient-btn: linear-gradient(135deg, #c45c1a 0%, #e87a2a 55%, #f4a261 100%);
  --shadow-sm: 0 2px 8px rgba(31, 36, 33, 0.06);
  --shadow-md: 0 8px 32px rgba(31, 36, 33, 0.1);
  --shadow-lg: 0 24px 64px rgba(196, 92, 26, 0.22);
  --radius: 16px;
  --radius-lg: 24px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 440px;
  height: 440px;
  background: var(--orange-light);
  top: -140px;
  right: -100px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: #95d5b2;
  bottom: 15%;
  left: -120px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--orange-bright);
  bottom: -60px;
  right: 20%;
  animation-delay: -14s;
  opacity: 0.22;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -28px) scale(1.04); }
  66% { transform: translate(-12px, 18px) scale(0.96); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.08);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
}

.phone {
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.phone img {
  border-radius: 32px;
  width: 100%;
  height: auto;
}

.phone-dark {
  background: #111;
}

.phone-light {
  background: #f2f2f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 72px);
}

.hero-content {
  animation: fadeUp 0.8s ease-out;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45, 106, 79, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid rgba(45, 106, 79, 0.15);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero-phones .phone {
  width: 260px;
}

.phone-back {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-45%) rotate(6deg);
  z-index: 1;
  opacity: 0.92;
}

.phone-front {
  position: relative;
  z-index: 2;
  transform: translateX(-40px) rotate(-3deg);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header.centered {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-header h2,
.about-copy h2,
.great-for-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.about {
  background: var(--gradient-hero);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
}

.about-grid .phone {
  width: 280px;
  margin: 0 auto;
  justify-self: end;
}

.features {
  background: var(--surface);
}

.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

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

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

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
  color: var(--green-dark);
}

.feature-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 28rem;
}

.feature-row .phone {
  width: 240px;
}

.great-for {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.great-for-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-content: center;
  padding: 2rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.625rem 1.125rem;
  background: var(--surface);
  border: 1.5px solid var(--gray);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.tag-pill::before {
  content: "♠";
  font-size: 0.875rem;
}

.tag-pill.tag-active {
  background: rgba(232, 122, 42, 0.12);
  border-color: var(--orange);
  color: var(--green-dark);
  font-weight: 600;
  transform: scale(1.05);
}

.tag-pill:hover {
  transform: translateY(-2px);
  border-color: var(--orange-light);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(45, 106, 79, 0.08);
}

.contact-info p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.contact-email {
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-form label span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange-bright);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  color: var(--green-dark);
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.form-error {
  color: #b42318;
  font-weight: 500;
  text-align: center;
  margin: 0;
  font-size: 0.9375rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(45, 106, 79, 0.1);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer img {
  margin: 0 auto 1rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer a {
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.25rem;
}

.footer-links span {
  color: var(--gray);
}

.legal-page {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem 4rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(45, 106, 79, 0.08);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--green-dark);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--green);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gradient-btn);
  color: #fff !important;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-open .nav-links {
  display: flex;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .great-for-layout,
  .contact-card,
  .feature-row {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-phones {
    min-height: 460px;
    order: -1;
  }

  .phone-front {
    transform: translateX(-20px) rotate(-3deg);
  }

  .about-grid .phone {
    justify-self: center;
  }

  .feature-row .phone {
    margin: 0 auto;
  }

  .feature-copy {
    text-align: center;
  }

  .feature-copy p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 248, 238, 0.98);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(45, 106, 79, 0.08);
    gap: 1rem;
  }

  .nav {
    position: relative;
  }

  .hero-phones .phone {
    width: 220px;
  }

  .hero-phones {
    min-height: 400px;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .feature-showcase {
    gap: 3rem;
  }

  .nav-logo-text {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .phone-front,
  .phone-back {
    transform: none !important;
  }
}
