/* ==========================================================================
   CCTV AI Mastery: Pre-Order Landing Page Stylesheet
   Crafted for aicctv.pages.dev (Cloudflare Pages)
   Adheres strictly to Anti-Slop, FSP High-Converting, and WCAG AA standards.
   ========================================================================== */

:root {
  --bg-primary: #090c13;
  --bg-secondary: #0f1422;
  --bg-card: #141b2d;
  --bg-card-hover: #1a233a;
  --bg-elevated: #1e2842;
  --bg-highlight: rgba(245, 158, 11, 0.08);

  --border-subtle: #232d45;
  --border-medium: #334162;
  --border-active: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #090c13;

  --color-brand: #f59e0b;
  --color-brand-glow: rgba(245, 158, 11, 0.25);
  --color-cta: #ff9800;
  --color-cta-hover: #e68900;
  --color-cta-shadow: rgba(255, 152, 0, 0.35);
  
  --color-emerald: #10b981;
  --color-emerald-bg: rgba(16, 185, 129, 0.12);
  --color-red: #ef4444;
  --color-red-bg: rgba(239, 68, 68, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.6);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Utility Layouts */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-brand { color: var(--color-brand); }
.text-emerald { color: var(--color-emerald); }
.text-red { color: var(--color-red); }
.text-muted { color: var(--text-muted); }

/* Header & Sticky Top Alert */
.top-banner {
  background: linear-gradient(90deg, #1e1b10, #2b1f06, #1e1b10);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: #fde68a;
  text-align: center;
  font-weight: 500;
}

.top-banner strong {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 12, 19, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-emerald);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-release {
  font-size: 0.8rem;
  color: var(--color-brand);
  background: var(--bg-highlight);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, #151d30 0%, var(--bg-primary) 70%);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-emerald);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-subhead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 780px;
}

/* FSP 3 Trigger Questions (Empathy & Pain points) */
.pain-trigger-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.75rem 0;
  text-align: left;
}

.pain-trigger-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pain-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.45;
}

.pain-list li span.bullet-icon {
  color: var(--color-red);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Primary CTA Button (FSP Spec: Thumb Zone, High Contrast #ff9800) */
.cta-group {
  margin: 2rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 440px;
  min-height: 52px;
  background-color: var(--color-cta);
  color: #0b0f19;
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid #ffb74d;
  box-shadow: 0 6px 20px var(--color-cta-shadow);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0.75rem 1.5rem;
  text-align: center;
}

.btn-cta:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-cta-shadow);
}

.btn-cta:active {
  transform: translateY(0);
}

.cta-subtext {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Control Room Mockup & Telemetry Card */
.telemetry-card {
  margin-top: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.telemetry-header {
  background: var(--bg-card);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.telemetry-tag {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.telemetry-screen {
  position: relative;
  background: #06090e;
  padding: 1.25rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.stream-overlay {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
}

.camera-label {
  background: rgba(0, 0, 0, 0.7);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detection-boxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .detection-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bbox-item {
  border: 1px solid var(--color-brand);
  background: rgba(245, 158, 11, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bbox-item.verified {
  border-color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.telemetry-footer {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.stat-item strong {
  color: #ffffff;
  font-family: var(--font-mono);
  margin-right: 0.35rem;
}

/* Sections General */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.125rem;
  }
}

.section-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Bang Kiming Practical Wisdom Box */
.kiming-quote-card {
  background: #111726;
  border: 1px solid #2e3d5e;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.kiming-quote-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kiming-avatar-stub {
  width: 44px;
  height: 44px;
  background: #25334d;
  color: var(--color-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  border: 2px solid var(--color-brand);
}

.kiming-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.kiming-meta p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.kiming-quote-body {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
  font-style: normal;
}

.kiming-quote-body p {
  margin-bottom: 0.75rem;
}

.kiming-quote-body p:last-child {
  margin-bottom: 0;
}

/* 17 BenBi Value Cards (Bukan Jual Fitur Mentah) */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition-normal);
}

.benefit-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card);
}

.benefit-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand);
  background: var(--bg-highlight);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Comparison Table (Standard vs CCTV AI) */
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  background: var(--bg-secondary);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th {
  background: var(--bg-card);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.col-ai {
  background: rgba(245, 158, 11, 0.03);
  font-weight: 600;
  color: #fef08a;
}

/* Interactive Savings Calculator */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
}

.calc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.calc-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.calc-controls {
  margin-bottom: 1.5rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
  outline: none;
  cursor: pointer;
  accent-color: var(--color-brand);
}

.calc-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .calc-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.calc-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.calc-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.calc-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}

.calc-stat-val.savings {
  color: var(--color-emerald);
}

/* Telegram 22:00 Daily Summary Showcase */
.tg-mock-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 1rem;
}

.tg-bot-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.tg-name h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.tg-name span {
  font-size: 0.75rem;
  color: #38bdf8;
}

.tg-message-bubble {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #f1f5f9;
}

.tg-message-bubble .time-tag {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  text-align: right;
  margin-top: 0.5rem;
}

/* Syllabus & Curriculum Accordion */
.syllabus-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.syllabus-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.syllabus-trigger {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.syllabus-trigger:hover {
  background-color: var(--bg-card);
}

.syllabus-trigger-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.module-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-brand);
  background: var(--bg-highlight);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.chevron-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition-normal);
}

