/* 
  ========= GLOBAL THEME TOKENS =========
  Adjust these CSS variables to quickly tweak the entire theme.
*/
:root {
  --color-bg: #0a1221; /* main page background color (dark blue-gray) */
  --color-surface: #1e293b; /* card/section surface background */
  --color-surface-alt: #172032; /* alternate section background */
  --color-primary: #3b82f6; /* primary accent (bright blue) */
  --color-primary-soft: #3b82f620; /* soft transparent version of primary */
  --color-accent: #22c55e; /* subtle accent (green) */
  --color-text: #f1f5f9; /* main text color (light gray) */
  --color-muted: #94a3b8; /* muted/secondary text */
  --color-border-subtle: #334155; /* subtle border color */

  --radius-lg: 24px; /* large border radius for major surfaces */
  --radius-md: 16px; /* medium radius for cards */
  --radius-sm: 999px; /* fully rounded, used on pills/buttons */

  --shadow-soft: 0 22px 55px rgba(15, 23, 42, 0.14); /* global soft shadow */
  --transition-fast: 180ms ease-out; /* fast UI transitions */
  --transition-med: 260ms ease-out; /* medium UI transitions */

  --hero-height: 520px; /* height for hero visual / image mask */
  --max-width: 1120px; /* max width for central content */
  --gap-lg: 40px; /* large gap between layout chunks */
  --gap-md: 24px; /* medium gap */
  --gap-sm: 16px; /* small gap */
}

/* ========== CSS RESET / BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 0; /* No padding needed for floating header */
  scroll-behavior: smooth;
}

/* Ensure page starts at top */
html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.6) 0%,
    rgba(15, 23, 42, 0.45) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 999px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 1;
  width: auto;
  min-width: fit-content;
}

.site-header.hidden {
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
}

/* Refractive glass effect overlay */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15) 50%,
    transparent
  );
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 24px;
  position: relative;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  transition: transform var(--transition-fast);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-image:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Hidden by default, shown on mobile */
.menu-toggle {
  display: none;
}

.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-primary); /* underline color (solid) */
  border-radius: 999px;
  transition: width var(--transition-fast), left var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 80%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  margin-left: auto;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--color-text);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background-color var(--transition-fast);
}
.header-cta:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.header-cta:active {
  transform: translateY(0) scale(0.99);
}

.cta-icon,
.nav-cta-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.45));
}

.floating-cta {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 50px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.55), rgba(34, 197, 94, 0.45)),
    rgba(30, 41, 59, 0.35);
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 20px rgba(59, 130, 246, 0.28);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  transition: transform 180ms ease, box-shadow 200ms ease, filter 200ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}

.floating-cta:hover {
  transform: translateY(-2px) scale(1.03);
}

.floating-cta:active {
  transform: translateY(0) scale(0.99);
}

.floating-cta img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

.floating-cta.hidden {
  opacity: 0;
  transform: translateY(-140%);
  pointer-events: none;
}

