/* TGCloud Ultra-Premium Showcase & Documentation Stylesheet
   Designed for JOJIN JOHN
   Design Philosophy: Linear/Vercel/Apple Craftsmanship — Deep Obsidian, Crisp Glass, Lucide SVGs, Refined Micro-Interactions
*/

:root {
  --bg-base: #06090f;
  --bg-surface: #0a0f19;
  --bg-card: rgba(14, 21, 33, 0.6);
  --bg-card-hover: rgba(20, 30, 48, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(44, 165, 224, 0.16);
  --border-card-hover: rgba(44, 165, 224, 0.4);
  
  --primary: #2ca5e0;
  --primary-hover: #1b8ecc;
  --primary-glow: rgba(44, 165, 224, 0.25);
  
  --cyan: #38bdf8;
  --emerald: #10b981;
  --slate: #94a3b8;
  --slate-dark: #64748b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -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;
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle Modern Ambient Mesh Background (No gimmicky canvas particles) */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% -10%, rgba(44, 165, 224, 0.15), transparent 45%),
    radial-gradient(circle at 90% 25%, rgba(56, 189, 248, 0.07), transparent 35%),
    radial-gradient(circle at 10% 70%, rgba(16, 185, 129, 0.05), transparent 40%),
    radial-gradient(circle at 50% 110%, rgba(44, 165, 224, 0.08), transparent 50%);
}

.subtle-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 9, 15, 0.75);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(44, 165, 224, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.05);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary);
  background: rgba(44, 165, 224, 0.1);
  border: 1px solid rgba(44, 165, 224, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #06090f !important;
  font-size: 14px;
  font-weight: 600 !important;
  padding: 9px 20px;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.nav-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(44, 165, 224, 0.08);
  border: 1px solid rgba(44, 165, 224, 0.22);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 28px;
}

.hero-pill svg {
  width: 14px;
  height: 14px;
  color: var(--emerald);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin-bottom: 26px;
  color: #ffffff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* Download Action Buttons */
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.cta-button svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cta-primary {
  background: linear-gradient(135deg, #1d7ac2, #14629e);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px -5px rgba(29, 122, 194, 0.45);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -5px rgba(29, 122, 194, 0.65);
  background: linear-gradient(135deg, #2288d6, #166cb0);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cta-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.cta-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-dark);
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  color: var(--emerald);
}

/* App Showcase Frame */
.showcase-wrapper {
  margin: 64px auto 0;
  max-width: 1140px;
}

.showcase-glass-card {
  position: relative;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(44, 165, 224, 0.25), rgba(255, 255, 255, 0.04) 50%, rgba(56, 189, 248, 0.15));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(44, 165, 224, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 60px rgba(44, 165, 224, 0.22);
}

.showcase-media {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

/* Sections */
.section {
  padding: 110px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.badge-tag svg {
  width: 14px;
  height: 14px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  color: #ffffff;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 34px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px rgba(44, 165, 224, 0.08);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 165, 224, 0.09);
  border: 1px solid rgba(44, 165, 224, 0.25);
  color: var(--cyan);
  margin-bottom: 22px;
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.feature-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Live Telemetry Panel */
.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 22px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--emerald);
  font-weight: 600;
}

.telemetry-badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.telemetry-actions {
  display: flex;
  gap: 12px;
}

.btn-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(44, 165, 224, 0.25);
  background: rgba(44, 165, 224, 0.08);
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-telemetry svg {
  width: 16px;
  height: 16px;
}

.btn-telemetry:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.telemetry-screen {
  background: #04070d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
}

.telemetry-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: 5px;
  transition: width 0.1s linear;
  box-shadow: 0 0 16px var(--primary);
}

.telemetry-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.metric-label {
  font-size: 11.5px;
  color: var(--slate-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
}

/* Architecture Flow Steps */
.pipeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: border-color 0.2s ease;
}

.pipeline-step:hover {
  border-color: var(--border-card-hover);
}

.pipeline-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.pipeline-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.pipeline-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.faq-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card.active {
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
}

.faq-header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.faq-header svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-card.active .faq-header svg {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-card.active .faq-body {
  max-height: 400px;
  padding-bottom: 22px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Developer Spotlight */
.developer-spotlight {
  background: linear-gradient(135deg, rgba(14, 21, 33, 0.85), rgba(10, 15, 25, 0.95));
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}

.developer-content h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
  color: #ffffff;
}

.developer-role {
  color: var(--cyan);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.developer-bio {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.developer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-social svg {
  width: 18px;
  height: 18px;
}

.btn-social-linkedin {
  background: #0a66c2;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.35);
}

.btn-social-linkedin:hover {
  background: #0855a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.5);
}

.btn-social-github {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
}

.btn-social-github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0;
  margin-top: 90px;
  text-align: center;
  color: var(--slate-dark);
  font-size: 13.5px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .developer-spotlight {
    padding: 34px 24px;
    text-align: center;
    justify-content: center;
  }
  .developer-links {
    justify-content: center;
  }
}
