/* ==============================================================================
   MUDRAHQ — MULTI-DEVICE RESPONSIVE FINTECH DESIGN SYSTEM
   Full Breakpoint Hierarchy: Ultrawide (1440px+) | Laptop (1025-1440px) |
   Tablet (769-1024px) | Mobile (481-768px) | Compact Mobile (<=480px)
   ============================================================================== */

:root {
  --bg-deep: #06090E;
  --bg-surface: #0B101C;
  --bg-surface-elevated: #11182B;
  --bg-bezel-outer: rgba(255, 255, 255, 0.035);
  --bg-bezel-inner: #0C1220;

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(16, 185, 129, 0.45);
  --border-highlight: rgba(255, 255, 255, 0.14);

  --accent-emerald: #10B981;
  --accent-emerald-bright: #34D399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.22);
  --accent-indigo: #6366F1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.2);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;
  --text-inverted: #041B13;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --cubic-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle Film-Grain Texture */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Radial Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: min(700px, 90vw);
  height: min(500px, 60vh);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(99, 102, 241, 0.08) 60%, transparent 80%);
}

.orb-2 {
  width: min(500px, 80vw);
  height: min(500px, 60vh);
  top: 45%;
  right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Floating Island Navigation */
.island-nav-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  padding: 0 1rem;
}

.island-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(11, 16, 28, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: 9999px;
  padding: 0.45rem 0.65rem 0.45rem 1.25rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  max-width: 1020px;
  width: 100%;
  transition: all 0.3s var(--cubic-spring);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-glyph {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFF;
}

.accent-glow {
  color: var(--accent-emerald-bright);
  text-shadow: 0 0 12px var(--accent-emerald-glow);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #FFF;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-login {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-login:hover {
  color: #FFF;
}

/* Hamburger Button (Mobile / Tablet) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hairline);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger .bar {
  width: 18px;
  height: 2px;
  background: #FFF;
  border-radius: 9999px;
  transition: all 0.25s var(--cubic-spring);
}

.nav-hamburger.active .bar-1 {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-hamburger.active .bar-2 {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Slide-Down Drawer */
.mobile-drawer {
  display: none;
  width: 100%;
  max-width: 440px;
  background: rgba(11, 16, 28, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin-top: 0.65rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  animation: slideDown 0.25s var(--cubic-spring);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drawer-link {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Button-In-Button Pill CTA */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--cubic-spring);
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}

.pill-btn:active {
  transform: scale(0.975);
}

.pill-btn-primary {
  background: var(--accent-emerald);
  color: var(--text-inverted);
  box-shadow: 0 2px 14px var(--accent-emerald-glow);
}

.pill-btn-primary:hover {
  background: var(--accent-emerald-bright);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.pill-btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  backdrop-filter: blur(8px);
}

.pill-btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-highlight);
  color: #FFF;
}

.pill-btn-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-bright);
  border-color: rgba(16, 185, 129, 0.35);
}

.pill-btn-emerald:hover {
  background: var(--accent-emerald);
  color: var(--text-inverted);
}

.pill-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.pill-btn-block {
  width: 100%;
}

.btn-icon-disk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--cubic-spring);
  flex-shrink: 0;
}

.pill-btn:hover .btn-icon-disk {
  transform: translateX(2px) scale(1.08);
}

/* Hero Section */
.hero-section {
  padding: clamp(6.5rem, 12vw, 9.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 2rem;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
  color: var(--text-secondary);
  max-width: 95%;
  flex-wrap: wrap;
  justify-content: center;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite ease-out;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pill-separator {
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

.pill-meta {
  color: var(--accent-emerald-bright);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hero-heading {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFF;
  margin-bottom: 1.5rem;
}

.serif-italic {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-emerald-bright);
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.775rem, 1.8vw, 0.85rem);
  color: var(--text-tertiary);
}

.trust-check {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Double-Bezel (Doppelrand) Architecture */
.hardware-bezel-outer {
  background: var(--bg-bezel-outer);
  border: 1px solid var(--border-hairline);
  padding: clamp(0.35rem, 1vw, 0.55rem);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.hardware-bezel-inner {
  background: var(--bg-bezel-inner);
  border: 1px solid var(--border-highlight);
  border-radius: calc(clamp(1.25rem, 3vw, 2rem) - clamp(0.35rem, 1vw, 0.55rem));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  padding: clamp(1rem, 3vw, 2.25rem);
  overflow: hidden;
}

/* Section Header Typography */
.section-badge-center {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.micro-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-emerald);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title-lg {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  line-height: 1.18;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* POS Terminal Section */
.pos-demo-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.pos-terminal-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.pos-pane-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.store-info-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.store-input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.store-name-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: #FFF;
  font-family: inherit;
  outline: none;
}

.store-name-input:focus {
  color: var(--accent-emerald-bright);
}

.pos-mode-pills {
  display: flex;
  gap: 0.5rem;
}

.mode-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-tertiary);
  padding: 0.5rem;
  border-radius: 10px;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.mode-pill.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald-bright);
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
}

.reset-cart-link {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
}

.item-tap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tap-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--cubic-spring);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
}

