/* ==========================================================================
   The Question Mark LLC - Clean Light-Mode Professional Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&family=Cinzel:wght@600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Colors from Trademark PDF */
  --brand-gold: #d97706;
  --brand-gold-light: #fef3c7;
  --brand-gold-hover: #b45309;

  --brand-red: #b91c1c;
  --brand-red-dark: #991b1b;
  --brand-red-light: #fef2f2;
  
  /* Clean Light Theme Palette */
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 15px 35px -5px rgba(15, 23, 42, 0.08);
  
  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography & Visual Anchors */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.serif-title {
  font-family: var(--font-serif);
  color: var(--brand-red);
}

.text-gold {
  color: var(--brand-gold);
}

.text-red {
  color: var(--brand-red);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-gold-light);
  color: var(--brand-gold-hover);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-tag-red {
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-color: rgba(185, 28, 28, 0.2);
}

.badge-tag-black {
  background: #0f172a;
  color: #ffffff;
  border-color: #334155;
}

/* Top Notification Banner */
.top-notice-bar {
  background: var(--text-main);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  text-align: center;
  font-weight: 500;
}

.top-notice-bar strong {
  color: #fde047;
}

/* Header Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(185, 28, 28, 0.35);
}

.btn-black {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-black:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--brand-gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: var(--brand-gold-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-white);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-light);
}

/* Hero Section */
.hero {
  padding: 4rem 0 3.5rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.1rem;
  font-weight: 800;
  margin: 1rem 0 1.2rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-val {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-red);
}

.trust-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Card Product Display */
.hero-card-display {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.hero-card-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.hero-tab-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.hero-tab-btn.active {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.hero-card-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
}

.hero-card-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.7rem 0 0.8rem;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Digital Wallet Section & Pass Preview */
.digital-wallet-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-white) 100%);
  border-bottom: 1px solid var(--border-light);
}

.digital-wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Apple & Google Wallet Pass UI Container */
.apple-wallet-pass-preview {
  background: #000000;
  border-radius: 24px;
  padding: 1.5rem;
  color: #ffffff;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  border: 2px solid #334155;
  position: relative;
  overflow: hidden;
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.pass-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pass-brand-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fde047;
}

.pass-tag {
  background: var(--brand-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.pass-body-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.pass-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.pass-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.pass-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.pass-qr-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #000;
}

.pass-qr-box img {
  width: 130px;
  height: 130px;
}

.pass-qr-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wallet-badge-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.wallet-badge-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Value Props Section */
.value-section {
  padding: 4.5rem 0;
}

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

.value-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-gold-light);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.value-card p {
  color: var(--text-body);
  font-size: 0.95rem;
}

/* S-A-F-E-R Response System Section */
.safer-section {
  padding: 5rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.safer-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.safer-item-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  transition: var(--transition);
}

.safer-item-card:hover {
  border-color: var(--brand-red);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.safer-letter {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.safer-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.safer-item-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Interactive Card Studio */
.studio-section {
  padding: 5rem 0;
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.card-simulator-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.card-perspective {
  perspective: 1200px;
  width: 100%;
  max-width: 480px;
  height: 310px;
}

.pocket-card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.pocket-card-3d.flipped {
  transform: rotateY(180deg);
}

/* Clean Physical Card Styling */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: #fdfbf7;
  border: 2px solid #cbd5e1;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.card-face-back {
  transform: rotateY(180deg);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-red);
  padding-bottom: 0.4rem;
}

.card-brand-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-butterfly-logo {
  height: 32px;
  width: auto;
}

.card-brand-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-red);
}

.card-red-banner {
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
  margin: 0.4rem 0;
}

.card-info-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.68rem;
}

.card-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 2px;
}

.card-info-lbl {
  font-weight: 700;
  color: #7f1d1d;
}

.card-info-val {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

/* Customizer Form Panel */
.customizer-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--brand-red-light);
  color: var(--brand-red);
}

.form-group {
  margin-bottom: 1.1rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-body);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
  background: var(--bg-white);
}

/* Storefront Section */
.store-section {
  padding: 5rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
}

.price-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1rem 0;
}

.price-val span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-features li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-features li::before {
  content: "✓";
  color: var(--brand-red);
  font-weight: 800;
}

/* Bulk Calculator Card */
.bulk-calc-card {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  accent-color: var(--brand-red);
}

.calc-summary {
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Consulting Division Section */
.consulting-section {
  padding: 5rem 0;
}

.consulting-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.consulting-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.consulting-item-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.consulting-item-card:hover {
  border-color: var(--brand-gold);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.consulting-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-gold-light);
  color: var(--brand-gold-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 540px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 340px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fde047;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.85rem;
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-grid, .digital-wallet-grid, .studio-grid, .consulting-grid, .bulk-calc-card {
    grid-template-columns: 1fr;
  }

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

  .value-grid, .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .value-grid, .pricing-grid, .safer-cards-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .nav-menu {
    display: none;
  }
}
