/* TicketQR Website - Global Styles */
:root {
  --navy-900: #0A2E4D;
  --navy-800: #1A3A52;
  --navy-700: #2A4A62;
  --navy-600: #3A5A72;
  --orange-600: #E67A35;
  --orange-500: #FF8C42;
  --orange-400: #FFB84D;
  --cyan-500: #4CC9F0;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-800);
  border-bottom: 1px solid var(--navy-700);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.navbar-logo:hover { opacity: 0.85; }

.navbar-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.navbar-logo-svg {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.navbar-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.navbar-logo-text span {
  color: var(--orange-500);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.navbar-lang {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: white;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: var(--orange-500);
  color: white;
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,140,66,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--gray-300);
}
.btn-secondary:hover { border-color: var(--navy-800); background: var(--gray-50); }

.btn-white {
  background: white;
  color: var(--navy-800);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.badge-orange { background: rgba(255,140,66,0.12); color: var(--orange-600); }
.badge-navy { background: rgba(26,58,82,0.08); color: var(--navy-800); }
.badge-cyan { background: rgba(76,201,240,0.12); color: #0e7fa0; }
.badge-success { background: rgba(16,185,129,0.12); color: #059669; }
.badge-danger { background: rgba(239,68,68,0.12); color: #dc2626; }
.badge-warning { background: rgba(245,158,11,0.12); color: #b45309; }

/* ===== CARD ===== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* ===== PHONE MOCKUP ===== */
.phone-mockup {
  width: 100%;
  max-width: 260px;
  background: var(--navy-900);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  flex-shrink: 0;
}

.phone-screen {
  background: var(--gray-50);
  border-radius: 26px;
  overflow: hidden;  
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: var(--navy-900);
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}

/* ===== MOCKUP SCREENS ===== */
.screen-header {
  background: var(--navy-800);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.screen-header-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.screen-logo-small {
  width: 24px;
  height: 24px;
  background: var(--navy-700);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-body { padding: 16px; }

.mock-input {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--gray-700);
  margin-bottom: 10px;
  width: 100%;
}

.mock-input.filled { color: var(--gray-900); border-color: var(--navy-600); }

.mock-btn {
  background: var(--orange-500);
  color: white;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
}

.mock-btn-navy {
  background: var(--navy-800);
  color: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.mock-label {
  font-size: 11px;
  color: var(--gray-600);
  margin-bottom: 4px;
  font-weight: 500;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.mock-stat {
  background: white;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.mock-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange-500);
}
.mock-stat-lbl {
  font-size: 9px;
  color: var(--gray-500);
  margin-top: 2px;
}

.mock-event-item {
  background: white;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-200);
}
.mock-event-title { font-size: 12px; font-weight: 700; color: var(--navy-800); }
.mock-event-meta { font-size: 10px; color: var(--gray-600); margin-top: 3px; }
.mock-event-badge {
  display: inline-block;
  background: rgba(255,140,66,0.12);
  color: var(--orange-600);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  margin-top: 4px;
}

.mock-ticket-item {
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-ticket-qr {
  width: 34px;
  height: 34px;
  background: var(--gray-100);
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.mock-ticket-info { flex: 1; }
.mock-ticket-name { font-size: 11px; font-weight: 700; color: var(--navy-800); }
.mock-ticket-code { font-size: 9px; color: var(--gray-500); font-family: monospace; }

/* Scanner screens */
.screen-success { background: #d1fae5; min-height: 100%; }
.screen-error { background: #fee2e2; min-height: 100%; }
.screen-warning { background: #fef3c7; min-height: 100%; }

.scan-result-icon {
  font-size: 52px;
  text-align: center;
  padding: 24px 0 8px;
}
.scan-result-title {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  padding: 0 16px;
}
.scan-result-sub {
  font-size: 11px;
  text-align: center;
  padding: 6px 16px 0;
  opacity: 0.75;
}

/* ===== CODE INLINE ===== */
code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9em;
  word-wrap: break-word;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
  display: inline-block;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: var(--gray-900);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  position: relative;
}
.code-block pre {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0;
}
.code-block .keyword { color: #93c5fd; }
.code-block .string { color: #a7f3d0; }
.code-block .comment { color: #94a3b8; font-style: italic; }
.code-block .number { color: #fca5a5; }
.code-block .tag { color: #f9a8d4; }

.code-tab-bar {
  background: #1e293b;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
}
.code-tab {
  font-size: 12px;
  color: var(--gray-400);
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: monospace;
}
.code-tab.active { background: rgba(255,255,255,0.1); color: white; }

.code-lang-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--gray-400);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* ===== GUIDE STEPS ===== */
.guide-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 64px;
}
.guide-step:nth-child(even) { flex-direction: row-reverse; }

.guide-step-content { flex: 1; padding-top: 12px; }
.guide-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--orange-500);
  color: white;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 12px;
}
.guide-step-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.guide-step-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.guide-step-content ul {
  list-style: none;
  padding: 0;
}
.guide-step-content ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: var(--gray-700);
}
.guide-step-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.guide-step-phone { flex-shrink: 0; }

/* ===== API DOCS ===== */
.api-endpoint {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  background: var(--gray-50);
}
.method-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.5px;
}
.method-post { background: rgba(16,185,129,0.12); color: #059669; }
.method-get { background: rgba(59,130,246,0.12); color: #2563eb; }
.method-put { background: rgba(245,158,11,0.12); color: #b45309; }
.method-delete { background: rgba(239,68,68,0.12); color: #dc2626; }

.endpoint-path {
  font-family: monospace;
  font-size: 14px;
  color: var(--navy-900);
  font-weight: 600;
}
.endpoint-desc { font-size: 13px; color: var(--gray-600); margin-left: auto; }

.api-endpoint-body { padding: 20px; }

.param-table { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
.param-table th {
  background: var(--gray-100);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: top;
}
.param-name { font-family: monospace; color: var(--navy-700); font-weight: 600; }
.param-required { color: var(--danger); font-size: 11px; font-weight: 700; }
.param-optional { color: var(--gray-400); font-size: 11px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo-text { font-size: 18px; font-weight: 700; color: white; }
.footer-logo-text span { color: var(--orange-400); }
.footer-tagline { font-size: 13px; max-width: 220px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-link-group h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.3px; }
.footer-link-group a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-link-group a:hover { color: var(--orange-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, #1f5a7a 100%);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 100%;
  max-width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,140,66,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 100%;
  max-width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(76,201,240,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,140,66,0.15);
  border: 1px solid rgba(255,140,66,0.3);
  color: var(--orange-400);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--orange-500); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-phones {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-shrink: 0;
}
.hero-phones .phone-mockup:nth-child(2) { margin-bottom: 28px; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: all 0.25s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-icon-orange { background: rgba(255,140,66,0.12); }
.feature-icon-navy { background: rgba(26,58,82,0.08); }
.feature-icon-cyan { background: rgba(76,201,240,0.12); }
.feature-icon-green { background: rgba(16,185,129,0.1); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===== WHO FOR ===== */
.who-card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.who-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.who-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.who-card p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ===== FLOW STEPS ===== */
.flow-steps {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: center;
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 28px 20px;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 38px;
  font-size: 22px;
  color: var(--orange-400);
  z-index: 1;
}
.flow-step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  color: white;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(255,140,66,0.35);
}
.flow-step h4 { font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.flow-step p { font-size: 12px; color: var(--gray-600); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 100%;
  max-width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,140,66,0.15) 0%, transparent 70%);
}
.page-header-inner {
  position: relative;
  z-index: 1;
}
.page-header h1 { font-size: 42px; font-weight: 900; color: white; letter-spacing: -1px; margin-bottom: 12px; }
.page-header p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; }

/* ===== GUIDE TOC ===== */
.guide-toc {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 56px;
}
.guide-toc h3 { font-size: 15px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; }
.guide-toc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc-list a {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.guide-toc-list a:hover { border-color: var(--orange-500); color: var(--orange-600); background: rgba(255,140,66,0.06); }

/* ===== NOTE BOX ===== */
.note-box {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
}
.note-box-info { background: rgba(59,130,246,0.08); border-left: 3px solid #3b82f6; color: #1d4ed8; }
.note-box-warning { background: rgba(245,158,11,0.08); border-left: 3px solid var(--warning); color: #92400e; }
.note-box-success { background: rgba(16,185,129,0.08); border-left: 3px solid var(--success); color: #065f46; }

/* ===== DIVIDER ===== */
.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 28px;
}
.divider-label::before, .divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.divider-label span {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== API SPECIFIC STYLES ===== */
.http-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 16px 0;
}

.http-flow-step {
  flex: 1;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  min-width: 0;
}

.http-flow-step:last-child {
  border-right: none;
}

.http-flow-label {
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.http-flow-val {
  font-family: monospace;
  font-size: 12px;
  color: #e2e8f0;
  word-break: break-all;
  overflow-wrap: break-word;
}

.http-flow-val.orange { color: var(--orange-400); }
.http-flow-val.green { color: #6ee7b7; }

.response-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.response-box {
  border-radius: var(--radius);
  padding: 14px 16px;
}

.response-box-success {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.response-box-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

.response-box .res-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.response-box-success .res-code { color: #065f46; }
.response-box-error .res-code { color: #dc2626; }

.response-box pre {
  font-family: monospace;
  font-size: 11px;
  color: #374151;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.auth-box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,0.06);
}

.auth-box h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.auth-box p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-phones { justify-content: center; }
  .hero::before { max-width: 400px; }
  .hero::after { max-width: 300px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-step { flex-direction: column !important; }
  .guide-step-phone { align-self: center; }
  .navbar-nav { display: none; }
  .flow-steps { flex-direction: column; align-items: center; }
  .flow-step::after { display: none; }
  .who-card { flex-direction: column; text-align: center; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .api-layout { flex-direction: column; }
  .api-sidebar { display: none; }
  .response-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Typography */
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero-subtitle { font-size: 16px; }
  .section-header h2 { font-size: 26px; }
  .page-header h1 { font-size: 28px; }
  
  /* Layout */
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  
  /* Grids */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-strip-inner { flex-direction: column; gap: 20px; }
  
  /* Phone mockups - critical fix */
  .phone-mockup { width: 100%; max-width: 280px; margin: 0 auto; }
  .hero-phones { gap: 16px; flex-wrap: wrap; }
  
  /* Buttons */
  .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
  .btn { width: 100%; max-width: 100%; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
  
  /* Cards */
  .feature-card, .who-card { padding: 20px; }
  .card { padding: 20px; }
  
  /* Footer */
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  /* Tables - allow horizontal scroll */
  .param-table { font-size: 11px; }
  .param-table th, .param-table td { padding: 6px 8px; white-space: nowrap; }
  
  /* Code blocks */
  .code-block { padding: 16px; font-size: 11px; }
  .code-block pre { font-size: 11px; white-space: pre; }
  
  /* Hero backgrounds - prevent overflow */
  .hero::before { max-width: 250px; height: 250px; top: -30%; right: -15%; }
  .hero::after { max-width: 200px; height: 200px; bottom: -15%; left: -10%; }
  .page-header::before { max-width: 200px; height: 200px; }
  
  /* API endpoint */
  .api-endpoint-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .endpoint-desc { margin-left: 0; margin-top: 4px; }
  
  /* Flow steps */
  .flow-step { padding: 20px 16px; }
  .flow-step h4 { font-size: 13px; }
  .flow-step p { font-size: 11px; }
  
  /* Guide TOC */
  .guide-toc-list { flex-direction: column; }
  
  /* Integration cards */
  .integration-card { padding: 20px; }
  
  /* Response boxes */
  .response-box { padding: 12px 14px; }
  .response-box pre { font-size: 10px; }
  .response-grid { grid-template-columns: 1fr; }
  
  /* HTTP Flow - stack vertically */
  .http-flow { flex-direction: column; }
  .http-flow-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .http-flow-step:last-child { border-bottom: none; }
  .http-flow-val { font-size: 11px; }
  
  /* Auth box */
  .auth-box { padding: 20px; }
  
  /* Who cards grid */
  div[style*="grid-template-columns:repeat(2,1fr)"] { 
    grid-template-columns: 1fr !important; 
  }
}

/* Language sections */
.lang-it, .lang-en { display: none; }
.lang-it.visible, .lang-en.visible { display: block; }