.tap-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.tap-item:active {
  transform: scale(0.96);
  border-color: var(--accent-emerald);
}

.item-title {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.item-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald-bright);
}

.item-add {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.pos-cart-summary {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}

.cart-metric-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
}

.cart-metric-val.highlight {
  font-size: 1.15rem;
  color: var(--accent-emerald-bright);
}

.pos-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-tertiary);
}

/* Realistic Thermal Paper Roll Feed */
.pos-receipt-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.receipt-printer-head {
  width: 100%;
  max-width: 380px;
  background: #1E293B;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-highlight);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}

.printer-feed-slot {
  width: 70%;
  height: 4px;
  background: #05070B;
  border-radius: 9999px;
  margin-bottom: 0.35rem;
}

.printer-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748B;
  letter-spacing: 0.1em;
}

/* Jagged Zigzag Tear Perforated Slip */
.thermal-paper-slip {
  width: 100%;
  max-width: 380px;
  background: #FFFDF9;
  color: #0F172A;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 1.5rem 1.25rem 2rem;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow-x: auto;
  /* Serrated bottom edge */
  -webkit-mask-image: radial-gradient(circle 5px at 5px 0, transparent 99%, black 100%);
  -webkit-mask-size: 10px 100%;
  -webkit-mask-position: bottom;
  -webkit-mask-repeat: repeat-x;
  mask-image: radial-gradient(circle 5px at 5px 0, transparent 99%, black 100%);
  mask-size: 10px 100%;
  mask-position: bottom;
  mask-repeat: repeat-x;
}

.slip-center {
  text-align: center;
  margin-bottom: 0.75rem;
}

.slip-store-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.slip-meta {
  font-size: 0.7rem;
  color: #475569;
  line-height: 1.3;
}

.slip-divider {
  border: none;
  border-top: 1px dashed #64748B;
  margin: 0.65rem 0;
}

.slip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.slip-table th, .slip-table td {
  padding: 0.25rem 0;
}

.slip-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin: 0.2rem 0;
}

.slip-grand-total {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  padding-top: 0.35rem;
  margin-top: 0.35rem;
  border-top: 1px dashed #0F172A;
}

.slip-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  text-align: center;
}

.slip-qr-img {
  width: 68px;
  height: 68px;
  background: #000;
  padding: 4px;
  border-radius: 4px;
}

.slip-qr-caption {
  font-size: 0.65rem;
  color: #475569;
  margin-top: 0.35rem;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  width: 100%;
  max-width: 380px;
}

.receipt-link {
  font-size: 0.8rem;
  color: var(--accent-emerald-bright);
  text-decoration: none;
}

/* Verticals Bento Grid */
.verticals-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.verticals-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.bento-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: clamp(16px, 2.5vw, 24px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: all 0.25s var(--cubic-spring);
  position: relative;
}

.bento-tile:hover {
  border-color: var(--border-highlight);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
}

