/* ============================================================
   PantryRx Marketing v2 — Obsidian Lens Design System
   ============================================================ */

:root {
  --v2-bg: #0F1419;
  --v2-surface: #161B22;
  --v2-elevated: #1C2333;
  --v2-border: rgba(255, 255, 255, 0.08);
  --v2-border-accent: rgba(143, 220, 0, 0.25);
  --v2-lime: #8FDC00;
  --v2-lime-hover: #A0E830;
  --v2-lime-subtle: rgba(143, 220, 0, 0.12);
  --v2-text: #E6EDF3;
  --v2-text-muted: #8B949E;
  --v2-text-dim: #6E7681;
  --v2-glass-bg: rgba(22, 27, 34, 0.7);
  --v2-glass-border: rgba(255, 255, 255, 0.08);
  --v2-glass-blur: 16px;
  --v2-radius: 16px;
  --v2-radius-sm: 10px;
  --v2-radius-lg: 24px;
  --v2-transition: 200ms ease;
}

/* ---- Typography ---- */

.v2-headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--v2-text);
  letter-spacing: -0.02em;
}

.v2-headline-xl {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.v2-headline-lg {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.v2-headline-md {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.v2-headline .v2-accent {
  color: var(--v2-lime);
  font-style: italic;
}

.v2-body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--v2-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.v2-body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.v2-kicker {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--v2-lime);
  margin-bottom: 1rem;
}

.v2-subhead {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.125rem;
  color: var(--v2-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ---- Layout ---- */

.v2-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.v2-shell-wide {
  width: min(1400px, calc(100% - 48px));
  margin-inline: auto;
}

.v2-section {
  padding: 6rem 0;
  position: relative;
}

.v2-section--sm {
  padding: 4rem 0;
}

.v2-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

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

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

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

/* ---- Hero ---- */

.v2-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(143, 220, 0, 0.07), transparent 60%),
    radial-gradient(600px 400px at 85% 5%, rgba(30, 79, 216, 0.06), transparent 60%);
  pointer-events: none;
}

.v2-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.v2-hero-copy {
  position: relative;
  z-index: 1;
}

.v2-hero-visual {
  position: relative;
  z-index: 1;
}

.v2-hero-visual img,
.v2-hero-visual video {
  width: 100%;
  border-radius: var(--v2-radius-lg);
  border: 1px solid var(--v2-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

/* ---- Buttons ---- */

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--v2-transition);
}

.v2-btn-primary {
  background: var(--v2-lime);
  border-color: var(--v2-lime);
  color: #0F1419;
}

.v2-btn-primary:hover,
.v2-btn-primary:focus-visible {
  background: var(--v2-lime-hover);
  border-color: var(--v2-lime-hover);
  color: #0F1419;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(143, 220, 0, 0.25);
}

.v2-btn-secondary {
  background: transparent;
  border-color: var(--v2-border);
  color: var(--v2-text);
}

.v2-btn-secondary:hover,
.v2-btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.v2-btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.v2-btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---- Glass Cards ---- */

.v2-glass-card {
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-glass-border);
  background: var(--v2-glass-bg);
  backdrop-filter: blur(var(--v2-glass-blur));
  -webkit-backdrop-filter: blur(var(--v2-glass-blur));
  padding: 2rem;
  transition: border-color var(--v2-transition), transform var(--v2-transition);
}

.v2-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.v2-glass-card--interactive:hover {
  transform: translateY(-2px);
  border-color: var(--v2-border-accent);
}

.v2-glass-card h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--v2-text);
  margin-bottom: 0.75rem;
}

.v2-glass-card p {
  color: var(--v2-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Metric Cards ---- */

.v2-metric-card {
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border-accent);
  background: linear-gradient(145deg, rgba(143, 220, 0, 0.06), rgba(22, 27, 34, 0.8));
  padding: 1.5rem;
  text-align: center;
}

.v2-metric-card .v2-metric-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--v2-lime);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.v2-metric-card .v2-metric-label {
  font-size: 0.85rem;
  color: var(--v2-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---- Step Cards ---- */

.v2-step-card {
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border);
  background: var(--v2-glass-bg);
  padding: 1.75rem;
  position: relative;
}

.v2-step-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--v2-lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.v2-step-card h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--v2-text);
  margin-bottom: 0.5rem;
}

.v2-step-card p {
  color: var(--v2-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- Trust Badges ---- */

.v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v2-badge--lime {
  background: var(--v2-lime-subtle);
  border: 1px solid var(--v2-border-accent);
  color: var(--v2-lime);
}

.v2-badge--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--v2-border);
  color: var(--v2-text-muted);
}

/* ---- Trust Section ---- */

.v2-trust-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border);
  background: var(--v2-glass-bg);
}

.v2-trust-card .v2-trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--v2-lime-subtle);
  border: 1px solid var(--v2-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.v2-trust-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--v2-text);
  margin-bottom: 0.5rem;
}

.v2-trust-card p {
  font-size: 0.85rem;
  color: var(--v2-text-muted);
}

/* ---- Quote/Testimonial ---- */

.v2-quote {
  border-left: 3px solid var(--v2-lime);
  padding: 2rem 2.5rem;
  border-radius: 0 var(--v2-radius) var(--v2-radius) 0;
  background: var(--v2-glass-bg);
  border-top: 1px solid var(--v2-border);
  border-right: 1px solid var(--v2-border);
  border-bottom: 1px solid var(--v2-border);
}

.v2-quote blockquote {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--v2-text);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.v2-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--v2-text-muted);
}

/* ---- Video Player ---- */

