/* ==========================================================================
   PULSEPAY DESIGN SYSTEM & STYLES (VERCEL-INSPIRED)
   ========================================================================== */

/* Alga Custom Typeface Definition (Nova Type Foundry) */
@font-face {
  font-family: 'Alga';
  src: local('Alga'),
       local('Alga Regular'),
       local('Alga-Regular'),
       url('./fonts/Alga-Regular.woff2') format('woff2'),
       url('./fonts/Alga-Regular.woff') format('woff'),
       url('./fonts/Alga-Regular.otf') format('opentype'),
       url('./fonts/Alga.otf') format('opentype'),
       url('./fonts/Alga.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alga';
  src: local('Alga Bold'),
       local('Alga-Bold'),
       url('./fonts/Alga-Bold.woff2') format('woff2'),
       url('./fonts/Alga-Bold.woff') format('woff'),
       url('./fonts/Alga-Bold.otf') format('opentype'),
       url('./fonts/Alga-Bold.ttf') format('truetype');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Alga';
  src: local('Alga Italic'),
       local('Alga-Italic'),
       url('./fonts/Alga-Italic.woff2') format('woff2'),
       url('./fonts/Alga-Italic.woff') format('woff'),
       url('./fonts/Alga-Italic.otf') format('opentype');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ds-primary: #171717;
  --ds-on-primary: #ffffff;
  --ds-ink: #171717;
  --ds-body: #4d4d4d;
  --ds-mute: #888888;
  --ds-hairline: #ebebeb;
  --ds-hairline-strong: #a1a1a1;
  --ds-canvas: #ffffff;
  --ds-canvas-soft: #fafafa;
  --ds-canvas-soft-2: #f5f5f5;
  --ds-link: #0070f3;
  --ds-link-deep: #0761d1;
  --ds-link-bg-soft: #d3e5ff;
  --ds-success: #10b981;
  --ds-success-soft: #d1fae5;
  --ds-error: #ee0000;
  --ds-warning: #f5a623;
  --ds-violet: #7928ca;
  --ds-cyan: #50e3c2;
  --ds-highlight-pink: #ff0080;
  
  --ds-gradient-develop: linear-gradient(90deg, #007cf0, #00dfd8);
  --ds-gradient-preview: linear-gradient(90deg, #7928ca, #ff0080);
  --ds-gradient-ship: linear-gradient(90deg, #ff4d4d, #f9cb28);
  
  --ds-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ds-font-display: 'Alga', 'Fraunces', 'Playfair Display', Georgia, serif;
  --ds-font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation Shadows */
  --shadow-level-1: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-level-2: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.02), 0 2px 2px rgba(0, 0, 0, 0.04);
  --shadow-level-3: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.04), 0 8px 8px -8px rgba(0, 0, 0, 0.04);
  --shadow-level-4: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 2px rgba(0, 0, 0, 0.04), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-level-5: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.02), 0 8px 16px -4px rgba(0, 0, 0, 0.04), 0 24px 32px -8px rgba(0, 0, 0, 0.08);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;
}

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

/* ==========================================================================
   PASSWORD ACCESS GATE (FULLSCREEN LOCK OVERLAY)
   ========================================================================== */
.password-gate-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.password-gate-backdrop.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.password-card.shake {
  animation: shakeError 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeError {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.gate-lock-icon {
  width: 56px;
  height: 56px;
  background: var(--ds-link-bg-soft);
  color: var(--ds-link-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gate-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-ink);
}
.gate-badge {
  font-size: 10px;
  font-family: var(--ds-font-mono);
  font-weight: 600;
  background: var(--ds-canvas-soft-2);
  border: 1px solid var(--ds-hairline);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--ds-body);
}

.gate-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--ds-ink);
}
.gate-desc {
  font-size: 13px;
  color: var(--ds-body);
  line-height: 1.5;
  margin-bottom: 24px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.gate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gate-input-wrapper input {
  width: 100%;
  height: 48px;
  background: var(--ds-canvas-soft);
  border: 1.5px solid var(--ds-hairline-strong);
  border-radius: var(--radius-md);
  padding: 0 44px 0 16px;
  font-size: 15px;
  font-family: var(--ds-font-mono);
  outline: none;
  transition: border-color 0.2s;
}
.gate-input-wrapper input:focus {
  border-color: var(--ds-ink);
  background: #ffffff;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}
.btn-toggle-eye:hover { opacity: 1; }

.gate-error-msg {
  font-size: 12px;
  color: var(--ds-error);
  font-weight: 500;
  text-align: left;
}

.gate-hint-box {
  background: var(--ds-canvas-soft-2);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--ds-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gate-hint-box code {
  font-family: var(--ds-font-mono);
  font-weight: 700;
  color: var(--ds-link-deep);
  background: rgba(0, 112, 243, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
  font-family: var(--ds-font-sans);
  background-color: var(--ds-canvas);
  color: var(--ds-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Atmospheric Gradient Mesh */
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: 
    radial-gradient(circle at 20% 10%, rgba(0, 124, 240, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(121, 40, 202, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 30%, rgba(255, 0, 128, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography Utilities */
.mono-text, .mono-label, .mono-tag, .badge-eyebrow, pre, code {
  font-family: var(--ds-font-mono);
}

h1, h2, h3, h4, .brand-name, .hero-title, .section-title, .cta-title, .plan-name, .gate-title {
  font-family: var(--ds-font-display);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.price-val, .savings-number, .pos-amount-large, .highlight-total, .currency-input-box input {
  font-variant-numeric: tabular-nums lining-nums;
}

.gradient-text {
  background: linear-gradient(90deg, #171717 0%, #0070f3 50%, #7928ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-success { color: var(--ds-success); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Section Eyebrow Badge */
.badge-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ds-link-deep);
  background: var(--ds-link-bg-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* Section Header */
.section-header {
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ds-ink);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--ds-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ds-font-sans);
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--ds-primary);
  color: var(--ds-on-primary);
  box-shadow: var(--shadow-level-2);
}
.btn-primary:hover {
  background-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--ds-canvas);
  color: var(--ds-ink);
  border: 1px solid var(--ds-hairline);
  box-shadow: var(--shadow-level-1);
}
.btn-secondary:hover {
  background-color: var(--ds-canvas-soft);
  border-color: var(--ds-hairline-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ds-body);
}
.btn-ghost:hover {
  color: var(--ds-ink);
  background-color: var(--ds-canvas-soft-2);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background-color: #1ebc59;
  transform: translateY(-1px);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ds-hairline);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ds-ink);
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: var(--ds-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 10px;
  font-weight: 600;
  background: var(--ds-link-bg-soft);
  color: var(--ds-link-deep);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--ds-body);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover {
  color: var(--ds-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  transition: all 0.2s ease;
}
.mobile-menu-toggle:hover {
  background: var(--ds-canvas-soft-2);
}
.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ds-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.mobile-menu-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-menu-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ds-hairline);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  z-index: 99;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--ds-ink);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: var(--ds-canvas-soft-2);
  color: var(--ds-link);
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ds-hairline);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 72px 0 60px 0;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-body);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--ds-font-display);
  font-size: 62px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ds-ink);
  margin-bottom: 22px;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--ds-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin-bottom: 38px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-badges-wrapper {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.badges-caption {
  font-size: 11px;
  font-family: var(--ds-font-mono);
  font-weight: 600;
  color: var(--ds-mute);
  letter-spacing: 0.08em;
}

.payment-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ds-canvas);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-body);
  box-shadow: var(--shadow-level-1);
}
.network-name {
  font-weight: 700;
  color: var(--ds-ink);
}

/* ==========================================================================
   INTERACTIVE SIMULATOR SECTION
   ========================================================================== */
.simulator-section {
  padding: 80px 0;
  background: var(--ds-canvas-soft);
  border-top: 1px solid var(--ds-hairline);
  border-bottom: 1px solid var(--ds-hairline);
}

.simulator-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

/* Left Controller Card */
.simulator-controls-card {
  background: var(--ds-canvas);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-level-3);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mono-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-mute);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-success);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--ds-success);
  border-radius: 50%;
}