.bento-large {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.bento-wide {
  grid-column: span 3;
}

.tile-icon-badge {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.bento-large .tile-icon-badge {
  margin-bottom: 0;
}

.bento-tile h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.bento-tile p {
  color: var(--text-secondary);
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tile-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tile-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tile-stat-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  min-width: 170px;
}

.stat-big {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-emerald-bright);
}

.stat-caption {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Template Gallery Section */
.templates-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.template-deck-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.deck-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  font-size: clamp(0.775rem, 1.6vw, 0.85rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.deck-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.deck-btn.active {
  background: var(--accent-emerald);
  color: var(--text-inverted);
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
}

.deck-display-shell {
  background: var(--bg-bezel-outer);
  border: 1px solid var(--border-hairline);
  padding: clamp(0.35rem, 1vw, 0.5rem);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  max-width: 840px;
  margin: 0 auto;
}

.deck-display-core {
  background: #FFF;
  border-radius: calc(clamp(1.25rem, 3vw, 2rem) - clamp(0.35rem, 1vw, 0.5rem));
  padding: clamp(1.25rem, 3vw, 2.5rem);
  color: #0F172A;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  min-height: 420px;
  overflow-x: auto;
  transition: all 0.25s var(--cubic-spring);
}

/* Proof / Testimonials Section */
.proof-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

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

.proof-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
}

.proof-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.proof-quote {
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-indigo);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: #FFF;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Pricing Section */
.pricing-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.annual-switch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  margin-top: 1.5rem;
  max-width: 95%;
}

.switch-opt {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  font-weight: 600;
  color: var(--text-tertiary);
}

.switch-opt.active {
  color: #FFF;
}

.savings-tag {
  background: var(--accent-emerald-glow);
  color: var(--accent-emerald-bright);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
}

.switch-toggle {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFF;
  transition: transform 0.2s var(--cubic-spring);
}

.switch-toggle.active .switch-thumb {
  transform: translateX(20px);
  background: var(--accent-emerald);
}

.pricing-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 2.5rem;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s var(--cubic-spring);
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-featured {
  background: linear-gradient(180deg, #121A2D 0%, var(--bg-surface) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.15);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-emerald);
  color: var(--text-inverted);
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.65rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.plan-curr {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-val {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFF;
}

.plan-unit {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  min-height: 42px;
}

.plan-perks {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.plan-perks li span {
  color: var(--accent-emerald-bright);
  font-weight: 700;
}

/* Bottom CTA Island */
.bottom-cta-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.cta-island-outer {
  background: var(--bg-bezel-outer);
  border: 1px solid var(--border-hairline);
  padding: clamp(0.35rem, 1vw, 0.55rem);
  border-radius: clamp(1.5rem, 3.5vw, 2.25rem);
}

.cta-island-inner {
  background: linear-gradient(135deg, #0C1220 0%, #17243E 100%);
  border: 1px solid var(--border-highlight);
  border-radius: calc(clamp(1.5rem, 3.5vw, 2.25rem) - clamp(0.35rem, 1vw, 0.55rem));
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

.cta-hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0.85rem 0 1rem;
  line-height: 1.2;
}

.cta-hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.cta-button-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Editorial Footer */
.editorial-footer {
  border-top: 1px solid var(--border-hairline);
  background: #04070B;
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}

.footer-main-row {
  display: flex;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3.5rem;
}

.footer-identity {
  max-width: 360px;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.footer-summary {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-nav-groups {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-group h5 {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 0.5rem;
}

.footer-nav-group a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav-group a:hover {
  color: #FFF;
}

.footer-sub-row {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.825rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 1rem;
}

.domain-status a {
  color: var(--accent-emerald-bright);
  text-decoration: none;
}

/* ==============================================================================
   RESPONSIVE BREAKPOINT ORCHESTRATION
   1. Ultrawide (>1440px)
   2. Laptops / Desktops (1025px - 1440px)
   3. Tablets (769px - 1024px)
   4. Mobile Phones (481px - 768px)
   5. Compact Mobile Phones (<=480px)
   ============================================================================== */

/* Tier 1: Ultrawide / 4K Displays */
@media (min-width: 1441px) {
  .container {
    max-width: 1360px;
  }
  .hero-heading {
    font-size: 4.5rem;
  }
  .verticals-bento-grid {
    gap: 1.75rem;
  }
}

/* Tier 2: Standard Laptops (1025px to 1440px) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-links {
    gap: 1.15rem;
  }
  .nav-links a {
    font-size: 0.825rem;
  }
  .pos-terminal-grid {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 1.75rem;
  }
}

/* Tier 3: Tablets (769px to 1024px) */
@media (max-width: 1024px) {
  .island-nav {
    padding: 0.4rem 0.65rem 0.45rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .pos-terminal-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
  }

  .pos-receipt-pane {
    margin-top: 1.5rem;
  }

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

  .bento-large {
    grid-column: span 2;
  }

  .bento-wide {
    grid-column: span 2;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-columns {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-main-row {
    flex-direction: column;
    gap: 2.5rem;
  }
}

/* Tier 4: Mobile Phones (481px to 768px) */
@media (max-width: 768px) {
  .island-nav-wrapper {
    top: 0.75rem;
    padding: 0 0.75rem;
  }

  .nav-login {
    display: none;
  }

  .pill-btn-lg {
    width: 100%;
  }

  .hero-actions, .cta-button-row {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .verticals-bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-large .tile-stat-highlight {
    width: 100%;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .template-deck-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.25rem 0.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .template-deck-nav::-webkit-scrollbar {
    display: none;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .footer-sub-row {
    flex-direction: column;
    text-align: center;
  }
}

/* Tier 5: Compact & Small Mobile Phones (<=480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .island-nav {
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  }

  .nav-cta-group .pill-btn span {
    display: none;
  }

  .nav-cta-group .pill-btn {
    padding: 0.45rem 0.6rem;
  }

  .nav-brand .brand-wordmark {
    font-size: 1.05rem;
  }

  .item-tap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .tap-item {
    padding: 0.65rem;
    min-height: 74px;
  }

  .item-title {
    font-size: 0.75rem;
  }

  .item-price {
    font-size: 0.775rem;
  }

  .pos-cart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pos-mode-pills {
    flex-direction: column;
  }

  .thermal-paper-slip {
    padding: 1.25rem 0.85rem 1.75rem;
    font-size: 0.725rem;
  }

  .slip-table th, .slip-table td {
    font-size: 0.7rem;
  }

  .deck-display-core {
    padding: 1.25rem 0.85rem;
  }

  .annual-switch-pill {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 16px;
  }
}

/* Tier 6: Ultra-Narrow Devices (<=360px) */
@media (max-width: 360px) {
  .item-tap-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading {
    font-size: 1.75rem;
  }
}