.syllabus-item.active .chevron-icon {
  transform: rotate(180deg);
}

.syllabus-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.syllabus-item.active .syllabus-body {
  display: block;
}

.syllabus-body ul {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.syllabus-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.syllabus-body ul li::before {
  content: "✓";
  color: var(--color-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* Pricing Card & Offer Section (FSP Spec: 3>7>9 Hierarchy) */
.pricing-section {
  background: radial-gradient(circle at 50% 100%, #172238 0%, var(--bg-primary) 70%);
}

.pricing-card-highlight {
  background: var(--bg-card);
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  max-width: 600px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.pricing-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.price-strike-layer {
  margin-bottom: 0.5rem;
}

.price-normal {
  font-size: 1.125rem;
  color: var(--color-red);
  text-decoration: line-through;
  font-weight: 700;
  margin-right: 0.5rem;
}

.price-batch1 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* FSP Hero Price (Hero: Black/White, not bloated) */
.price-hero-container {
  margin: 1rem 0 1.25rem;
}

.price-hero {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-hero-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.bonus-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.bonus-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bonus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.bonus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.bonus-list li span.gift {
  color: var(--color-brand);
  font-weight: 800;
}

/* Guarantee Card */
.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  text-align: left;
}

.guarantee-icon {
  font-size: 1.75rem;
  color: var(--color-emerald);
  flex-shrink: 0;
}

.guarantee-text h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.guarantee-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  color: var(--color-brand);
}

/* Modal Dialog (QRIS Alfin Digital Payment) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: #ffffff;
  border-color: var(--border-medium);
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.qris-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #0b0f19;
  text-align: center;
  margin: 1rem 0;
  box-shadow: var(--shadow-md);
}

.qris-header-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
}

.qris-brand-title {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #0b0f19;
}

.qris-merchant-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.qris-canvas-wrapper {
  background: #ffffff;
  padding: 0.5rem;
  display: inline-block;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.qris-canvas-wrapper canvas,
.qris-canvas-wrapper svg {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
}

.qris-merchant-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.qris-nmid {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

.qris-amount-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0;
}

.qris-amount-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand);
}

.btn-copy {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--border-medium);
}

.btn-wa-confirm {
  width: 100%;
  min-height: 48px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background-color var(--transition-fast);
}

.btn-wa-confirm:hover {
  background-color: #1ebc59;
}

/* QRIS Tabs & Action Buttons */
.qris-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 1rem;
}

.qris-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qris-tab-btn.active {
  background: var(--bg-card);
  color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.btn-download-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-download-qr:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
}

/* Footer (Anti-Slop: No generic 4-column AI slop, truthful owner attribution) */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #06090e;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copy p {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.footer-disclaimer {
  font-size: 0.775rem;
  color: #64748b;
  max-width: 480px;
  line-height: 1.45;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .btn-cta {
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }
  .price-hero {
    font-size: 2.5rem;
  }
  .modal-dialog {
    padding: 1.25rem;
  }
}