.v2-video-wrapper {
  position: relative;
  border-radius: var(--v2-radius);
  overflow: hidden;
  border: 1px solid var(--v2-border);
  background: #000;
}

.v2-video-wrapper video {
  width: 100%;
  display: block;
}

.v2-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 25, 0.4);
  cursor: pointer;
  transition: opacity var(--v2-transition);
}

.v2-video-overlay:hover {
  opacity: 0.8;
}

.v2-video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--v2-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(143, 220, 0, 0.3);
}

.v2-video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: #0F1419;
  margin-left: 3px;
}

/* ---- Screenshots ---- */

.v2-phone-frame {
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

.v2-phone-frame img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--v2-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.v2-screenshot-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.v2-screenshot-grid .v2-phone-frame {
  flex: 0 0 280px;
  scroll-snap-align: center;
}

/* ---- CTA Banner ---- */

.v2-cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--v2-radius-lg);
  border: 1px solid var(--v2-border);
  background: linear-gradient(160deg, rgba(143, 220, 0, 0.04), rgba(22, 27, 34, 0.9));
  position: relative;
  overflow: hidden;
}

.v2-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px at 50% 0%, rgba(143, 220, 0, 0.08), transparent 70%);
  pointer-events: none;
}

.v2-cta-banner .v2-headline {
  position: relative;
}

.v2-cta-banner .v2-btn-group {
  justify-content: center;
}

/* ---- Doc Pages (Privacy, Terms, etc.) ---- */

.v2-doc-page {
  padding: 4rem 0 6rem;
}

.v2-doc-hero {
  padding: 6rem 0 3rem;
  text-align: left;
}

.v2-doc-hero .v2-headline {
  margin-bottom: 1rem;
}

.v2-doc-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.v2-doc-date {
  font-size: 0.9rem;
  color: var(--v2-text-dim);
}

.v2-doc-section {
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border);
  background: var(--v2-glass-bg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.v2-doc-section h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--v2-text);
  margin-bottom: 1rem;
}

.v2-doc-section h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--v2-text);
  margin-bottom: 0.75rem;
}

.v2-doc-section p {
  color: var(--v2-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.v2-doc-section p:last-child {
  margin-bottom: 0;
}

.v2-doc-section ul,
.v2-doc-section ol {
  color: var(--v2-text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.v2-doc-section li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.v2-doc-section a {
  color: var(--v2-lime);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.v2-doc-section a:hover {
  color: var(--v2-lime-hover);
}

.v2-doc-section strong {
  color: var(--v2-text);
}

.v2-doc-toc {
  position: sticky;
  top: 100px;
}

.v2-doc-toc a {
  display: block;
  padding: 0.5rem 1rem;
  border-left: 2px solid var(--v2-border);
  text-decoration: none;
  color: var(--v2-text-muted);
  font-size: 0.9rem;
  transition: all var(--v2-transition);
}

.v2-doc-toc a:hover,
.v2-doc-toc a.active {
  color: var(--v2-lime);
  border-left-color: var(--v2-lime);
}

/* ---- Precision Path / Methodology ---- */

.v2-precision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.v2-precision-image {
  border-radius: var(--v2-radius-lg);
  overflow: hidden;
  border: 1px solid var(--v2-border);
}

.v2-precision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Feature Cards ---- */

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

.v2-feature-card {
  border-radius: var(--v2-radius);
  border: 1px solid var(--v2-border);
  background: var(--v2-glass-bg);
  padding: 2rem;
  text-align: center;
}

.v2-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  background: var(--v2-lime-subtle);
  border: 1px solid var(--v2-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.v2-feature-card h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--v2-text);
  margin-bottom: 0.5rem;
}

.v2-feature-card p {
  color: var(--v2-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---- App Store Button ---- */

.v2-appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #0F1419;
  border-radius: 12px;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--v2-transition);
}

.v2-appstore-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.v2-appstore-btn svg {
  width: 22px;
  height: 22px;
}

/* ---- Animations ---- */

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

@keyframes v2-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.v2-animate-up {
  animation: v2-fadeUp 0.7s ease forwards;
}

.v2-animate-in {
  animation: v2-fadeIn 0.5s ease forwards;
}

.v2-delay-1 { animation-delay: 0.1s; }
.v2-delay-2 { animation-delay: 0.2s; }
.v2-delay-3 { animation-delay: 0.3s; }
.v2-delay-4 { animation-delay: 0.4s; }

/* ---- Separator ---- */

.v2-divider {
  border: 0;
  border-top: 1px solid var(--v2-border);
  margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .v2-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .v2-hero-copy {
    order: 1;
  }

  .v2-hero-visual {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }

  .v2-hero .v2-btn-group {
    justify-content: center;
  }

  .v2-hero .v2-subhead {
    margin-inline: auto;
  }

  .v2-precision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .v2-grid-3,
  .v2-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .v2-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .v2-section {
    padding: 4rem 0;
  }

  .v2-hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .v2-shell {
    width: min(100%, calc(100% - 32px));
  }

  .v2-grid-2,
  .v2-grid-3,
  .v2-grid-4,
  .v2-feature-grid {
    grid-template-columns: 1fr;
  }

  .v2-doc-section {
    padding: 1.75rem;
  }

  .v2-glass-card {
    padding: 1.5rem;
  }

  .v2-btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .v2-btn-group .v2-btn {
    justify-content: center;
  }

  .v2-cta-banner {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .v2-hero {
    padding: 5rem 0 3rem;
  }

  .v2-headline-xl {
    font-size: 2rem;
  }

  .v2-headline-lg {
    font-size: 1.6rem;
  }
}
