/* ============================================================
   SMIT Agency Landing Page — Brand-Aligned Styles
   Source brand guideline: brand_guline/DESIGN-SYSTEM.md
   Theme: Dark mode + green primary + cyan→lime→vàng gradient
   ============================================================ */

:root {
  /* ===== Brand colors ===== */
  --color-primary: #07b176;
  --color-primary-radio: #05a06a;
  --color-primary-border: #0fbf7b;
  --color-tab-layout: #1a726b;

  /* ===== Semantic ===== */
  --color-success: #07b176;
  --color-warning: #f0b10d;
  --color-danger: #ec1723;

  /* ===== Background (Dark Mode) ===== */
  --bg-deep: #000014;
  --bg-deeper: #090a19;
  --bg-card: #14162e;

  /* ===== Accent (gradient stops + highlights) ===== */
  --accent-mint: #64ffda;
  --accent-cyan: #35e7e9;
  --accent-lime-green: #7eeda2;
  --accent-yellow-lime: #d4fd73;
  --accent-lime: #d9ff67;
  --accent-blue: #16b1ff;
  --accent-green: #56ca00;

  /* ===== Alpha / Glass ===== */
  --white-50: rgba(255, 255, 255, 0.50);
  --white-17: rgba(255, 255, 255, 0.17);
  --white-13: rgba(255, 255, 255, 0.13);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-7:  rgba(255, 255, 255, 0.07);
  --border-white-20: rgba(255, 255, 255, 0.20);
  --border-white-10: rgba(255, 255, 255, 0.10);

  /* ===== Gradient — chữ ký thị giác SMIT ===== */
  --gradient-primary: linear-gradient(93deg,
    #35e7e9 4.58%,
    #7eeda2 62.66%,
    #d4fd73 90.08%,
    #d9ff67 96.95%);

  --gradient-blue-agency:
    linear-gradient(180deg, #0ff0bb -14.8%, #0cc096 43.22%, #09906a 100%),
    linear-gradient(135deg, #00c7de 0%, #1a8cff 54.9%, #0071f2 100%);

  /* ===== Typography ===== */
  --font-base: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ===== Shadows ===== */
  --shadow-btn-gradient: 0 6px 27.3px rgba(186, 255, 175, 0.4);
  --shadow-glass-glow:
    0 0 0 1px rgba(255,255,255,0.5) inset,
    0 0 20px rgba(255,255,255,0.3),
    0 0 40px rgba(255,255,255,0.1);
  --shadow-mint-glow: 0 0 30px rgba(100,255,218,0.6),
                      0 0 60px rgba(100,255,218,0.4);
  --shadow-inner-dark: inset 0 3.553px 10.897px rgba(3,4,26,1);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (max-width: 1023px) { html { scroll-padding-top: 64px; } }

body {
  font-family: var(--font-base);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(7,177,118,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(53,231,233,0.14), transparent 60%),
    radial-gradient(800px 500px at 50% 50%, rgba(126,237,162,0.06), transparent 70%),
    var(--bg-deep);
  background-attachment: fixed;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-mint); color: var(--bg-deep); }

/* ============================================================
   TYPOGRAPHY — Hierarchy theo brand
   ============================================================ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-weight: 800; letter-spacing: -0.02em; }

/* ============================================================
   GLOW H1 — chữ ký SMIT (2 layer: ghost behind + front)
   ============================================================ */
.hero-h1-wrapper {
  position: relative;
  display: inline-block;
}
.hero-h1-ghost {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.5);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero-h1-front {
  position: relative;
  color: #ffffff;
  z-index: 1;
}

/* ============================================================
   BUTTONS — theo brand
   ============================================================ */

/* Primary gradient button (CTA chính: "Đặt lịch tư vấn") */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #000201;
  padding: 14px 32px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-btn-gradient);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 48px;
  cursor: pointer;
  letter-spacing: 0;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 32px rgba(186, 255, 175, 0.55);
}
.btn-gradient:active { transform: translateY(0); }

/* Glow text button — text-only với hover glow mint */
.glow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-white-20);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: text-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  min-height: 48px;
  cursor: pointer;
}
.glow-button:hover {
  text-shadow: 0 0 12px var(--accent-mint);
  border-color: var(--accent-mint);
  background: rgba(100, 255, 218, 0.05);
}