.mode-tabs {
  display: flex;
  background: var(--ds-canvas-soft-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--ds-body);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active {
  background: var(--ds-canvas);
  color: var(--ds-ink);
  font-weight: 600;
  box-shadow: var(--shadow-level-1);
}

/* Quick Items Grid */
.quick-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.order-item-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  background: var(--ds-canvas-soft);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.order-item-btn:hover {
  border-color: var(--ds-ink);
  background: var(--ds-canvas);
  transform: translateY(-2px);
}
.order-item-btn.selected {
  border-color: var(--ds-link);
  background: var(--ds-link-bg-soft);
}
.item-emoji {
  font-size: 20px;
  margin-bottom: 4px;
}
.item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-ink);
}
.item-price {
  font-size: 12px;
  font-family: var(--ds-font-mono);
  color: var(--ds-body);
  margin-top: 2px;
}

/* Custom Amount Panel */
.custom-amount-wrapper {
  margin-bottom: 18px;
}
.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ds-ink);
}
.currency-input-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--ds-hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: var(--ds-canvas);
}
.currency-symbol {
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-mute);
  margin-right: 6px;
}
.currency-input-box input {
  width: 100%;
  height: 44px;
  border: none;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--ds-font-mono);
  outline: none;
}
.helper-text {
  font-size: 11px;
  color: var(--ds-mute);
  margin-top: 6px;
}

/* Order Summary Box */
.order-summary-box {
  background: var(--ds-canvas-soft-2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ds-body);
  margin-bottom: 6px;
}
.summary-divider {
  height: 1px;
  background: var(--ds-hairline);
  margin: 10px 0;
}
.total-row {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-ink);
}
.highlight-total {
  font-size: 18px;
  font-family: var(--ds-font-mono);
  color: var(--ds-link-deep);
}

/* Simulator Right Side */
.simulator-screen-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.simulator-instruction-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-level-1);
}
.instruct-icon {
  font-size: 16px;
}

.simulator-interaction-zone {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: center;
}

/* ==========================================================================
   PHONE MOCKUP & SOFTPOS APP UI
   ========================================================================== */
.phone-mockup {
  width: 310px;
  height: 580px;
  background: #0f1115;
  border: 10px solid #272a30;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  width: 50px;
  height: 4px;
  background: #333;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.phone-camera {
  width: 10px;
  height: 10px;
  background: #111;
  border-radius: 50%;
  position: absolute;
  top: 7px;
  left: 65%;
  z-index: 10;
}

/* NFC Target Zone (Top half of phone) */
.nfc-target-zone {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  height: 140px;
  border: 2px dashed rgba(0, 112, 243, 0.4);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0070f3;
  z-index: 5;
  pointer-events: none;
  transition: all 0.3s;
}
.nfc-target-zone.active-pulse {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.nfc-zone-label {
  font-size: 10px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

.radar-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(0, 112, 243, 0.6);
  opacity: 0;
  animation: radarWave 2.5s infinite;
}
.radar-pulse.delay-1 { animation-delay: 0.8s; }
.radar-pulse.delay-2 { animation-delay: 1.6s; }

@keyframes radarWave {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Phone Screen Content */
.phone-screen-content {
  width: 100%;
  height: 100%;
  background: #12141a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 30px 18px 20px 18px;
}

.screen-state {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  animation: fadeInState 0.25s ease-out;
}
.screen-state.active {
  display: flex;
}

@keyframes fadeInState {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* State 1: Idle Screen */
.app-topbar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8c939e;
  margin-bottom: auto;
}
.pos-center-display {
  text-align: center;
  margin-top: 130px;
}
.pos-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 112, 243, 0.2);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.pos-amount-large {
  font-size: 38px;
  font-weight: 700;
  font-family: var(--ds-font-mono);
  letter-spacing: -1px;
}
.pos-instruction {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}
.pos-bottom-hint {
  text-align: center;
  margin-top: auto;
  font-size: 11px;
  color: #64748b;
}

/* State 2: Processing Screen */
#state-processing {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.processing-spinner {
  margin-bottom: 18px;
}
.spin-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.processing-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}
.crypto-feed {
  margin-top: 24px;
  background: #090a0d;
  padding: 10px;
  border-radius: 6px;
  font-size: 10px;
  text-align: left;
  color: #10b981;
  width: 100%;
  line-height: 1.6;
}

