/* ==========================================================================
   TWIN STUDIO MINI — SWISS EDITORIAL LANDING PAGE
   Follows TWIN Brand Guidelines (Pages 01-10):
   - 92% Crisp White (#FFFFFF) & Neutral Paper (#F7F8FA)
   - Flat colors only ("TRÁNH: Tạo đổ bóng, viền, gradient hoặc đổi màu tùy ý")
   - Clear bold Sentence Case headings ("Tiêu đề rõ ràng, in đậm. Dòng ngắn, thoáng")
   - TWIN Cobalt (#123CF3) reserved strictly for brand mark & primary CTA
   ========================================================================== */

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('assets/fonts/BeVietnamPro-Bold.ttf') format('truetype'),
       url('/assets/fonts/BeVietnamPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('assets/fonts/BeVietnamPro-ExtraBold.ttf') format('truetype'),
       url('/assets/fonts/BeVietnamPro-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-white: #FFFFFF;
  --bg-stone: #F6F7F9;
  --ink-primary: #0B1238;
  --ink-body: #374151;
  --ink-muted: #6B7280;
  --line-neutral: #E5E7EB;
  --line-strong: #D1D5DB;
  --twin-cobalt: #123CF3;
  --twin-azure: #087CFA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: 'Be Vietnam Pro', 'Montserrat', 'Roboto', 'Segoe UI', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans) !important;
  color: var(--ink-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans) !important;
  background: var(--bg-white);
  color: var(--ink-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

/* ==========================================================================
   CLEAN WHITE EDITORIAL HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-neutral);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-link img {
  height: 26px;
  width: auto;
  display: block;
}

.product-divider {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

.product-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--ink-body);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ink-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* ==========================================================================
   FLAT EDITORIAL BUTTONS (NO SHADOWS, NO GRADIENTS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-cobalt {
  background: var(--twin-cobalt);
  color: #FFFFFF;
}

.btn-cobalt:hover {
  background: #0E31CA;
}

.btn-ink {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.btn-ink:hover {
  background: #1B2559;
}

.btn-line {
  background: var(--bg-white);
  border-color: var(--line-strong);
  color: var(--ink-primary);
}

.btn-line:hover {
  border-color: var(--ink-primary);
  background: var(--bg-stone);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}

/* ==========================================================================
   HERO — EDITORIAL COPY LEFT + LIVE 9:16 PAIRED VIDEOS RIGHT
   ========================================================================== */
.hero-section {
  padding: 64px 0 76px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-neutral);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kicker-mark {
  width: 8px;
  height: 8px;
  background: var(--twin-cobalt);
  display: inline-block;
  border-radius: 2px;
}

.hero-heading {
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.028em;
  color: var(--ink-primary);
  margin-bottom: 20px;
}

.hero-summary {
  font-size: 16.5px;
  color: var(--ink-body);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-neutral);
  font-size: 13.5px;
  color: var(--ink-muted);
}

.hero-specs span strong {
  color: var(--ink-primary);
  font-weight: 700;
}

/* Live Dual 9:16 Video Stage (Authentic Paired Concept via Content) */
.hero-video-pair {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 18px;
  align-items: end;
}

.phone-reel-card {
  position: relative;
  background: #111318;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

.phone-reel-card.secondary-reel {
  opacity: 0.96;
}

.phone-reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reel-overlay-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(17, 19, 24, 0.84);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 9px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reel-meta-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.reel-meta-sub {
  font-size: 11px;
  color: #D1D5DB;
  display: block;
}

.sound-toggle-btn {
  background: #FFFFFF;
  color: #0B1238;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-sans) !important;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.sound-toggle-btn.playing-sound {
  background: var(--twin-cobalt);
  color: #FFFFFF;
}

/* ==========================================================================
   SECTIONS — GENEROUS WHITESPACE & NEUTRAL HAIRLINES
   ========================================================================== */
.section {
  padding: 84px 0;
  scroll-margin-top: 72px;
}

.section-stone {
  background: var(--bg-stone);
  border-top: 1px solid var(--line-neutral);
  border-bottom: 1px solid var(--line-neutral);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.section-heading {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: var(--ink-primary);
}

.section-desc {
  font-size: 15.5px;
  color: var(--ink-body);
  max-width: 520px;
}

/* ==========================================================================
   5-VIDEO REAL OUTPUT SHOWCASE REEL
   ========================================================================== */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.video-sample-item {
  background: var(--bg-white);
  border: 1px solid var(--line-neutral);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-frame-9x16 {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111318;
  cursor: pointer;
}

.video-frame-9x16 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(17, 19, 24, 0.78);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.video-play-pill.unmuted {
  background: var(--twin-cobalt);
}

.video-sample-caption {
  padding: 13px 14px;
  border-top: 1px solid var(--line-neutral);
}

.video-sample-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 3px;
}

.video-sample-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.35;
}

/* ==========================================================================
   WORKSTATION PREVIEW & SWISS 4-COLUMN NUMBERED LEDGER
   ========================================================================== */
.workstation-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-stone);
  margin-bottom: 48px;
}

.workstation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-neutral);
  gap: 12px;
  flex-wrap: wrap;
}