/* Language switcher button */
.btn-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white-10);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-white-10);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 36px;
}
.btn-language:hover {
  background: var(--white-17);
  border-color: var(--border-white-20);
}

/* ============================================================
   GLASS CARD — dùng cho cards, panels
   ============================================================ */
.card-glass {
  background: var(--white-10);
  border: 1px solid var(--border-white-10);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 237, 162, 0.4);
  background: var(--white-13);
}

.card-glass-lg {
  padding: 36px 28px;
  border-radius: 30px;
}

.card-glass-glow {
  box-shadow: var(--shadow-glass-glow);
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
#site-header {
  background: rgba(0, 0, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}
#site-header.scrolled {
  background: rgba(0, 0, 20, 0.92);
  border-bottom-color: var(--border-white-10);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
#site-header.scrolled > div {
  height: 56px;
}
@media (min-width: 1024px) {
  #site-header.scrolled > div { height: 64px; }
}

/* ============================================================
   IMAGE PLACEHOLDERS — dark theme variant
   ============================================================ */
.image-placeholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.04) 75%, rgba(255,255,255,0.08) 75%);
  background-size: 24px 24px;
  border: 2px dashed var(--border-white-20);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.image-placeholder span {
  position: relative;
  z-index: 1;
  background: rgba(0,0,20,0.85);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-white-10);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  color: var(--accent-mint);
}
.image-placeholder.rounded-full,
.image-placeholder[class*="rounded-full"] {
  border-radius: 50%;
}
.image-placeholder.rounded-full span,
.image-placeholder[class*="rounded-full"] span {
  font-size: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
}

/* Bright image preview area (for app screenshots — white card with shadow glow) */
.preview-card-bright {
  background: #ffffff;
  border-radius: 24px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.5),
    0 20px 60px -10px rgba(53, 231, 233, 0.25),
    0 30px 80px -20px rgba(126, 237, 162, 0.2);
  overflow: hidden;
}

/* ============================================================
   HERO VIDEO CARD — viền mỏng + hover glow mint
   ============================================================ */
.hero-video-card {
  position: relative;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.04));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 20px 60px -10px rgba(53, 231, 233, 0.15),
    0 30px 80px -20px rgba(126, 237, 162, 0.10);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-video-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(100, 255, 218, 0.5),
    0 0 30px rgba(100, 255, 218, 0.25),
    0 0 60px rgba(100, 255, 218, 0.12),
    0 30px 80px -10px rgba(53, 231, 233, 0.30);
}

/* Khi user đã bấm play (overlay ẩn) → bỏ hover transform để không ảnh hưởng tương tác video */
.hero-video-card.playing:hover {
  transform: none;
}

/* ============================================================
   STATS — gradient text
   ============================================================ */
.stat-number {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* ============================================================
   FAQ ACCORDION — dark glass
   ============================================================ */
details[open] > summary {
  border-bottom-color: var(--border-white-10);
}
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details > summary span:last-child {
  display: inline-block;
  transition: transform 0.2s ease;
  color: var(--accent-mint);
}
details[open] > summary span:last-child {
  transform: rotate(180deg);
}

/* ============================================================
   FORM — dark theme
   ============================================================ */
.form-input {
  background: var(--white-7);
  border: 1px solid var(--border-white-20);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  width: 100%;
  font-size: 15px;
  font-family: var(--font-base);
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 48px;
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--white-10);
  box-shadow: 0 0 0 3px rgba(7, 177, 118, 0.2);
}

.form-radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--white-7);
  border: 1px solid var(--border-white-20);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s ease;
  min-height: 48px;
}
.form-radio-card:hover { border-color: var(--accent-lime-green); }
.form-radio-card:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(7, 177, 118, 0.1);
  color: #ffffff;
}
.form-radio-card input[type="radio"] { accent-color: var(--color-primary); }

/* Select dropdown — country code */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px !important;
}
select.form-input option {
  background: var(--bg-deep);
  color: #ffffff;
  padding: 8px;
}

input[name="website"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   FOCUS RING
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--accent-mint);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   PAIN CARDS — subtle red/orange tint
   ============================================================ */
.pain-card {
  background: var(--white-7);
  border: 1px solid var(--border-white-10);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
}
.pain-card:hover {
  background: var(--white-10);
  border-color: rgba(240, 177, 13, 0.3);
}

