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

/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --navy:        #0A1628;
  --navy-mid:    #122040;
  --navy-light:  #1a2d4d;
  --green:       #2ECC71;
  --green-dark:  #27AE60;
  --orange:      #F5A623;
  --orange-dark: #D4891F;
  --red:         #E74C3C;
  --red-dark:    #C0392B;
  --white:       #FFFFFF;
  --gray-50:     #F8F9FB;
  --gray-100:    #F1F3F5;
  --gray-200:    #E4E8EE;
  --gray-400:    #A0AABB;
  --gray-600:    #64748B;
  --gray-800:    #2D3748;
  --text:        #0A1628;
  --text-muted:  #4A5568;
  --nav-h:       68px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow-card: 0 2px 16px rgba(10,22,40,0.08);
  --shadow-hover: 0 12px 40px rgba(10,22,40,0.13);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--green);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,204,113,0.3);
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 2rem 1.75rem;
  flex-direction: column;
  gap: 0;
  z-index: 999;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: white; }
.nav-drawer a.cta-link {
  color: var(--green);
  font-weight: 700;
  border-bottom: none;
  margin-top: 0.25rem;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}

.section-tall {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 6rem;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.container-sm {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

/* ─── Typography ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { color: var(--text-muted); line-height: 1.78; }

.text-white { color: white; }
.text-white p { color: rgba(255,255,255,0.72); }
.text-white h1, .text-white h2, .text-white h3 { color: white; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-green {
  background: var(--green);
  color: var(--navy);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,204,113,0.3);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  border-color: white;
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Backgrounds ─────────────────────────────────────────────────── */
.bg-navy  { background: var(--navy); }
.bg-light { background: var(--gray-50); }
.bg-white { background: white; }

/* ─── Grids ───────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ─── Cards ───────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-hover-green {
  border-top: 3px solid var(--gray-200);
  transition: border-top-color 0.25s, transform 0.2s, box-shadow 0.2s;
}
.card-hover-green:hover {
  border-top-color: var(--green);
}

/* ─── Icon boxes ──────────────────────────────────────────────────── */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-wrap svg { width: 24px; height: 24px; }

.icon-navy { background: rgba(10,22,40,0.07); }
.icon-green { background: rgba(46,204,113,0.12); }

/* ─── Rating Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-green {
  background: rgba(46,204,113,0.12);
  color: #1a8045;
  border: 1px solid rgba(46,204,113,0.28);
}
.badge-green .badge-dot { background: var(--green); }

.badge-orange {
  background: rgba(245,166,35,0.12);
  color: #8a5c00;
  border: 1px solid rgba(245,166,35,0.28);
}
.badge-orange .badge-dot { background: var(--orange); }

.badge-red {
  background: rgba(231,76,60,0.1);
  color: #b92a18;
  border: 1px solid rgba(231,76,60,0.25);
}
.badge-red .badge-dot { background: var(--red); }

/* ─── Rating Tier Display ─────────────────────────────────────────── */
.rating-tiers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.rating-tier {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: white;
}
.tier-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.tier-green  { background: var(--green); }
.tier-orange { background: var(--orange); }
.tier-red    { background: var(--red); }

.rating-tier h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.rating-tier p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Claim Example Cards ─────────────────────────────────────────── */
.claim-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.claim-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.claim-ingredient {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.6rem;
}
.claim-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.claim-reasoning {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--gray-100);
}

/* ─── Contact Form ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ─── Step List ───────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.step-body p { font-size: 0.9375rem; }

/* ─── Pricing Cards ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: white;
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  border: 1.5px solid var(--gray-200);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.pricing-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.12);
}
.featured-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.plan-desc {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.plan-price {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}
.plan-period { font-size: 0.875rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.plan-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}
.plan-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Stat Strip ──────────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ─── Link with arrow ─────────────────────────────────────────────── */
.link-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.6rem; }

/* ─── Section heading helpers ─────────────────────────────────────── */
.section-heading {
  margin-bottom: 3rem;
}
.section-heading h2 { margin-bottom: 0.875rem; }
.section-heading p { max-width: 560px; font-size: 1.0625rem; }

/* ─── Divider ─────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--gray-200); }

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; color: white; }
.footer-logo span { color: var(--green); }
.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

/* ─── Animations ──────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ─── Horizontal Step Flip ───────────────────────────────────────── */
.flip-step {
  perspective: 600px;
  height: 82px;
}
.flip-step-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
  transform-style: preserve-3d;
}
.flip-step:hover .flip-step-inner { transform: rotateX(180deg); }
.flip-step-front,
.flip-step-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 0.75rem;
}
.flip-step-front { background: var(--gray-50); }
.flip-step-back {
  transform: rotateX(180deg);
  background: var(--navy);
}

/* ─── Flip Card ───────────────────────────────────────────────────── */
.flip-card { perspective: 1200px; }
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 480px;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}
.flip-card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

/* ─── Utilities ───────────────────────────────────────────────────── */
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-center .section-heading p { margin: 0 auto; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3     { grid-template-columns: 1fr; }
  .grid-4     { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-item  { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .nav-links   { display: none; }
  .nav-burger  { display: flex; }
  .grid-2      { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .section     { padding: 4rem 1.5rem; }
  .section-tall { padding: 7rem 1.5rem 4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }
}