.workstation-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-tab {
  font-family: var(--font-sans) !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line-neutral);
  background: var(--bg-white);
  color: var(--ink-body);
  cursor: pointer;
}

.ws-tab.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
}

.workstation-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

.editorial-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-neutral);
}

.ledger-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
  display: block;
}

.ledger-item h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ledger-item p {
  font-size: 14px;
  color: var(--ink-body);
  line-height: 1.6;
}

/* ==========================================================================
   PRICING & ANNUAL SAVINGS (CLEAN FLAT ARCHITECTURAL CARDS)
   ========================================================================== */
.savings-strip {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.savings-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.save-tag-flat {
  background: var(--twin-cobalt);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
}

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

.plan-box {
  background: var(--bg-white);
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

/* Annual recommended card: crisp 2px Ink border on pure white — zero heavy blue fill! */
.plan-box.plan-annual {
  border: 2px solid var(--ink-primary);
}

.plan-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink-primary);
}

.plan-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-stone);
  color: var(--ink-body);
}

.plan-pill.cobalt {
  background: var(--twin-cobalt);
  color: #FFFFFF;
}

.plan-subtitle {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  min-height: 42px;
}

.plan-figure {
  padding: 18px 0;
  border-top: 1px solid var(--line-neutral);
  border-bottom: 1px solid var(--line-neutral);
  margin-bottom: 20px;
}

.old-price-line {
  font-size: 13px;
  color: var(--ink-muted);
  min-height: 20px;
  margin-bottom: 2px;
}

.old-price-line s {
  color: #9CA3AF;
  margin-right: 6px;
}

.main-price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
  line-height: 1.1;
}

.main-price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.seat-note {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-body);
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}

.plan-list li {
  font-size: 14px;
  color: var(--ink-body);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.plan-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-muted);
  font-weight: 700;
}

.plan-box.plan-annual .plan-list li::before {
  color: var(--twin-cobalt);
}

.vat-bar {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--bg-white);
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-body);
}

/* ==========================================================================
   PLATFORMS & CONTACT (CLEAN NEUTRAL TWO-COLUMN)
   ========================================================================== */
.two-col-contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.os-box-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.os-mini-card {
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-stone);
}

.os-mini-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.os-mini-card span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.direct-channels {
  border-top: 1px solid var(--line-neutral);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.contact-card-form {
  background: var(--bg-stone);
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.field-input, .field-select, .field-textarea {
  font-family: var(--font-sans) !important;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--ink-primary);
  outline: none;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--twin-cobalt);
}

/* ==========================================================================
   CLEAN MINIMAL FOOTER & ZALO SUPPORT BUTTON
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-neutral);
  padding: 32px 0 92px;
  background: var(--bg-white);
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.floating-zalo-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink-primary);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
}

.floating-zalo-btn:hover {
  background: var(--twin-cobalt);
}

.zalo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}

/* ==========================================================================
   SEPAY VIETQR CHECKOUT MODAL (CLEAN WHITE ARCHITECTURAL)
   ========================================================================== */
.checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(11, 18, 56, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.checkout-backdrop.open {
  display: flex;
}

.checkout-dialog {
  width: min(820px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.checkout-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-neutral);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-close {
  background: var(--bg-stone);
  border: 1px solid var(--line-neutral);
  color: var(--ink-primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.checkout-body {
  padding: 24px;
}

.vat-toggle-box {
  background: var(--bg-stone);
  border: 1px solid var(--line-neutral);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
}

.qr-payment-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
}

.qr-frame {
  background: var(--bg-stone);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.qr-frame img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 6px;
  border: 1px solid var(--line-neutral);
}

.bank-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-stone);
  border: 1px solid var(--line-neutral);
  border-radius: 8px;
  margin-bottom: 8px;
}

.copy-mini-btn {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.license-issued-box {
  background: var(--bg-stone);
  border: 1.5px solid var(--ink-primary);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.license-code-display {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 14px 0;
  user-select: all;
}

@media (max-width: 1024px) {
  .hero-layout,
  .pricing-cards,
  .two-col-contact,
  .qr-payment-grid {
    grid-template-columns: 1fr;
  }
  .video-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav {
    display: none;
  }
}
