/* ============================================
   GROCERR AI — PROFESSIONAL WEBSITE
   Inspired by: Linear, Vercel, Stripe, Bambu Lab
   ============================================ */

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

:root {
  --bg: #0A0F1C;
  --bg-2: #0E1425;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --green: #22C55E;
  --green-glow: rgba(34,197,94,0.15);
  --text: #F1F5F9;
  --text-2: #94A3B8;
  --text-3: #64748B;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --max-w: 1200px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NOISE OVERLAY ============ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ============ BG ORBS ============ */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 70%);
  top: -200px; left: -100px;
  animation: float 20s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
  top: 40%; right: -150px;
  animation: float 25s ease-in-out infinite reverse;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  bottom: 10%; left: 20%;
  animation: float 30s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s var(--ease) forwards;
}
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.35s; }
.anim-d4 { animation-delay: 0.5s; }

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

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10,15,28,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-logo-img {
  border-radius: 8px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--green);
  color: #fff;
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover {
  background: #16A34A;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 80px;
  min-height: 100vh;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #22C55E, #06B6D4, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Stat pills */
.hero-stats-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-pill {
  font-size: 13px;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
}
.stat-pill strong {
  color: var(--text);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: #16A34A;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,197,94,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-outline:hover {
  border-color: var(--text-3);
  background: rgba(255,255,255,0.04);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ============ HERO PHONES ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-phone-group {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.phone-mockup {
  position: relative;
}
.phone-bezel {
  background: #232a3a;
  border-radius: 28px;
  padding: 8px;
  border: 1.5px solid rgba(255,255,255,0.12);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.phone-bezel img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}
.phone-center .phone-bezel {
  width: 260px;
  z-index: 3;
}
.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 60%);
  z-index: -1;
  border-radius: 50%;
}
.phone-side .phone-bezel {
  width: 200px;
  opacity: 0.7;
}
.phone-left {
  transform: translateX(30px) scale(0.85) rotate(-4deg);
  z-index: 1;
}
.phone-right {
  transform: translateX(-30px) scale(0.85) rotate(4deg);
  z-index: 1;
}

/* ============ MARQUEE ============ */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  overflow: hidden;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-content span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.marquee-dot {
  width: 4px !important;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
  display: inline-block;
  flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============ FEATURES GRID ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.4s var(--ease);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============ SHOWCASE (REAL SCREENSHOTS) ============ */
.showcase-section {
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(34,197,94,0.03) 50%, var(--bg) 100%);
}
.showcase-track {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.showcase-track:active {
  cursor: grabbing;
}
.showcase-slide {
  display: flex;
  gap: 32px;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.showcase-item {
  text-align: center;
  flex-shrink: 0;
}
.showcase-item .showcase-inner {
  transition: transform 0.18s ease-out;
  transform: scale(0.85);
  opacity: 1;
  perspective: 800px;
}
.showcase-item.in-view .showcase-inner {
  transform: scale(1.1);
  opacity: 1;
}
.phone-bezel-showcase {
  width: 220px;
  border: 1.5px solid rgba(255,255,255,0.15);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 20px rgba(34,197,94,0.08);
  transition: width 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.15s ease-out, border 0.15s ease-out;
  transform: rotateY(-6deg) rotateX(3deg);
}
.showcase-item:nth-child(even) .phone-bezel-showcase {
  transform: rotateY(6deg) rotateX(3deg);
}
.showcase-item.in-view .phone-bezel-showcase {
  border: 2px solid rgba(34,197,94,0.35);
  box-shadow:
    12px 16px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(34,197,94,0.15),
    0 0 60px rgba(34,197,94,0.05);
  width: 260px;
  transform: rotateY(-8deg) rotateX(4deg);
}
.showcase-item.in-view:nth-child(even) .phone-bezel-showcase {
  box-shadow:
    -12px 16px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(34,197,94,0.15),
    0 0 60px rgba(34,197,94,0.05);
  transform: rotateY(8deg) rotateX(4deg);
}
.showcase-label {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.5s var(--ease);
}
.showcase-item.in-view .showcase-label {
  color: var(--text);
}

/* ============ BENTO GRID ============ */
.bento-section {
  padding-top: 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.bento-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}
.bento-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.bento-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Bento: Scan animation */
.bento-visual {
  flex-shrink: 0;
}
.bento-scan-anim {
  width: 160px;
  height: 120px;
  position: relative;
}
.scan-frame {
  width: 120px;
  height: 100px;
  position: relative;
  margin: 0 auto;
}
.scan-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--green);
  border-style: solid;
  border-width: 0;
}
.scan-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.scan-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.scan-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.scan-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }
.scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: scanMove 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(34,197,94,0.4);
}
@keyframes scanMove {
  0%, 100% { top: 8px; }
  50% { top: calc(100% - 10px); }
}
.scan-items {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.scan-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  animation: tagPop 2s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes tagPop {
  0%, 60%, 100% { opacity: 0.4; transform: scale(0.95); }
  30% { opacity: 1; transform: scale(1); }
}

/* Bento: Waste meter */
.bento-mini-visual {
  margin-top: 16px;
}
.waste-meter {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.waste-fill {
  height: 100%;
  width: 98%;
  background: linear-gradient(90deg, var(--green), #06B6D4);
  border-radius: 100px;
  animation: fillGrow 2s var(--ease) forwards;
}
@keyframes fillGrow {
  from { width: 0; }
  to { width: 98%; }
}
.waste-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* Bento: Social icons */
.bento-social-icons {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.social-icon:hover { transform: scale(1.1); }
.si-ig { background: linear-gradient(135deg, #F56040, #C13584, #833AB4); }
.si-yt { background: #FF0000; }
.si-tt { background: #000; border: 1px solid rgba(255,255,255,0.15); }

/* Bento: Flags */
.bento-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.bento-flags span {
  font-size: 24px;
}
.flags-more {
  font-size: 13px !important;
  color: var(--text-3);
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* Bento: Chat preview */
.bento-chat-preview {
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bcp-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 200px;
}
.bcp-user {
  background: var(--green);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bcp-ai {
  background: rgba(255,255,255,0.06);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bcp-ai strong {
  color: var(--text);
}

/* ============ STEPS ============ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: 16px;
}
.step-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.step-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), rgba(34,197,94,0.2), var(--border));
  flex-shrink: 0;
  margin-top: 32px;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
  padding-top: 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all 0.4s var(--ease);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.tc-stars {
  color: #F59E0B;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card > p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.tc-author div {
  display: flex;
  flex-direction: column;
}
.tc-author strong {
  font-size: 14px;
  font-weight: 600;
}
.tc-author span {
  font-size: 12px;
  color: var(--text-3);
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
  transition: all 0.4s var(--ease);
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.pricing-featured {
  border-color: rgba(34,197,94,0.3);
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(6,182,212,0.04));
}
.pricing-featured:hover {
  border-color: rgba(34,197,94,0.5);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price {
  margin-bottom: 4px;
}
.price-big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}
.price-sub {
  font-size: 15px;
  color: var(--text-3);
}
.price-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-2);
}
.pricing-card li svg {
  flex-shrink: 0;
}
.pricing-card li.muted {
  color: var(--text-3);
  opacity: 0.5;
}
.pricing-card li strong {
  color: var(--text);
  font-weight: 600;
}
.pricing-card .btn,
.pricing-card .btn-outline {
  width: 100%;
  justify-content: center;
}

/* Pricing Comparison Table */
.pricing-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-card);
  font-size: 14px;
}
.pricing-compare-table thead {
  background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(6,182,212,0.04));
}
.pricing-compare-table th {
  padding: 20px 16px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.pricing-compare-table th.feature-col {
  text-align: left;
  width: 50%;
}
.pricing-compare-table th.plan-col {
  width: 25%;
}
.pricing-compare-table th.plan-plus {
  background: rgba(34,197,94,0.1);
  color: var(--green);
  position: relative;
}
.plus-badge {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 4px;
}
.pricing-compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  text-align: center;
}
.pricing-compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}
.pricing-compare-table td:last-child {
  background: rgba(34,197,94,0.03);
}
.pricing-compare-table td.check {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}
.pricing-compare-table td.cross {
  color: var(--text-3);
  opacity: 0.4;
  font-size: 18px;
}
.pricing-compare-table td strong {
  color: var(--green);
  font-weight: 700;
}
.plan-annual {
  font-size: 12px;
  color: var(--text-3);
}
.pricing-compare-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.pricing-compare-table tbody tr:last-child td {
  border-bottom: none;
}
.pricing-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}
.pricing-cta-row .btn {
  min-width: 180px;
  justify-content: center;
}

/* ============ CTA ============ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}
.cta-card {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--r-xl);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.06), transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.cta-card p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}
.cta-card .btn {
  position: relative;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-wide {
    grid-column: span 2;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,15,28,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-inline {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 40px;
  }
  .phone-center .phone-bezel {
    width: 220px;
  }
  .phone-side .phone-bezel {
    width: 160px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-wide {
    grid-column: span 1;
    flex-direction: column;
    gap: 20px;
  }
  .steps {
    flex-direction: column;
    gap: 24px;
  }
  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--border), rgba(34,197,94,0.2), var(--border));
  }
  .showcase-slide {
    gap: 16px;
  }
  .phone-bezel-showcase {
    width: 180px;
  }
  .showcase-item.in-view .phone-bezel-showcase {
    width: 220px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid .testimonial-card:last-child {
    grid-column: span 1;
    max-width: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-compare-table {
    font-size: 13px;
  }
  .pricing-compare-table th,
  .pricing-compare-table td {
    padding: 10px 8px;
  }
  .pricing-cta-row {
    flex-direction: column;
    align-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .cta-card {
    padding: 48px 24px;
  }
  .section {
    padding: 80px 0;
  }
}

/* ============ STATS SECTION ============ */
.stats-section {
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats-item {
  text-align: center;
  padding: 24px;
}
.stats-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stats-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============ FEATURE DEEP DIVE ============ */
.feature-deep {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-deep:last-child {
  margin-bottom: 0;
}
.fd-reverse {
  direction: rtl;
}
.fd-reverse > * {
  direction: ltr;
}
.fd-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.fd-text h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.fd-text p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.fd-list {
  list-style: none;
  padding: 0;
}
.fd-list li {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.fd-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.fd-visual {
  display: flex;
  justify-content: center;
  perspective: 900px;
}
.fd-phone {
  max-width: 240px;
  transform: rotateY(-10deg) rotateX(3deg);
  transition: transform 0.6s ease;
}
.fd-phone:hover {
  transform: rotateY(-4deg) rotateX(1deg);
}
.fd-reverse .fd-phone {
  transform: rotateY(10deg) rotateX(3deg);
}
.fd-reverse .fd-phone:hover {
  transform: rotateY(4deg) rotateX(1deg);
}
.fd-phone .phone-bezel {
  width: 100%;
  box-shadow:
    12px 16px 50px rgba(0,0,0,0.5),
    -4px -4px 20px rgba(255,255,255,0.03);
}
.fd-reverse .fd-phone .phone-bezel {
  box-shadow:
    -12px 16px 50px rgba(0,0,0,0.5),
    4px -4px 20px rgba(255,255,255,0.03);
}
.fd-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fd-mini-card {
  background: var(--bg);
  border: 1px solid var(--bc);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
}
.fd-mini-card:hover {
  transform: translateX(4px);
}
.fd-mini-card span {
  font-size: 18px;
}

/* ============ COMPARISON TABLE ============ */
.comparison-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  padding-bottom: 16px;
}
.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-2);
}
.comp-highlight {
  background: rgba(34,197,94,0.04);
}
.comparison-table th.comp-highlight {
  color: var(--green);
}
.comp-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}
.comp-no {
  color: #EF4444;
  font-weight: 700;
  font-size: 18px;
}
.comp-partial {
  color: #F59E0B;
  font-weight: 600;
  font-size: 13px;
}

/* ============ IMPACT GRID ============ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: all 0.4s var(--ease);
}
.impact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.impact-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.impact-icon svg {
  stroke: var(--c);
}
.impact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.impact-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============ FOUNDER ============ */
.founder-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
}
.founder-avatar {
  flex-shrink: 0;
}
.founder-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #06B6D4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.founder-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.founder-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.founder-quote {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(34,197,94,0.04);
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
}
.founder-quote blockquote {
  font-size: 16px;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 8px;
}
.founder-quote cite {
  font-size: 13px;
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}

/* ============ FAQ ACCORDION ============ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover {
  border-color: var(--border-hover);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-q svg {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0 24px;
}
.faq-a p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-a a {
  color: var(--green);
  text-decoration: underline;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* ============ LEGAL PAGES ============ */
.legal-page {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
}
.legal-page .container {
  max-width: 760px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.legal-page .updated {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-page p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page ul {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}
.legal-page li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  padding: 4px 0 4px 20px;
  position: relative;
}
.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.legal-page a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.info-box {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 16px 0;
}
.info-box p {
  margin-bottom: 0;
}
.warning-box {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 16px 0;
}
.warning-box p {
  color: var(--text);
  margin-bottom: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}
.data-table td {
  color: var(--text-2);
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge.red {
  background: rgba(239,68,68,0.1);
  color: #EF4444;
}

/* Legal page old header compat */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 0;
  background: rgba(10,15,28,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.header .logo img {
  border-radius: 8px;
}
.header .nav {
  display: flex;
  gap: 24px;
}
.header .nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.header .nav a:hover {
  color: var(--text);
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(10,15,28,0.97);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: 14px;
  color: var(--text-2);
}

/* ============ RESPONSIVE (additional) ============ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-deep {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fd-reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stats-number {
    font-size: 32px;
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .founder-card {
    flex-direction: column;
    padding: 32px;
    gap: 24px;
  }
  .comparison-table table {
    min-width: 500px;
  }
  .header .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .phone-left, .phone-right {
    display: none;
  }
  .phone-center .phone-bezel {
    width: 240px;
  }
  .showcase-slide {
    gap: 12px;
  }
  .phone-bezel-showcase {
    width: 160px;
  }
  .showcase-item.in-view .phone-bezel-showcase {
    width: 200px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .bento-scan-anim {
    width: 120px;
  }
}