.nav-cta-mobile {
  display: none;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ========== BUTTONS ========== */
.btn {
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #f1f5f9;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(241, 245, 249, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.6);
  transform: translateY(-3px) translateX(2px);
  border-color: rgba(241, 245, 249, 0.65);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.btn-ghost .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

.btn-small {
  padding: 7px 14px;
  font-size: 0.8rem;
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 80px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--gap-lg);
}

.hero-content h1 {
  font-size: clamp(3rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0 14px;
  font-weight: 700;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-subtitle {
  color: var(--color-muted);
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

/* ========== HERO IMAGE MASK ========== */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: var(--hero-height);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-subtle);
  padding: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.hero-image-full {
  position: absolute;
  top: 12%;
  bottom: 16%;
  left: 6%;
  right: 6%;
  border-radius: 18px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-out 0.5s;
  z-index: 0;
  pointer-events: none;
}

.image-slice {
  position: absolute;
  top: 12%;
  bottom: 16%;
  width: 26%;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--color-surface-alt);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.45s ease;
}

/* Slice positions (left, center, right) */
.slice-1 {
  left: 6%;
  background-position: 12% 50%;
}
.slice-2 {
  left: 37%;
  background-position: 50% 50%;
}
.slice-3 {
  right: 6%;
  background-position: 88% 50%;
}

/* Animation: 1 down, 1 up, 1 down. Each cycle: 2 go up, 1 comes down. */
@keyframes rect-float-1 {
  0%, 100% { transform: translateY(20px); }
  33%      { transform: translateY(-20px); }
  66%      { transform: translateY(20px); }
}
@keyframes rect-float-2 {
  0%, 100% { transform: translateY(-20px); }
  33%      { transform: translateY(20px); }
  66%      { transform: translateY(20px); }
}
@keyframes rect-float-3 {
  0%, 100% { transform: translateY(20px); }
  33%      { transform: translateY(20px); }
  66%      { transform: translateY(-20px); }
}

.slice-1 { animation: rect-float-1 6s ease-in-out infinite; }
.slice-2 { animation: rect-float-2 6s ease-in-out infinite; }
.slice-3 { animation: rect-float-3 6s ease-in-out infinite; }

/* Hover: rectangles move to center, then disappear; full image appears (no enlargement) */
.hero-image-wrapper:hover .image-slice,
.hero-image-wrapper.is-hovering .image-slice {
  transform: translateY(0) !important;
  animation: none !important;
  opacity: 0;
  pointer-events: none;
}

.hero-image-wrapper:hover .hero-image-full,
.hero-image-wrapper.is-hovering .hero-image-full {
  opacity: 1;
}

.hero-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper.cycle-fade .image-slice,
.hero-image-wrapper.cycle-fade .hero-image-full {
  opacity: 0;
}


.hover-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  font-size: 0.75rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========== SECTION DIVIDERS ========== */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border-subtle) 20%,
    var(--color-border-subtle) 80%,
    transparent
  );
  margin: 0 auto;
  max-width: var(--max-width);
  position: relative;
}

.section-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-bg), 0 0 0 5px var(--color-border-subtle);
}

/* ========== GENERIC SECTIONS ========== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  padding: 80px 0;
  background: var(--color-surface-alt);
  position: relative;
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.section-header {
  max-width: 620px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Shop section specific styling */
.shop-section .section-header {
  max-width: 820px;
  text-align: left;
  margin: 0;
}

.shop-section .section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.shop-section .section-header p {
  max-width: 640px;
  margin: 0;
  text-align: left;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Mission section specific styling */
.mission-section .section-header {
  max-width: 100%;
  text-align: center;
}

.mission-section .section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ========== MISSION SECTION ========== */
.mission-section {
  padding: 120px 0;
  background: var(--color-bg);
}

.mission-inner {
  gap: 32px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap-md);
  max-width: 1000px;
  margin: 0 auto;
}

.mission-point {
  position: relative;
  padding: 40px 40px 44px;
  border-radius: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  isolation: isolate;
  transform-origin: center center;
  --glow: rgba(140, 210, 255, 0.32);
  --glow-strong: rgba(140, 210, 255, 0.82);
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.48, 1),
    box-shadow 380ms ease, border-color 360ms ease, opacity 240ms ease;
}

.mission-point::before {
  content: "";
  position: absolute;
  inset: -70px;
  border-radius: 52px;
  background: radial-gradient(
    circle at center,
    rgba(140, 210, 255, 0.18) 0%,
    rgba(140, 210, 255, 0.14) 38%,
    rgba(140, 210, 255, 0.09) 55%,
    rgba(140, 210, 255, 0.04) 72%,
    rgba(140, 210, 255, 0.01) 88%,
    rgba(140, 210, 255, 0) 100%
  );
  filter: blur(32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease-out;
  z-index: 0;
}

.mission-point:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--glow-strong);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px var(--glow),
    0 0 18px rgba(140, 210, 255, 0.4),
    0 0 40px rgba(140, 210, 255, 0.32);
  z-index: 5;
}