/* State 3: PIN on Glass Screen */
.pin-header {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 14px;
}
.lock-icon { font-size: 20px; }
.pin-header h4 { font-size: 15px; color: #fff; }
.pin-header p { font-size: 11px; color: #94a3b8; }

.pin-dots-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pin-dots-display span {
  width: 12px;
  height: 12px;
  border: 2px solid #64748b;
  border-radius: 50%;
}
.pin-dots-display span.filled {
  background: #38bdf8;
  border-color: #38bdf8;
}

.scrambled-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}
.key-btn {
  height: 44px;
  background: #1e222b;
  border: 1px solid #2d333f;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--ds-font-mono);
  cursor: pointer;
  transition: all 0.1s;
}
.key-btn:hover { background: #2a303d; }
.key-btn:active { transform: scale(0.95); }
.special-btn { color: #f87171; }
.confirm-btn { background: #059669; border-color: #10b981; }

/* State 4: Success Screen */
#state-success {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.success-checkmark-circle {
  width: 64px;
  height: 64px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.success-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.success-amt {
  font-size: 26px;
  font-weight: 700;
  font-family: var(--ds-font-mono);
  color: #34d399;
  margin-bottom: 16px;
}
.receipt-snippet {
  background: #1a1e27;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 11px;
  margin-bottom: 16px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  margin-bottom: 4px;
}
.receipt-row span:last-child {
  color: #fff;
}
.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ==========================================================================
   CARDS DECK (SELECTION & TAP SIMULATION)
   ========================================================================== */
.cards-deck-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deck-header .mono-tag {
  color: var(--ds-link-deep);
}
.deck-header p {
  font-size: 13px;
  color: var(--ds-body);
  margin-top: 2px;
}

.cards-picker-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-card-item {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 110px;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-level-3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
}

.payment-card-item:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* RuPay Card */
.rupay-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Visa Card */
.visa-card {
  background: linear-gradient(135deg, #0d9488 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Apple Pay Card */
.applepay-card {
  background: linear-gradient(135deg, #27272a 0%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}
.emv-chip {
  width: 28px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 4px;
}
.emv-chip.gold { background: #facc15; }

.card-num {
  font-family: var(--ds-font-mono);
  font-size: 13px;
  letter-spacing: 1px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
}
.cardholder {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.network-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.rupay-logo small {
  font-size: 8px;
  font-weight: 400;
  margin-left: 2px;
}
.tap-hint-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}
.payment-card-item:hover .tap-hint-overlay {
  opacity: 1;
}

/* ==========================================================================
   STORY DEMO WALKTHROUGH SECTION (CAFE TABLE-SIDE PROCESS)
   ========================================================================== */
.story-demo-section {
  padding: 80px 0;
  background: var(--ds-canvas-soft);
  border-top: 1px solid var(--ds-hairline);
  border-bottom: 1px solid var(--ds-hairline);
}

/* Stepper Progress Bar */
.story-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto 36px auto;
  padding: 0 16px;
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: all 0.3s ease;
}
.step-indicator-item.active {
  opacity: 1;
}
.step-indicator-item.completed {
  opacity: 0.9;
}

.step-num-badge {
  width: 32px;
  height: 32px;
  background: var(--ds-canvas-soft-2);
  border: 1.5px solid var(--ds-hairline-strong);
  color: var(--ds-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  transition: all 0.2s;
}
.step-indicator-item.active .step-num-badge {
  background: var(--ds-ink);
  color: #ffffff;
  border-color: var(--ds-ink);
  box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.15);
}
.step-indicator-item.completed .step-num-badge {
  background: var(--ds-success);
  color: #ffffff;
  border-color: var(--ds-success);
}

.step-label-group {
  display: flex;
  flex-direction: column;
}
.step-role {
  font-size: 10px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  color: var(--ds-link-deep);
  letter-spacing: 0.05em;
}
.step-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-ink);
}

.step-connector-line {
  flex: 1;
  height: 2px;
  background: var(--ds-hairline);
  margin: 0 14px;
  position: relative;
  transition: background 0.3s;
}
.step-connector-line.active {
  background: var(--ds-link);
}

/* Story Main Stage Box */
.story-stage-box {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-level-4);
  max-width: 1040px;
  margin: 0 auto;
}

/* Left: Narrative Panel */
.story-narrative-panel {
  display: flex;
  flex-direction: column;
}

.story-dialogue-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--ds-link-bg-soft);
  border: 1px solid rgba(0, 112, 243, 0.2);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-level-1);
}
.bubble-avatar {
  font-size: 24px;
  flex-shrink: 0;
}
.bubble-speaker {
  display: block;
  font-size: 11px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  color: var(--ds-link-deep);
  margin-bottom: 2px;
}
.bubble-content p {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-ink);
  line-height: 1.4;
}

/* Step Panels */
.story-step-content {
  display: none;
  flex-direction: column;
  animation: fadeInState 0.25s ease-out;
}
.story-step-content.active {
  display: flex;
}

.panel-tag {
  font-size: 11px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  color: var(--ds-mute);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.panel-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ds-ink);
  margin-bottom: 8px;
}
.panel-desc {
  font-size: 14px;
  color: var(--ds-body);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Presets & Custom Input */
.amount-quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.preset-btn {
  background: var(--ds-canvas-soft-2);
  border: 1px solid var(--ds-hairline);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-body);
  cursor: pointer;
  transition: all 0.15s;
}
.preset-btn:hover {
  background: var(--ds-canvas);
  border-color: var(--ds-ink);
  color: var(--ds-ink);
}
.preset-btn.active {
  background: var(--ds-link-bg-soft);
  border-color: var(--ds-link);
  color: var(--ds-link-deep);
}

.story-custom-input-box {
  margin-bottom: 24px;
}
.story-custom-input-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ds-ink);
}
.input-with-symbol {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ds-hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: #ffffff;
}
.in-sym {
  font-size: 20px;
  font-weight: 700;
  color: var(--ds-mute);
  margin-right: 8px;
}
.input-with-symbol input {
  width: 100%;
  height: 46px;
  border: none;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--ds-font-mono);
  outline: none;
}

.story-action-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ds-canvas-soft-2);
  border: 1px dashed var(--ds-hairline-strong);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 24px;
}

/* Payment Method Selection Buttons (Step 3: Card vs Mobile Phone vs Smartwatch) */
.story-cards-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.select-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid var(--ds-hairline);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-level-1);
}
.select-card-btn:hover {
  border-color: var(--ds-hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-level-2);
}
.select-card-btn.active {
  border-color: var(--ds-ink);
  background: var(--ds-canvas-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-device-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.select-card-btn:hover .btn-device-icon {
  transform: scale(1.08);
}

.card-icon-badge {
  background: var(--ds-link-bg-soft);
  color: var(--ds-link-deep);
}
.phone-icon-badge {
  background: #f3e8ff;
  color: #7928ca;
}
.watch-icon-badge {
  background: #ffedd5;
  color: #ea580c;
}

.btn-card-info {
  flex: 1;
  margin: 0 14px;
}
.btn-card-info strong {
  display: block;
  font-size: 14px;
  color: var(--ds-ink);
  margin-bottom: 2px;
}
.btn-card-info small {
  font-size: 11px;
  color: var(--ds-mute);
  font-family: var(--ds-font-mono);
}
.tap-action-badge {
  background: var(--ds-ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.select-card-btn:hover .tap-action-badge {
  background: var(--ds-link-deep);
}

/* Receipt Card (Step 4) */
.auto-receipt-card {
  background: var(--ds-canvas-soft-2);
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}
.receipt-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-ink);
  margin-bottom: 8px;
}
.rec-status { color: var(--ds-success); }
.rec-amount-row {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--ds-font-mono);
  color: var(--ds-ink);
  margin-bottom: 12px;
}
.rec-details {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ds-body);
}
.rec-details strong { color: var(--ds-ink); }

.story-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Autoplay Bar */
.auto-play-bar {
  margin-top: auto;
  padding-top: 20px;
}
.btn-link-autoplay {
  background: transparent;
  border: none;
  color: var(--ds-link-deep);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
}
.btn-link-autoplay:hover { color: var(--ds-ink); }

/* Right: Visual Stage & Animated Floating Card (Cinematic 3D Tap to Pay Experience) */
.story-phone-stage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* Quick Interactive Animation Controls Toolbar */
.anim-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ds-canvas-soft-2);
  border: 1px solid var(--ds-hairline);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-level-1);
}

.anim-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ds-body);
  font-size: 11px;
  font-family: var(--ds-font-mono);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.anim-ctrl-btn:hover {
  background: var(--ds-canvas);
  color: var(--ds-ink);
  border-color: var(--ds-hairline);
  transform: translateY(-1px);
}
.anim-ctrl-btn.active {
  background: var(--ds-ink);
  color: #ffffff;
  border-color: var(--ds-ink);
  box-shadow: var(--shadow-level-2);
}
.ctrl-icon { font-size: 13px; }

