/* ==========================================================================
   PROJECT BLACKOUT — Official Web Portal Stylesheet
   Theme: Vyoma Group Classic Signature Style (Warm Cream Light Mode)
   Mobile Optimized & Responsive Design
   Author: VYOMA GROUP
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Vyoma Group Classic Design Tokens */
  --bg-page: #F9F6F0;
  --bg-card: #F2EDE4;
  --bg-card-hover: #EBE5DA;
  --bg-card-alt: #FFFFFF;
  --bg-dark-accent: #141210;

  --accent-terracotta: #E0562D;
  --accent-terracotta-hover: #C9461F;
  --accent-terracotta-soft: rgba(224, 86, 45, 0.1);
  --accent-emerald: #15803D;
  --accent-blue: #1D4ED8;

  --text-heading: #1C1917;
  --text-body: #44403C;
  --text-muted: #78716C;
  --text-light: #F9F6F0;

  --border-subtle: #E7E2D7;
  --border-terracotta: rgba(224, 86, 45, 0.3);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 10px 30px rgba(28, 25, 23, 0.04);
  --shadow-hover: 0 20px 45px rgba(28, 25, 23, 0.08);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
}

/* Vyoma Brand Circle */
.vyoma-brand-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Fixed Single-Line Premium Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 246, 240, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-badge {
  color: var(--text-heading);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-terracotta);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 3-Lines Mobile Toggle Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-toggle:active {
  transform: scale(0.92);
  background: var(--bg-card-hover);
}

/* Mobile Slide-down Drawer Menu */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(249, 246, 240, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

.mobile-nav-link.active, .mobile-nav-link:active {
  background: var(--text-heading);
  color: var(--bg-page);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-black {
  background: var(--text-heading);
  color: var(--bg-page);
}

.btn-black:hover {
  background: #2E2A27;
  transform: translateY(-2px);
}

.btn-terracotta {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.btn-terracotta:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
}

/* Container Structure */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

/* View Sections */
.view-section {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Component */
.hero {
  text-align: center;
  padding: 3rem 0 5rem 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--accent-terracotta);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-terracotta);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.serif-italic {
  font-style: italic;
  color: var(--accent-terracotta);
}

.hero-subtitle {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: var(--text-body);
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
}

/* Feature Ticker Strip */
.ticker-strip {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 5rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-body);
  font-weight: 600;
}

.ticker-icon {
  color: var(--accent-terracotta);
}

/* Section Subheaders */
.section-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 3.5rem auto;
}

/* Three Ideas Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-vyoma {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.25rem;
  text-align: left;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-vyoma:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-illustration {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.card-vyoma-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.card-vyoma-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--accent-terracotta);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

/* Featured Dark Card */
.featured-dark-card {
  background: var(--bg-dark-accent);
  color: var(--text-light);
  border-radius: 28px;
  padding: 3.5rem;
  text-align: left;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-dark-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.featured-dark-desc {
  color: #D6D3D1;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.featured-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.featured-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #E7E5E4;
  font-size: 0.95rem;
}

/* P2P Architecture Canvas Box */
.canvas-container-classic {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
}

#p2p-canvas {
  width: 100%;
  height: 340px;
  border-radius: 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  display: block;
}

/* Setup Stepper */
.setup-stepper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  display: flex;
  gap: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-body);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.code-snippet {
  background: var(--bg-dark-accent);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-code);
  font-size: 0.88rem;
  color: #F9F6F0;
  overflow-x: auto;
}

/* Documentation Layout Grid */
.docs-layout-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 3rem 2.5rem;
  min-height: 80vh;
}

.docs-sidebar-left {
  border-right: 1px solid var(--border-subtle);
  padding-right: 1.5rem;
}

.mobile-docs-tree-bar {
  display: none;
  margin-top: 1rem;
}

.mobile-docs-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Animated FAQ Component */
.faq-item-anim {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-head {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  min-height: 52px;
}

.faq-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-heading);
  font-weight: 400;
}

.faq-icon-arrow {
  font-size: 1.35rem;
  color: var(--accent-terracotta);
  transition: transform var(--transition-fast);
  font-weight: 800;
}

.faq-item-anim.open .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-item-anim.open {
  background: #FAF6EE;
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-soft);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item-anim.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
  padding: 0 2rem 1.5rem 2rem;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

/* Footer Dark Banner */
.footer-cta-banner {
  background: var(--bg-dark-accent);
  color: var(--text-light);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
  margin-top: 6rem;
}

.footer-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-cta-desc {
  color: #D6D3D1;
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem 0;
  margin-top: 4rem;
  background: var(--bg-page);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

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

/* Mobile View Rules */
@media (max-width: 960px) {
  .nav-container {
    padding: 0.9rem 1.25rem;
  }

  .nav-links, .desktop-cta { 
    display: none !important; 
  }
  
  .mobile-menu-toggle { 
    display: flex !important; 
  }

  .mobile-drawer { 
    display: block; 
  }

  .mobile-docs-tree-bar {
    display: block;
  }

  .docs-layout-grid {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
  }

  .docs-sidebar-left {
    display: none;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .docs-sidebar-left.mobile-open {
    display: block !important;
  }

  .featured-dark-card {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .container { padding: 3rem 1.25rem; }
  .brand-logo { font-size: 1.1rem; }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .step-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  .card-vyoma {
    padding: 1.5rem;
  }

  .footer-cta-banner {
    padding: 3rem 1.25rem;
  }
}