/* ============================================================
   EYEBROW — small uppercase label trên hero/section
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-mint);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-mint);
  opacity: 0.6;
}

/* ============================================================
   FEATURE BADGE — pill với gradient subtle
   ============================================================ */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(7, 177, 118, 0.15);
  border: 1px solid rgba(7, 177, 118, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-lime-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   GRADIENT TEXT — for accent words trong heading
   ============================================================ */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   FLOATING TELEGRAM — gradient bg
   ============================================================ */
.telegram-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-btn-gradient);
  z-index: 30;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.telegram-fab:hover {
  transform: scale(1.1);
}
@media (min-width: 1024px) {
  .telegram-fab { bottom: 24px; right: 24px; width: 60px; height: 60px; font-size: 26px; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body { background: white; color: black; }
  #site-header, #mobile-drawer, .telegram-fab, iframe { display: none !important; }
}

/* ============================================================
   SECTION BACKGROUNDS — mỗi section 1 sắc thái màu nổi bật
   (theo brand SMIT V2: radial-gradient color blobs)
   ============================================================ */
.sec-bg {
  position: relative;
  overflow: hidden;
}
.sec-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sec-bg > * {
  position: relative;
  z-index: 1;
}

/* Hero — mint xanh lá (chủ đạo brand) */
.sec-bg-hero::before {
  background:
    radial-gradient(circle at 20% 30%, rgba(7, 177, 118, 0.22), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(100, 255, 218, 0.12), transparent 60%);
}

/* Stats — vàng-xanh nhẹ */
.sec-bg-stats::before {
  background: radial-gradient(ellipse at 50% 50%, rgba(217, 255, 103, 0.08), transparent 70%);
}

/* Built For / Solutions — cyan + green */
.sec-bg-solutions::before {
  background:
    radial-gradient(circle at 80% 20%, rgba(53, 231, 233, 0.14), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(7, 177, 118, 0.08), transparent 60%);
}

/* Pain — đỏ/cam (ám chỉ vấn đề) */
.sec-bg-pain::before {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 100, 130, 0.10), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 165, 80, 0.08), transparent 55%);
}

/* Platform — xanh lá tươi + tím */
.sec-bg-platform::before {
  background:
    radial-gradient(circle at 50% 30%, rgba(126, 237, 162, 0.13), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(140, 100, 255, 0.10), transparent 60%);
}

/* Features — tím + cyan */
.sec-bg-features::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(140, 100, 255, 0.13), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(53, 231, 233, 0.10), transparent 55%);
}

/* How it works — vàng amber */
.sec-bg-how::before {
  background: radial-gradient(circle at 50% 50%, rgba(217, 255, 103, 0.10), transparent 60%);
}

/* Why SMIT — hồng magenta + mint */
.sec-bg-why::before {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 100, 200, 0.10), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(100, 255, 218, 0.08), transparent 60%);
}

/* Trust — xanh dương (cảm giác bảo mật) */
.sec-bg-trust::before {
  background: radial-gradient(circle at 50% 40%, rgba(80, 150, 255, 0.10), transparent 60%);
}

/* Testimonials — mint sáng */
.sec-bg-testimonials::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.12), transparent 55%),
    radial-gradient(circle at 80% 50%, rgba(126, 237, 162, 0.10), transparent 55%);
}

/* FAQ — cyan dịu */
.sec-bg-faq::before {
  background: radial-gradient(ellipse at 50% 30%, rgba(53, 231, 233, 0.08), transparent 65%);
}

/* CTA cuối — mint mạnh + glow */
.sec-bg-cta::before {
  background:
    radial-gradient(circle at 30% 50%, rgba(7, 177, 118, 0.20), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(100, 255, 218, 0.15), transparent 55%);
}

/* Lưới mờ overlay tinh tế (dùng cho hero) */
.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Section divider line giữa các section (subtle) */
section.sec-bg + section.sec-bg {
  border-top: 1px solid var(--border-white-10);
}

/* ============================================================
   FOOTER SOCIAL ICONS — round pill (FB / TG / YT / IN)
   ============================================================ */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white-10);
  border: 1px solid var(--border-white-10);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social:hover {
  background: var(--accent-mint);
  color: var(--bg-deep);
  border-color: var(--accent-mint);
  transform: translateY(-2px);
}