.story-phone-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  min-height: 600px;
  width: 100%;
}

/* 0.5x Slow Motion Modifier */
.story-phone-stage.slow-motion .interactive-floating-card {
  transition-duration: 1.8s !important;
}
.story-phone-stage.slow-motion .shockwave-ring {
  animation-duration: 2.2s !important;
}
.story-phone-stage.slow-motion .shockwave-flash {
  animation-duration: 1.4s !important;
}
.story-phone-stage.slow-motion .phone-mockup.recoil {
  animation-duration: 0.8s !important;
}

/* Apple Pay Style Concentric Radio Wave Arcs */
.apple-contactless-waves {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 50px;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wave-arc {
  position: absolute;
  border: 2.5px solid transparent;
  border-top-color: #38bdf8;
  border-radius: 50%;
  opacity: 0.25;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wave-arc.arc-1 {
  width: 28px;
  height: 28px;
  animation: appleWavePulse 1.8s infinite 0.1s;
}
.wave-arc.arc-2 {
  width: 48px;
  height: 48px;
  animation: appleWavePulse 1.8s infinite 0.35s;
}
.wave-arc.arc-3 {
  width: 68px;
  height: 68px;
  animation: appleWavePulse 1.8s infinite 0.6s;
}
.wave-arc.arc-4 {
  width: 88px;
  height: 88px;
  animation: appleWavePulse 1.8s infinite 0.85s;
}

@keyframes appleWavePulse {
  0% { opacity: 0.15; border-top-color: #38bdf8; transform: scale(0.92); }
  50% { opacity: 0.95; border-top-color: #0070f3; transform: scale(1.05); filter: drop-shadow(0 0 4px #38bdf8); }
  100% { opacity: 0.15; border-top-color: #38bdf8; transform: scale(0.92); }
}

/* When Card is Tapped: Waves turn vibrant emerald & flash */
.nfc-target-zone.active-pulse .wave-arc {
  border-top-color: #10b981 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px #34d399) !important;
}

/* THE 3D INTERACTIVE CUSTOMER PAYMENT DEVICE */
.interactive-floating-card {
  position: absolute;
  top: -10px;
  right: -30px;
  width: 250px;
  height: 155px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0b1329 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  z-index: 30;
  transform-origin: center center;
  transform: rotateX(16deg) rotateY(-18deg) rotateZ(-8deg) translateZ(30px);
  transition: 
    top 0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    right 0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    transform 0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.5s ease,
    width 0.4s ease,
    height 0.4s ease,
    border-radius 0.4s ease;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  animation: cardHoverFloat 4s ease-in-out infinite alternate;
}

/* Device Mode 1: Physical Contactless Card */
.interactive-floating-card.mode-card {
  width: 250px;
  height: 155px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0b1329 100%);
  overflow: hidden;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Device Mode 2: Photorealistic Modern Smartphone (iPhone 16 Pro / Apple Pay) */
.interactive-floating-card.mode-phone {
  width: 184px;
  height: 370px;
  border-radius: 42px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  top: -25px;
  right: -25px;
  transform: rotateX(14deg) rotateY(-16deg) rotateZ(-6deg) translateZ(35px);
}

/* Device Mode 3: Photorealistic Apple Watch Ultra / Smartwatch with Bands */
.interactive-floating-card.mode-watch {
  width: 174px;
  height: 380px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  top: -30px;
  right: -20px;
  transform: rotateX(14deg) rotateY(-16deg) rotateZ(-6deg) translateZ(35px);
}

.interactive-floating-card:active {
  cursor: grabbing;
}

@keyframes cardHoverFloat {
  0% {
    transform: rotateX(16deg) rotateY(-18deg) rotateZ(-8deg) translateZ(30px) translateY(0px);
  }
  100% {
    transform: rotateX(12deg) rotateY(-14deg) rotateZ(-6deg) translateZ(40px) translateY(-10px);
  }
}

/* Device Surfaces Base */
.device-surface {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SURFACE 2: ULTRA-REALISTIC SMARTPHONE (iPhone 16 Pro Titanium & Apple Pay)
   ========================================================================== */
.surface-phone {
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Titanium Smartphone Chassis */
.customer-phone-chassis {
  width: 180px;
  height: 366px;
  background: #090a0e;
  border-radius: 42px;
  border: 4px solid #383c48;
  box-shadow: 
    0 30px 70px -10px rgba(0, 0, 0, 0.75),
    0 12px 28px -8px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 0 4px #181920;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Smartphone Hardware Physical Buttons on Titanium Frame */
.phone-hardware-buttons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Action Button */
.side-btn.action-btn {
  position: absolute;
  left: -8px;
  top: 54px;
  width: 4px;
  height: 15px;
  background: #f59e0b;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 1px 3px rgba(0,0,0,0.6);
  border: 0.5px solid #d97706;
}

/* Volume Up */
.side-btn.volume-up {
  position: absolute;
  left: -8px;
  top: 80px;
  width: 4px;
  height: 30px;
  background: #474d5c;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 1px 3px rgba(0,0,0,0.6);
  border: 0.5px solid #2b2e38;
}

/* Volume Down */
.side-btn.volume-down {
  position: absolute;
  left: -8px;
  top: 118px;
  width: 4px;
  height: 30px;
  background: #474d5c;
  border-radius: 3px 0 0 3px;
  box-shadow: -1px 1px 3px rgba(0,0,0,0.6);
  border: 0.5px solid #2b2e38;
}

/* Power / Siri Button */
.side-btn.power-btn {
  position: absolute;
  right: -8px;
  top: 90px;
  width: 4px;
  height: 48px;
  background: #474d5c;
  border-radius: 0 3px 3px 0;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  border: 0.5px solid #2b2e38;
}

/* Subtle Antenna Bands on Titanium Outer Rim */
.antenna-notch {
  position: absolute;
  width: 2px;
  height: 5px;
  background: #1e2027;
  pointer-events: none;
  z-index: 3;
}
.notch-tl { top: 38px; left: -4px; }
.notch-tr { top: 38px; right: -4px; }
.notch-bl { bottom: 38px; left: -4px; }
.notch-br { bottom: 38px; right: -4px; }

/* Top Speaker Earpiece Mesh */
.phone-speaker-mesh {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: #23252d;
  border-radius: 2px;
  z-index: 10;
}

/* OLED Glass Display */
.customer-phone-display {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 38px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Diagonal Specular Glass Reflection */
.phone-glass-glare {
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 100%;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.04) 28%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 8;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 16px;
  background: #000000;
  border-radius: 20px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.island-camera-lens {
  width: 7px;
  height: 7px;
  background: #0b1424;
  border-radius: 50%;
  border: 1px solid #1c273e;
  position: relative;
  margin-right: 4px;
}
.lens-glint {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  background: #38bdf8;
  border-radius: 50%;
  opacity: 0.8;
}
.island-sensor-dot {
  width: 4px;
  height: 4px;
  background: #0d0f14;
  border-radius: 50%;
}

/* Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: #f1f5f9;
  padding-top: 2px;
  z-index: 5;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.net-pill {
  font-size: 8px;
  font-weight: 700;
  color: #cbd5e1;
}
.ios-battery-pill {
  width: 16px;
  height: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 2.5px;
  padding: 1px;
  position: relative;
  display: flex;
  align-items: center;
}
.battery-charge-fill {
  width: 100%;
  height: 100%;
  background: #22c55e;
  border-radius: 1px;
}
.battery-knob {
  position: absolute;
  right: -2.5px;
  top: 2px;
  width: 1.5px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 0 1px 1px 0;
}

/* Apple Pay Screen Body */
.apple-pay-screen-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: calc(100% - 35px);
  padding: 10px 0 4px 0;
  z-index: 5;
}

/* Pulsing Contactless NFC Radar */
.nfc-reader-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.apple-pay-wave-emitter {
  position: relative;
  width: 32px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-dot {
  width: 4px;
  height: 4px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 6px #38bdf8;
}
.ap-arc {
  position: absolute;
  border: 2px solid transparent;
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: apWavePulse 1.6s infinite ease-out;
}
.ap-arc-1 { width: 14px; height: 14px; top: 1px; animation-delay: 0s; }
.ap-arc-2 { width: 22px; height: 22px; top: -3px; animation-delay: 0.25s; }
.ap-arc-3 { width: 30px; height: 30px; top: -7px; animation-delay: 0.5s; }

@keyframes apWavePulse {
  0% { opacity: 0.2; transform: scale(0.85); border-top-color: #0284c7; }
  50% { opacity: 1; transform: scale(1.05); border-top-color: #38bdf8; filter: drop-shadow(0 0 4px #38bdf8); }
  100% { opacity: 0.2; transform: scale(0.85); border-top-color: #0284c7; }
}

.prompt-text {
  font-size: 9px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: 0.04em;
  color: #38bdf8;
  text-transform: uppercase;
}

/* Apple Wallet Stored Credit Card Art */
.apple-wallet-card-art {
  width: 154px;
  height: 98px;
  background: linear-gradient(135deg, #09203f 0%, #537895 100%);
  border-radius: 10px;
  padding: 9px 10px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 12px 24px -4px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  position: relative;
  overflow: hidden;
}
.art-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.art-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.art-bank {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}
.art-nfc-symbol {
  color: #cbd5e1;
}

.art-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.art-chip {
  width: 19px;
  height: 13px;
  background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
  border-radius: 2.5px;
  position: relative;
  border: 0.5px solid rgba(0,0,0,0.2);
}
.chip-wire.h-wire {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0,0,0,0.25);
}
.chip-wire.v-wire {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.25);
}
.art-hologram-seal {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #f472b6 0%, #38bdf8 50%, #4ade80 100%);
  border-radius: 50%;
  opacity: 0.75;
}

.art-num {
  font-family: var(--ds-font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.art-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.art-holder-meta {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 5.5px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.5px;
}
.art-name {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.art-brand-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.visa-text {
  font-size: 11px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1;
}
.plat-text {
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

/* Apple Pay Verification Footer */
.apple-pay-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.apple-pay-ready-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 8.5px;
  font-weight: 700;
  color: #34d399;
}
.pay-hint {
  font-size: 8px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* iOS Home Indicator Bar */
.phone-home-indicator {
  width: 52px;
  height: 3.5px;
  background: #ffffff;
  border-radius: 3px;
  opacity: 0.8;
  margin: 2px auto 0 auto;
}

/* ==========================================================================
   SURFACE 3: PHOTOREALISTIC APPLE WATCH ULTRA (Smartwatch & Sport Straps)
   ========================================================================== */
.surface-watch {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Silicone Sport Straps (Upper Band) */
.watch-strap-band.top-band {
  width: 98px;
  height: 80px;
  background: linear-gradient(180deg, #1c1e24 0%, #262933 60%, #2a2e3a 100%);
  border-radius: 14px 14px 0 0;
  position: relative;
  margin-bottom: -10px;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Lug Connector Line with Stainless Steel Release Button */
.strap-lug-connector {
  width: 100%;
  height: 8px;
  background: #17181e;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-band .strap-lug-connector {
  border-radius: 12px 12px 0 0;
}
.lug-center-lock {
  width: 18px;
  height: 3px;
  background: #475569;
  border-radius: 2px;
}
.strap-rib-channel {
  width: 50px;
  height: 100%;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  margin: 4px 0;
}

/* Apple Watch Metallic Squircle Chassis */
.apple-watch-chassis {
  position: relative;
  width: 164px;
  height: 198px;
  background: linear-gradient(145deg, #3d424e 0%, #1e2027 45%, #2c303a 100%);
  border: 5px solid #4a505e;
  border-radius: 46px;
  box-shadow: 
    0 25px 60px -8px rgba(0, 0, 0, 0.8),
    0 10px 25px -5px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.25),
    inset 0 3px 6px rgba(255, 255, 255, 0.35);
  z-index: 2;
  padding: 6px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

/* Watch Controls on Right Flank (Iconic Digital Crown & Side Button) */
.watch-controls-right {
  position: absolute;
  right: -13px;
  top: 0;
  bottom: 0;
  width: 13px;
  pointer-events: none;
}

/* Digital Crown with Grooves & Orange Accent Ring */
.digital-crown {
  position: absolute;
  right: 0;
  top: 32px;
  width: 11px;
  height: 36px;
  background: repeating-linear-gradient(180deg, #94a3b8 0 2px, #334155 2px 4px);
  border-radius: 0 4px 4px 0;
  border: 1px solid #1e293b;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  position: relative;
}
.crown-accent-ring {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  transform: translateY(-50%);
  background: #f97316;
  border-top: 1px solid #ea580c;
  border-bottom: 1px solid #ea580c;
}

/* Flush Oval Side Button */
.watch-side-button {
  position: absolute;
  right: 2px;
  top: 84px;
  width: 6px;
  height: 32px;
  background: #334155;
  border-radius: 0 3px 3px 0;
  border: 1px solid #1e293b;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

/* Left Flank: Speaker Grille and Mic */
.watch-controls-left {
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  pointer-events: none;
}
.watch-speaker-cutouts {
  position: absolute;
  left: 2px;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.watch-speaker-cutouts span {
  width: 4px;
  height: 8px;
  background: #111317;
  border-radius: 2px;
}
.watch-mic-cutout {
  position: absolute;
  left: 3px;
  top: 96px;
  width: 3px;
  height: 3px;
  background: #111317;
  border-radius: 50%;
}

/* Sapphire OLED Curved Screen */
.apple-watch-oled-screen {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 38px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3D Curved Glass Edge Glare on Watch Face */
.watch-glass-curved-reflection {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 20% 15%,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 8;
}

/* Watch Status Header Row */
.watch-status-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: #ffffff;
  z-index: 5;
  padding: 0 2px;
}
.watch-battery-icon {
  font-size: 9px;
  color: #4ade80;
  font-weight: 800;
}

/* Watch Pay Radar Emitter */
.watch-pay-radar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 5;
  margin: 1px 0;
}
.watch-wave-rings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.watch-wave-rings span.w-arc {
  width: 7px;
  height: 7px;
  background: #38bdf8;
  border-radius: 50%;
  animation: watchPulseWave 1.4s infinite alternate;
}
.watch-wave-rings .w-arc-2 { animation-delay: 0.2s; }
.watch-wave-rings .w-arc-3 { animation-delay: 0.4s; }

@keyframes watchPulseWave {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 5px #38bdf8); }
}

.watch-hold-label {
  font-size: 7.5px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  letter-spacing: 0.06em;
  color: #38bdf8;
  text-transform: uppercase;
}

/* Mini Apple Wallet Pass on Watch Screen */
.watch-wallet-card {
  width: 132px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  border-radius: 9px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  z-index: 5;
}
.watch-wallet-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.w-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.5px;
  font-weight: 800;
  color: #ffffff;
}
.w-card-nfc {
  font-size: 7px;
  letter-spacing: 1px;
  color: #93c5fd;
}
.w-chip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.watch-card-chip {
  width: 13px;
  height: 9px;
  background: #fcd34d;
  border-radius: 2px;
}
.w-brand-tag {
  font-size: 7px;
  font-weight: 800;
  color: #60a5fa;
}
.w-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ds-font-mono);
  font-size: 7px;
  color: #e2e8f0;
}
.w-sec-badge {
  font-size: 6px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 3px;
  border-radius: 3px;
}

/* Watch Ready Status */
.watch-ready-status {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 7.5px;
  font-weight: 700;
  color: #34d399;
  z-index: 5;
}
.watch-check-icon {
  font-weight: 900;
}

/* Silicone Sport Straps (Lower Band with Buckle & Holes) */
.watch-strap-band.bottom-band {
  width: 98px;
  height: 105px;
  background: linear-gradient(180deg, #2a2e3a 0%, #22252e 40%, #1a1c22 100%);
  border-radius: 0 0 18px 18px;
  position: relative;
  margin-top: -10px;
  box-shadow: 
    0 15px 25px rgba(0, 0, 0, 0.55),
    inset 0 -1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

.bottom-band .strap-lug-connector {
  margin-bottom: 6px;
}

/* Stainless Steel Sport Pin Button */
.sport-strap-buckle-pin {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #e2e8f0 0%, #94a3b8 100%);
  border-radius: 50%;
  border: 1px solid #475569;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.metal-pin-button {
  width: 6px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

/* 5 Oval Adjustment Holes */
.strap-adjustment-holes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.strap-adjustment-holes .hole {
  width: 18px;
  height: 4px;
  background: #0f1015;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8), 0 0.5px 0.5px rgba(255,255,255,0.08);
}
.strap-adjustment-holes .hole.active {
  border: 0.5px solid rgba(148, 163, 184, 0.3);
}

.strap-tapered-tip {
  width: 72px;
  height: 8px;
  background: transparent;
  border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   INTERACTIVE TAPPED LANDING (MODE-SPECIFIC 3D IMPACTS)
   ========================================================================== */
/* Mode 1 Card Tapped */
.interactive-floating-card.mode-card.tapped-position {
  animation: none;
  top: 45px;
  right: 30px;
  transform: rotateX(4deg) rotateY(-2deg) rotateZ(0deg) translateZ(12px) scale(1.02);
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.5),
    0 0 40px 10px rgba(16, 185, 129, 0.4),
    0 0 0 2px #10b981;
}

/* Mode 2 Phone Tapped (Top of Customer Phone touching merchant NFC zone) */
.interactive-floating-card.mode-phone.tapped-position {
  animation: none;
  top: -15px;
  right: 63px;
  transform: rotateX(5deg) rotateY(-2deg) rotateZ(-1deg) translateZ(16px) scale(1.02);
}
.interactive-floating-card.mode-phone.tapped-position .customer-phone-chassis {
  box-shadow: 
    0 25px 60px -5px rgba(0, 0, 0, 0.8),
    0 0 45px 12px rgba(16, 185, 129, 0.45),
    0 0 0 2.5px #10b981;
}

/* Mode 3 Watch Tapped (Watch Face centering directly over NFC zone) */
.interactive-floating-card.mode-watch.tapped-position {
  animation: none;
  top: 15px;
  right: 68px;
  transform: rotateX(4deg) rotateY(-2deg) rotateZ(0deg) translateZ(16px) scale(1.02);
}
.interactive-floating-card.mode-watch.tapped-position .apple-watch-chassis {
  box-shadow: 
    0 25px 60px -5px rgba(0, 0, 0, 0.8),
    0 0 45px 12px rgba(16, 185, 129, 0.45),
    0 0 0 2.5px #10b981;
}

/* Hide card-only glow and sheen in phone and watch modes */
.interactive-floating-card.mode-phone .card-sheen,
.interactive-floating-card.mode-phone .card-glow-outline,
.interactive-floating-card.mode-watch .card-sheen,
.interactive-floating-card.mode-watch .card-glow-outline {
  display: none !important;
}

/* Holographic Metallic Sheen Layer for Card */
.card-sheen {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.32) 48%,
    rgba(140, 240, 255, 0.25) 52%,
    rgba(255, 255, 255, 0.1) 56%,
    transparent 70%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: transform 0.6s ease;
  animation: sheenSlide 6s infinite ease-in-out;
}

@keyframes sheenSlide {
  0%, 30% { transform: translateY(-30%) rotate(25deg); opacity: 0.3; }
  60%, 100% { transform: translateY(30%) rotate(25deg); opacity: 0.8; }
}

/* Glowing Border Aura */
.card-glow-outline {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25) inset;
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-card-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.fl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fl-bank {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.fl-nfc svg {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

/* Realistic EMV Chip with Laser Scanner */
.fl-chip-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.fl-chip {
  position: relative;
  width: 32px;
  height: 24px;
  background: linear-gradient(135deg, #fcd34d 0%, #b45309 50%, #fef08a 100%);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.4);
  overflow: hidden;
}
.chip-line.horizontal {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
}
.chip-line.vertical {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 0, 0, 0.35);
}

.emv-laser-scanner {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
  opacity: 0;
}

.interactive-floating-card.tapped-position .emv-laser-scanner {
  opacity: 1;
  animation: laserSweep 0.8s ease-in-out infinite;
}

@keyframes laserSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hologram-seal {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #f472b6, #38bdf8, #a78bfa, #34d399);
  opacity: 0.7;
  mix-blend-mode: overlay;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fl-num {
  font-family: var(--ds-font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.fl-bot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.fl-label {
  display: block;
  font-size: 7px;
  font-family: var(--ds-font-mono);
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.fl-holder {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.fl-brand-wrapper {
  text-align: right;
}
.fl-brand {
  font-family: var(--ds-font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
  line-height: 1;
}
.fl-subbrand {
  font-size: 8px;
  font-family: var(--ds-font-mono);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.tap-finger-indicator {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   THE MAGIC MOMENT: CINEMATIC TAPPED LANDING (CARD ONTO NFC COIL)
   ========================================================================== */
.interactive-floating-card.mode-card.tapped-position {
  animation: none;
  top: 45px;
  right: 30px;
  transform: rotateX(4deg) rotateY(-2deg) rotateZ(0deg) translateZ(12px) scale(1.02);
  box-shadow: 
    0 15px 35px -5px rgba(0, 0, 0, 0.5),
    0 0 40px 10px rgba(16, 185, 129, 0.4),
    0 0 0 2px #10b981;
}

.interactive-floating-card.mode-card.tapped-position .card-glow-outline {
  box-shadow: 0 0 0 2px #10b981 inset, 0 0 20px #10b981;
}

/* Shockwave Electromagnetic Ripple Burst */
.nfc-shockwave-burst {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 15;
  display: none;
}
.nfc-shockwave-burst.active {
  display: block;
}

.shockwave-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #ffffff 0%, #34d399 50%, transparent 80%);
  border-radius: 50%;
  animation: flashBurst 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes flashBurst {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

.shockwave-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}

.shockwave-ring.ring-1 {
  animation: shockwaveExpand 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.shockwave-ring.ring-2 {
  animation: shockwaveExpand 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}
.shockwave-ring.ring-3 {
  animation: shockwaveExpand 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.24s forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.95;
    border-width: 3px;
  }
  100% {
    width: 260px;
    height: 260px;
    opacity: 0;
    border-width: 1px;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* Phone Micro-Haptic Recoil Animation */
.phone-mockup.recoil {
  animation: phoneHapticRecoil 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes phoneHapticRecoil {
  0% { transform: translateY(0); }
  25% { transform: translateY(3px) scale(0.995); }
  50% { transform: translateY(-1px); }
  75% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
.comparison-section {
  padding: 80px 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  padding: 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-level-3);
  display: flex;
  flex-direction: column;
}

.traditional-card {
  background: var(--ds-canvas-soft);
  border: 1px solid var(--ds-hairline);
}

.modern-card {
  background: #12141a;
  color: #ffffff;
  border: 1px solid #272a30;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.comp-badge {
  display: inline-block;
  font-size: 11px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  width: fit-content;
}
.comp-badge.old {
  background: #fee2e2;
  color: #dc2626;
}
.comp-badge.new {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.comp-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.comp-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.comp-item p {
  font-size: 13px;
  line-height: 1.5;
}
.traditional-card .comp-item p { color: var(--ds-body); }
.modern-card .comp-item p { color: #94a3b8; }

.icon-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   ROI CALCULATOR SECTION
   ========================================================================== */
.calculator-section {
  padding: 80px 0;
  background: var(--ds-canvas-soft);
  border-top: 1px solid var(--ds-hairline);
  border-bottom: 1px solid var(--ds-hairline);
}

.calculator-box {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.calc-desc {
  font-size: 16px;
  color: var(--ds-body);
  margin-bottom: 32px;
}

.slider-group {
  margin-bottom: 28px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.slider-value {
  font-family: var(--ds-font-mono);
  color: var(--ds-link-deep);
}

.range-slider {
  width: 100%;
  height: 6px;
  background: var(--ds-hairline-strong);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--ds-ink);
  border-radius: 50%;
  box-shadow: var(--shadow-level-2);
  transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results-card {
  background: #ffffff;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-level-4);
  text-align: center;
}
.results-header {
  font-size: 12px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  color: var(--ds-mute);
  text-transform: uppercase;
}
.savings-number {
  font-size: 46px;
  font-weight: 800;
  font-family: var(--ds-font-mono);
  color: var(--ds-success);
  margin: 6px 0;
  letter-spacing: -1.5px;
}
.savings-subtext {
  font-size: 13px;
  color: var(--ds-body);
  margin-bottom: 24px;
}
.savings-breakdown {
  background: var(--ds-canvas-soft-2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.break-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ds-body);
}
.break-item:last-child {
  margin-bottom: 0;
}
.break-item strong {
  color: var(--ds-ink);
  font-family: var(--ds-font-mono);
}

/* ==========================================================================
   DEVELOPERS / SDK CODE SHOWCASE
   ========================================================================== */
.developers-section {
  padding: 80px 0;
}

.code-showcase-box {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.code-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 6px 16px;
}

.code-tabs-list {
  display: flex;
  gap: 4px;
}

.code-tab {
  background: transparent;
  border: none;
  color: #8b949e;
  font-family: var(--ds-font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.code-tab.active {
  background: #21262d;
  color: #58a6ff;
  font-weight: 600;
}

.btn-copy-code {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-size: 11px;
  font-family: var(--ds-font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-copy-code:hover {
  background: #30363d;
  color: #fff;
}

.code-content-wrapper {
  padding: 24px;
  overflow-x: auto;
}
.code-content-wrapper pre {
  font-family: var(--ds-font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #e6edf3;
}

/* ==========================================================================
   SECURITY GRID
   ========================================================================== */
.security-section {
  padding: 80px 0;
  background: var(--ds-canvas-soft);
  border-top: 1px solid var(--ds-hairline);
  border-bottom: 1px solid var(--ds-hairline);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.security-card {
  background: #ffffff;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-level-2);
}
.sec-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.security-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ds-ink);
}
.security-card p {
  font-size: 13px;
  color: var(--ds-body);
  line-height: 1.5;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-level-2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-pricing {
  background: #171717;
  color: #ffffff;
  border-color: #2e2e2e;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
  transform: translateY(-8px);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ds-link);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--ds-font-mono);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.plan-header {
  margin-bottom: 20px;
}
.plan-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-desc {
  font-size: 13px;
  color: var(--ds-body);
}
.featured-pricing .plan-desc { color: #94a3b8; }

.plan-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ds-hairline);
}
.featured-pricing .plan-price {
  border-bottom-color: #333333;
}
.price-val {
  font-size: 38px;
  font-weight: 800;
  font-family: var(--ds-font-mono);
}
.price-sub {
  display: block;
  font-size: 12px;
  color: var(--ds-mute);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 32px;
}
.featured-pricing .plan-features { color: #e2e8f0; }

.pricing-card .btn {
  margin-top: auto;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner-section {
  padding: 40px 0 80px 0;
}
.cta-card {
  background: linear-gradient(135deg, #090a0f 0%, #171c26 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4);
}
.cta-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.cta-sub {
  font-size: 16px;
  color: #94a3b8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ds-canvas-soft);
  border-top: 1px solid var(--ds-hairline);
  padding: 64px 0 40px 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.brand-logo-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  color: var(--ds-body);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
}
.copyright-text {
  font-size: 11px;
  color: var(--ds-mute);
}

.footer-col h4 {
  font-size: 13px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--ds-ink);
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--ds-body);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--ds-ink);
}

/* ==========================================================================
   ONBOARDING MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-level-5);
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.modal-title {
  font-size: 22px;
  font-weight: 700;
}
.modal-close-btn {
  background: var(--ds-canvas-soft-2);
  border: none;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--ds-hairline-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--ds-font-sans);
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--ds-ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.onboard-success-message {
  text-align: center;
  padding: 20px 0;
}
.success-icon-badge {
  width: 48px;
  height: 48px;
  background: var(--ds-success-soft);
  color: var(--ds-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 14px auto;
}
.onboard-success-message h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.onboard-success-message p {
  font-size: 13px;
  color: var(--ds-body);
  margin-bottom: 18px;
}
.sandbox-key-box {
  background: var(--ds-canvas-soft-2);
  border: 1px solid var(--ds-hairline);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.key-label {
  display: block;
  font-size: 11px;
  font-family: var(--ds-font-mono);
  color: var(--ds-mute);
  margin-bottom: 4px;
}
.key-val {
  font-size: 13px;
  font-family: var(--ds-font-mono);
  font-weight: 700;
  color: var(--ds-link-deep);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULL MOBILE & TABLET OPTIMIZATIONS)
   ========================================================================== */

/* 1. Tablet & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  
  .story-stage-box {
    grid-template-columns: 1fr;
    max-width: 700px;
    padding: 30px;
    gap: 28px;
  }
  .story-phone-stage-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .simulator-interaction-zone {
    grid-template-columns: 310px 1fr;
    justify-content: center;
  }
  .calculator-box {
    grid-template-columns: 1fr;
  }
  .security-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .featured-pricing {
    transform: none;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* 2. Mobile Landscape & Standard Phones (<= 768px) */
@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on input focus */
  input, select, textarea {
    font-size: 16px !important;
  }

  body {
    overflow-x: hidden;
    width: 100vw;
  }

  .container {
    padding: 0 16px;
  }

  /* Navbar Mobile Layout */
  .navbar {
    height: 60px;
  }
  .nav-links, .nav-actions {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero-section {
    padding: 48px 0 40px 0;
  }
  .hero-pill-badge {
    padding: 6px 12px;
    font-size: 9.5px;
    letter-spacing: 0.05em;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .hero-title {
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    height: 48px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 36px;
  }
  .hero-stat-card {
    padding: 16px 14px;
  }
  .hero-stat-num {
    font-size: 26px;
  }
  .hero-stat-desc {
    font-size: 11px;
  }

  /* Interactive Cafe Story Demo Mobile Experience */
  .story-demo-section {
    padding: 50px 0;
  }
  .section-title {
    font-size: clamp(26px, 7.5vw, 36px);
    letter-spacing: -0.8px;
    line-height: 1.2;
  }
  .section-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  /* Mobile Stepper Bar (Horizontal Scroll / Compact) */
  .story-stepper-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 8px 14px 8px;
    margin: 0 -8px 24px -8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .story-stepper-bar::-webkit-scrollbar {
    display: none;
  }
  .step-connector-line {
    display: none;
  }
  .step-indicator-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid var(--ds-hairline);
    border-radius: var(--radius-pill);
    gap: 8px;
  }
  .step-indicator-item.active {
    background: var(--ds-ink);
    border-color: var(--ds-ink);
  }
  .step-indicator-item.active .step-name {
    color: #ffffff;
  }
  .step-indicator-item.active .step-num-badge {
    background: #ffffff;
    color: var(--ds-ink);
    box-shadow: none;
  }
  .step-num-badge {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .step-role {
    display: none;
  }
  .step-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Mobile Story Stage Card */
  .story-stage-box {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    gap: 24px;
    box-shadow: var(--shadow-level-3);
  }
  .story-dialogue-bubble {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 18px;
  }
  .bubble-avatar {
    font-size: 20px;
  }
  .bubble-content p {
    font-size: 13px;
    line-height: 1.45;
  }
  .panel-heading {
    font-size: 19px;
    line-height: 1.3;
  }
  .panel-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  /* Quick Amount Presets on Mobile */
  .amount-quick-presets {
    flex-wrap: wrap;
    gap: 8px;
  }
  .preset-btn {
    flex: 1 1 calc(50% - 4px);
    font-size: 12px;
    padding: 9px 10px;
    text-align: center;
  }
  .preset-btn:last-child {
    flex: 1 1 100%;
  }

  /* Step 3 Payment Device Selection Options */
  .story-cards-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .select-card-btn {
    padding: 12px 14px;
    min-height: 54px;
  }
  .btn-card-info strong {
    font-size: 13px;
  }
  .btn-card-info small {
    font-size: 11px;
  }
  .tap-action-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Mobile Phone Stage & 3D Scaling */
  .story-phone-stage-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 50% 20%, rgba(0, 112, 243, 0.06) 0%, transparent 60%);
    padding: 12px 0 0 0;
  }
  .anim-controls-toolbar {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
  }
  .anim-ctrl-btn {
    font-size: 10.5px;
    padding: 5px 10px;
  }
  .story-phone-stage {
    min-height: 520px;
    transform: scale(0.85);
    transform-origin: top center;
    margin-bottom: -60px;
  }

  /* Mobile Touch-Safe Offsets for 3D Floating Devices */
  .interactive-floating-card.mode-card {
    top: 5px;
    right: -5px;
  }
  .interactive-floating-card.mode-phone {
    top: -20px;
    right: -5px;
  }
  .interactive-floating-card.mode-watch {
    top: -25px;
    right: -5px;
  }

  .interactive-floating-card.mode-card.tapped-position {
    top: 42px;
    right: 30px;
  }
  .interactive-floating-card.mode-phone.tapped-position {
    top: -15px;
    right: 63px;
  }
  .interactive-floating-card.mode-watch.tapped-position {
    top: 15px;
    right: 68px;
  }

  /* Receipt Card on Mobile */
  .auto-receipt-card {
    padding: 18px 16px;
  }
  .rec-amount-row {
    font-size: 28px;
    margin: 12px 0;
  }

  /* Simulator Section Mobile */
  .simulator-interaction-zone {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }
  .cards-tray {
    width: 100%;
    max-width: 320px;
  }

  /* Code Showcase Box Mobile */
  .code-editor-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .code-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 4px;
  }
  .code-tab-btn {
    white-space: nowrap;
    font-size: 11.5px;
    padding: 6px 12px;
  }
  .code-content-block pre {
    font-size: 12px;
    padding: 14px;
  }

  /* Comparison & Security */
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .security-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTA Banner Mobile */
  .cta-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta-actions .btn {
    width: 100%;
  }

  /* Password Modal Mobile */
  .password-card {
    padding: 28px 20px;
    max-width: calc(100vw - 32px);
    border-radius: var(--radius-lg);
  }
  .gate-title {
    font-size: 22px;
  }
  .gate-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Onboarding Modal Mobile */
  .modal-box {
    padding: 24px 18px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Footer Mobile */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* 3. Small Mobile Devices (iPhone SE / <= 420px) */
@media (max-width: 420px) {
  .hero-title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .story-phone-stage {
    transform: scale(0.77);
    transform-origin: top center;
    margin-bottom: -115px;
  }

  .story-stage-box {
    padding: 16px 12px;
  }

  .interactive-floating-card.mode-card {
    right: -10px;
  }
  .interactive-floating-card.mode-phone {
    right: -10px;
  }
  .interactive-floating-card.mode-watch {
    right: -10px;
  }

  .panel-heading {
    font-size: 17px;
  }
  .story-success-actions {
    gap: 8px;
  }
  .story-success-actions .btn {
    font-size: 13px;
    height: 44px;
  }
}

/* 4. Ultra-Small Devices (<= 340px) */
@media (max-width: 340px) {
  .story-phone-stage {
    transform: scale(0.70);
    margin-bottom: -150px;
  }
}
