/* ==========================================================================
   XGIT DIGITAL TECHNOLOGY - STYLESHEET
   Domain: xgitvn.com
   ========================================================================== */

:root {
  --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-primary: #0ba360;
  --color-primary-dark: #077343;
  --color-primary-light: #10b981;
  --color-primary-bg: rgba(11, 163, 96, 0.08);
  --color-accent: #2563eb;
  --color-accent-light: #60a5fa;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --bg-dark: #090e17;
  --bg-dark-card: #0f172a;
  --bg-dark-card-hover: #1e293b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --border-accent: rgba(11, 163, 96, 0.2);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

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

  --container-max: 1200px;
  --container-prose: 880px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-prose {
  max-width: var(--container-prose);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0ba360, #10b981);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(11, 163, 96, 0.3);
  flex-shrink: 0;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-text span {
  color: var(--color-primary-light);
}

.logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 18px);
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-link {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(11, 163, 96, 0.15);
  color: var(--color-primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background-color: var(--color-primary-light);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 163, 96, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(11, 163, 96, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: #334155;
  color: #f1f5f9;
}

.btn-outline:hover {
  background-color: #1e293b;
  border-color: #475569;
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1527 100%);
  color: #fff;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 163, 96, 0.15) 0%, rgba(11, 163, 96, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 163, 96, 0.12);
  border: 1px solid rgba(11, 163, 96, 0.25);
  color: var(--color-primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats Ribbon */
.stats-ribbon {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  backdrop-filter: blur(8px);
}

.stat-item {
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 10px;
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-value span {
  color: var(--color-primary-light);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 24px;
}

.card-icon.blue {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
}

.card-icon.amber {
  background-color: rgba(245, 158, 11, 0.08);
  color: var(--color-warning);
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Feature Showcase */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-content h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-main);
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.showcase-list {
  list-style: none;
  margin-bottom: 24px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.showcase-list li svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.showcase-media {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-dark);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   LEGAL / PROSE PAGES (Privacy, Terms)
   ========================================================================== */
.page-header-legal {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f172a 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
}

.page-header-legal h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header-legal p {
  color: #94a3b8;
  font-size: 15px;
}

.legal-content-wrap {
  padding: 60px 0 80px;
  background-color: var(--bg-white);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.legal-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.legal-toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.legal-toc-list {
  list-style: none;
}

.legal-toc-list li {
  margin-bottom: 8px;
}

.legal-toc-list a {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  line-height: 1.4;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.legal-toc-list a:hover {
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
}

.legal-body {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-bg);
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-callout {
  background-color: var(--color-primary-bg);
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 14px;
}

.legal-company-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 36px;
}

.legal-company-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

/* ==========================================================================
   CONTACT & COMPANY INFO SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-text strong {
  font-size: 15px;
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-dark);
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-copyright {
  color: #64748b;
}

.footer-meta-links {
  display: flex;
  gap: 20px;
}

.footer-meta-links a {
  color: #94a3b8;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
  }
  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: rgba(9, 14, 23, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
    align-items: stretch;
    gap: 8px;
  }
  .main-nav.open .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .main-nav.open .nav-link:hover,
  .main-nav.open .nav-link.active {
    background: rgba(11, 163, 96, 0.15);
    border-color: rgba(11, 163, 96, 0.3);
  }
  .main-nav.open .nav-link.active::after {
    display: none;
  }
  .hero-title {
    font-size: 34px;
  }
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .showcase-row.reverse {
    direction: ltr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 50px 0 60px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .stats-ribbon {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
