/* ============================================================
   PANTRI LANDING PAGE — APPLE-LEVEL DESIGN SYSTEM
   Premium whitespace, cinematic animations, refined interactions
   ============================================================ */

/* ============================================================
   RESET & GLOBAL STYLES
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: light;
}

/* Adjust scroll padding for mobile */
@media (max-width: 1023px) {
  html {
    scroll-padding-top: 100px;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #1F2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY — MASSIVE & TIGHT
   ============================================================ */

h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #1F2937;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1F2937;
}

h3 {
  font-size: clamp(1.375rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2937;
}

p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #6B7280;
}

/* ============================================================
   GRADIENT TEXT (Hero Headline)
   ============================================================ */

.hero-headline {
  background: linear-gradient(135deg, #1F2937 0%, #EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   WHITESPACE & SECTION PADDING
   ============================================================ */

section {
  position: relative;
  width: 100%;
}

section:first-of-type {
  padding-top: 6rem;
}

/* Desktop: Extreme whitespace */
@media (min-width: 1024px) {
  section {
    padding-top: 6rem;
    padding-bottom: 8rem;
  }

  section:first-of-type {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Mobile: Still generous */
@media (max-width: 768px) {
  section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* ============================================================
   NAVIGATION — FROSTED GLASS FROM START
   ============================================================ */

#navbar {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle Button */
#mobile-menu-btn {
  color: #1F2937;
  transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu-btn:hover {
  background-color: #F3F4F6;
}

#mobile-menu-btn[aria-expanded="true"] {
  background-color: #EA580C;
  color: white;
}

/* Mobile Menu Overlay */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#mobile-menu.hidden {
  animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.nav-link {
  color: #1F2937;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.nav-link:hover {
  color: #EA580C;
}

.nav-link:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 4px;
}

/* ============================================================
   BUTTONS — REFINED PILL SHAPES
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 2.25rem;
  background-color: #EA580C;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.1), 0 2px 4px rgba(234, 88, 12, 0.1), 0 8px 16px rgba(234, 88, 12, 0.15);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #C2410C;
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.1), 0 4px 12px rgba(194, 65, 12, 0.2), 0 16px 32px rgba(194, 65, 12, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.05), 0 2px 4px rgba(194, 65, 12, 0.1);
}

.btn-primary:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 2px;
}

.btn-large {
  padding: 1.25rem 2.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

/* ============================================================
   SECONDARY LINKS
   ============================================================ */

.secondary-cta {
  color: #6B7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

.secondary-cta::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #EA580C;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.secondary-cta:hover {
  color: #EA580C;
}

.secondary-cta:hover::after {
  width: 100%;
}

/* ============================================================
   FADE-UP ANIMATIONS — CINEMATIC & SLOW
   ============================================================ */

.fade-up-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for multiple elements */
.fade-up-card:nth-child(1) {
  transition-delay: 0ms;
}

.fade-up-card:nth-child(2) {
  transition-delay: 150ms;
}

.fade-up-card:nth-child(3) {
  transition-delay: 300ms;
}

.fade-up-card:nth-child(4) {
  transition-delay: 450ms;
}

.fade-up-card:nth-child(5) {
  transition-delay: 600ms;
}

.feature-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-block.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .fade-up-card,
  .feature-block {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   CARD STYLES — REFINED DEPTH & LAYERING
   ============================================================ */

.problem-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03),
              0 2px 4px rgba(0, 0, 0, 0.05),
              0 12px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.problem-card:hover {
  border-color: rgba(234, 88, 12, 0.1);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.08),
              0 20px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.pricing-card {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03),
              0 2px 4px rgba(0, 0, 0, 0.05),
              0 12px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-card:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06),
              0 4px 12px rgba(0, 0, 0, 0.1),
              0 20px 48px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ============================================================
   ACCORDION — MINIMAL & CLEAN
   ============================================================ */

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 1.5rem 0;
}

.accordion-item:first-child {
  padding-top: 0;
}

.accordion-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.accordion-button {
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1F2937;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-button:hover {
  color: #EA580C;
}

.accordion-button:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 4px;
}

.accordion-toggle {
  font-size: 1.5rem;
  color: #EA580C;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  line-height: 1;
}

.accordion-button[aria-expanded="true"] .accordion-toggle {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-content.open {
  max-height: 600px;
  opacity: 1;
  padding-top: 1.5rem;
  padding-bottom: 0;
}

.accordion-text {
  color: #6B7280;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

/* ============================================================
   STAT COUNTERS — ENORMOUS & IMPACTFUL
   ============================================================ */

.stat-number {
  font-size: clamp(3.5rem, 14vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: #EA580C;
  letter-spacing: -0.04em;
}

/* ============================================================
   BACKGROUND COLORS & GRADIENTS
   ============================================================ */

.bg-pantri-warm-bg {
  background-color: #FFF8F5;
}

.bg-pantri-light-bg {
  background-color: #FAFAFA;
}

.bg-pantri-teal-bg {
  background-color: #F0FDF4;
}

.bg-pantri-dark-bg {
  background-color: #111827;
}

/* ============================================================
   LINKS & FOCUS STATES
   ============================================================ */

a {
  color: #1F2937;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
  color: #EA580C;
}

a:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 4px;
  border-radius: 2px;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */

footer {
  background-color: #111827;
  color: white;
}

footer h3,
footer h4 {
  color: white;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
}

/* Footer responsive grid */
@media (max-width: 640px) {
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  footer h4 {
    margin-top: 0;
  }
}

/* ============================================================
   IMAGES & RESPONSIVE MEDIA
   ============================================================ */

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

.feature-block img {
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #EA580C;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s ease-out;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY
   ============================================================ */

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 1.75rem;
    letter-spacing: -0.015em;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.9375rem;
  }

  .stat-number {
    font-size: 2.75rem;
  }

  .accordion-button {
    font-size: 1rem;
  }
}

/* ============================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================ */

/* High contrast mode */
@media (prefers-contrast: more) {
  .btn-primary {
    border: 2px solid currentColor;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
  nav,
  footer,
  .cta-button {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================================
   UTILITY: SMOOTH TRANSITIONS
   ============================================================ */

button,
a {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   PERFORMANCE: OPTIMIZE ANIMATIONS
   ============================================================ */

.fade-up-card.visible,
.feature-block.visible {
  will-change: auto;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    scroll-behavior: smooth;
  }
}

/* ============================================================
   FORM ELEMENTS (for future use)
   ============================================================ */

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #EA580C;
  outline-offset: 2px;
}

/* ============================================================
   MICRO-INTERACTIONS & POLISH
   ============================================================ */

/* Smooth color transitions for themed elements */
.text-pantri-orange {
  color: #EA580C;
}

.text-pantri-grey {
  color: #6B7280;
}

.text-pantri-dark {
  color: #1F2937;
}

/* Border transitions */
button,
a {
  border-color: transparent;
}

/* ============================================================
   RESPONSIVE GRID SYSTEM
   ============================================================ */

@media (max-width: 768px) {
  .hidden-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hidden-desktop {
    display: none;
  }
}

/* ============================================================
   MOBILE-SPECIFIC IMPROVEMENTS
   ============================================================ */

/* Hero section — better mobile spacing */
@media (max-width: 640px) {
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Improve problem cards stacking on extra small screens */
  .grid.sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  /* Stats section — ensure proper stacking on very small screens */
  .grid.sm\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Feature blocks — text-first layout */
  .feature-block {
    grid-template-columns: 1fr !important;
  }

  /* Footer stacks to single column on mobile */
  .grid.sm\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Extra small screens (under 375px) */
@media (max-width: 374px) {
  .btn-primary,
  .btn-large {
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Reduce stat numbers on tiny screens */
  .stat-number {
    font-size: 2.25rem;
  }

  /* Reduce padding on problem cards for tiny screens */
  .problem-card {
    padding: 1.5rem;
  }
}

/* Small screens (375px - 640px) */
@media (min-width: 375px) and (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  p {
    font-size: 0.9375rem;
  }
}
