/* True Talkie - Shared Modern Responsive Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-primary: #07090e;
  --bg-surface: #0c101a;
  --bg-card: #121826;
  --bg-card-hover: #172032;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 210, 133, 0.35);
  --accent: #00d285;
  --accent-glow: rgba(0, 210, 133, 0.2);
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.18);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 550px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 210, 133, 0.09) 0%, rgba(56, 189, 248, 0.05) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   NAVIGATION (Desktop & Mobile Drawer)
========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  z-index: 1002;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 210, 133, 0.15), rgba(0, 210, 133, 0.05));
  border: 1px solid rgba(0, 210, 133, 0.35);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(0, 210, 133, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Mobile Toggle Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Transform Hamburger to X when open */
.nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   MAIN CONTENT & TYPOGRAPHY
========================================================= */
main {
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 24px 90px 24px;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(0, 210, 133, 0.1);
  border: 1px solid rgba(0, 210, 133, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: #00d285;
  color: #07090e;
  box-shadow: 0 4px 20px rgba(0, 210, 133, 0.35);
}

.btn-primary:hover {
  background: #00ea94;
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(0, 210, 133, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

h1 {
  font-size: clamp(2rem, 5.2vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Card */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
}

.card:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* Table Wrapper for Horizontal Scrolling */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
}

.table-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: right;
  margin-top: 6px;
  display: none;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 48px 24px 32px 24px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1140px;
  margin: 36px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
========================================================= */
@media (max-width: 820px) {
  .nav-container {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Slide-down Mobile Drawer */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .nav-menu.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-link.active {
    color: var(--accent);
    background: rgba(0, 210, 133, 0.09);
    border-left: 3px solid var(--accent);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-cta-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .nav-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .container {
    padding: 32px 18px 70px 18px;
  }

  .card {
    padding: 22px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .table-hint {
    display: block;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 1.15rem;
    gap: 9px;
  }

  .nav-logo {
    width: 32px;
    height: 32px;
  }

  .container {
    padding: 24px 14px 60px 14px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }
}