.mission-point:hover::before {
  opacity: 1;
}

.mission-point h3 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 600;
}

.mission-point p {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.shop-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
}

.shop-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: clamp(320px, 45vw, 460px);
  background: linear-gradient(135deg, #0f172a, #111827);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.shop-card-media {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-card:hover .shop-card-media {
  transform: scale(1.01);
}

.price-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  z-index: 2;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

.product-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-subtext {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn-pill {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
}

.cta-button {
  align-self: flex-start;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.arrow-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.arrow-btn:active {
  transform: translateY(0);
}
/* ========== FOOTER ========== */
.site-footer {
  margin-top: 40px;
 
  background: rgb(7, 14, 22);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-lg);
  padding: 24px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-quick-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: block;
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 4px;
  transition: color var(--transition-fast), transform var(--transition-fast);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--color-primary);
  transform: none;
}

.footer-rights {
  font-size: 1rem;
  color: var(--color-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: var(--color-surface);
  transition: background-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  border-color: transparent;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: var(--fade-delay, 0s);
  opacity: 0;
}

.slide-in {
  animation: slideIn 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform, opacity;
}

.delay-1 {
  --fade-delay: 0.08s;
}

.delay-2 {
  --fade-delay: 0.16s;
}

.delay-3 {
  --fade-delay: 0.24s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(var(--slide-offset, 40px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero elements animate immediately on load */
.hero .fade-in-up {
  animation: fadeInUp 0.9s ease-out forwards;
  animation-delay: var(--fade-delay, 0s);
}

/* Scroll-triggered animations */
.fade-in-up.visible {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: var(--fade-delay, 0s);
  opacity: 1;
}

/* Subtle pulse animation for interactive elements */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.btn-primary:active {
  animation: pulse 0.3s ease-out;
}

/* Stagger animations for grid items */
.mission-point:nth-child(1) {
  animation-delay: 0s;
}

.mission-point:nth-child(2) {
  animation-delay: 0.15s;
}

.mission-point:nth-child(3) {
  animation-delay: 0.3s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 780px) {
  .site-header {
    top: 12px;
    left: 12px;
    right: auto;
    width: calc(100% - 200px); /* adjust header width; tweak this value to fine-tune spacing */
    max-width: 76%;
    transform: none;
    border-radius: 18px;
  }

  .site-header.hidden {
    transform: translateY(-120%);
  }

  .header-inner {
    gap: 12px;
    justify-content: flex-start;
    padding: 6px 12px;
  }

  .brand {
    order: 1;
  }

  .main-nav {
    order: 3;
    gap: 20px;
  }

  .floating-cta {
    top: 20px;
    right: 60px;
    bottom: auto;
    padding: 9px 14px;
    font-size: 0.85rem;
    min-width: unset;
    max-width: none;
    justify-content: center;
  }

  .header-cta {
    display: none;
  }

  .logo-image {
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-image-wrapper {
    max-width: 360px;
    margin: 0 auto;
  }

  .shop-showcase {
    grid-template-columns: 1fr;
  }

  .shop-card {
    height: clamp(260px, 60vw, 340px);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .section-alt {
    padding: 60px 0;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    order: 1;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 260ms ease, opacity 200ms ease, transform 200ms ease;
  }

  .main-nav.open {
    max-height: 180px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-cta-mobile {
    display: inline-flex;
    width: 100%;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.85);
    padding: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast),
      box-shadow var(--transition-fast);
  }

  .menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 999px;
    transition: transform 200ms ease, opacity 180ms ease;
  }

  .menu-toggle.is-open .bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle.is-open .bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-center {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    width: 100%;
    justify-content: center;
  }

  .product-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  /* Mission cards stack */
  .mission-grid {
    grid-template-columns: 1fr;
  }

  /* Center CTA + arrows in shop section */
  .shop-details {
    align-items: center;
    text-align: center;
  }
  .cta-button {
    align-self: center;
  }
  .shop-controls {
    justify-content: center;
  }
}
