:root {
  --green-900: #123c2b;
  --green-850: #154432;
  --green-800: #174b36;
  --green-700: #1f5d44;
  --green-100: #eaf5f0;
  --green-050: #f4faf7;
  --mint: #8affc1;
  --mint-soft: #d9fff0;
  --text: #22312b;
  --muted: #5a6c64;
  --white: #ffffff;
  --border: #d8e6df;
  --shadow: 0 16px 40px rgba(18, 60, 43, 0.08);
  --shadow-lg: 0 28px 60px rgba(18, 60, 43, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 255, 193, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fcfa 0%, #f3f8f5 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--green-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 60, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.1;
}

.brand-tagline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--green-900);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--green-700);
}

.nav-cta {
  padding: 0.7rem 1rem;
  background: var(--green-900);
  color: var(--white) !important;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(18, 60, 43, 0.16);
}

.hero {
  padding: 4.75rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--green-900);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.05;
  color: var(--green-900);
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-pills span {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--green-900);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.machine-frame {
  position: relative;
  width: min(100%, 390px);
  min-height: 560px;
  padding: 2rem 1.5rem 1.25rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(138, 255, 193, 0.28), transparent 48%),
    radial-gradient(circle at 50% 80%, rgba(18, 60, 43, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f8f5 100%);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(18, 60, 43, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.machine-frame::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 20px;
  background: rgba(0, 0, 0, 0.16);
  filter: blur(16px);
  border-radius: 50%;
  z-index: 0;
}

.machine-img {
  position: relative;
  z-index: 1;
  max-height: 500px;
  width: auto;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 26px 34px rgba(0, 0, 0, 0.22))
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.12));
  animation: gentleFloat 4s ease-in-out infinite;
}

.machine-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(138, 255, 193, 0.35), transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
  z-index: 0;
}

.hero-visual-caption {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  max-width: 290px;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(234, 245, 240, 0.85) 0%, rgba(244, 250, 247, 0.92) 100%);
  border-top: 1px solid rgba(18, 60, 43, 0.06);
  border-bottom: 1px solid rgba(18, 60, 43, 0.06);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--green-900);
  line-height: 1.15;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 60, 43, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-grid .card,
#request .card,
.step.card {
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--green-900);
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-900);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 0.35rem;
}

.step p {
  margin: 0;
}

#request .container {
  max-width: 820px;
}

#request form.card {
  display: grid;
  gap: 1rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(31, 93, 68, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-900);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(18, 60, 43, 0.18);
}

.btn-primary:hover {
  background: var(--green-850);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-900);
  border: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

.site-footer {
  background: var(--green-900);
  color: var(--white);
  padding: 2.5rem 0;
  margin-top: 1rem;
}

.site-footer .container {
  display: grid;
  gap: 0.5rem;
}

.site-footer h3 {
  margin: 0;
  font-size: 1.4rem;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: var(--mint);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ==================== NEW ANIMATIONS ==================== */

@keyframes gentleFloat {
  0%, 100% { transform: translateY(-8px); }
  50%      { transform: translateY(8px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.85; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero load-in stagger */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-text,
.hero-copy .hero-actions,
.hero-copy .hero-pills {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.eyebrow          { animation-delay: 180ms; }
.hero h1          { animation-delay: 420ms; }
.hero-text        { animation-delay: 680ms; }
.hero-actions     { animation-delay: 920ms; }
.hero-pills       { animation-delay: 1250ms; }

/* Scroll reveal */
.section h2,
.feature-grid .card,
.steps .step {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section h2.revealed,
.feature-grid .card.revealed,
.steps .step.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the cards */
.feature-grid .card:nth-child(1) { transition-delay: 80ms; }
.feature-grid .card:nth-child(2) { transition-delay: 180ms; }
.feature-grid .card:nth-child(3) { transition-delay: 280ms; }

.steps .step:nth-child(1) { transition-delay: 100ms; }
.steps .step:nth-child(2) { transition-delay: 220ms; }
.steps .step:nth-child(3) { transition-delay: 340ms; }

/* Enhanced hovers */
.card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-14px);
  box-shadow: var(--shadow-lg);
}

.hero-pills span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-pills span:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(138, 255, 193, 0.25);
}

.btn {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px rgba(18, 60, 43, 0.22);
}

/* Thank-you page pop */
.thankyou-card {
  opacity: 0;
  animation: fadeInUp 1.1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    order: -1;
  }

  .machine-frame {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    gap: 0.8rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.2rem, var(--container));
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-tagline {
    font-size: 0.9rem;
  }

  .hero {
    padding: 2.75rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .machine-frame {
    width: 100%;
    min-height: 420px;
    padding: 1.5rem 1rem 1rem;
  }

  .machine-img {
    max-height: 380px;
  }

  .hero-visual-caption {
    max-width: 100%;
  }
}

.thankyou-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(138, 255, 193, 0.16), transparent 32%),
    linear-gradient(180deg, #f8fcfa 0%, #f3f8f5 100%);
}

.thankyou-card {
  max-width: 640px;
  padding: 2.5rem;
  text-align: center;
}

.thankyou-logo {
  width: 88px;
  margin: 0 auto 1rem;
}

.thankyou-card h1 {
  margin-top: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3rem);
}