/* ========================================
   BRAHMĀSTRA OS ·Pre-Launch Docs
   Palette: Saffron #D35400, Navy #1B2631, Gold #F4D03F
   Font: Inter, Noto Sans Devanagari, JetBrains Mono
   Approach: Mobile-first, BEM, pure CSS
   ======================================== */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --saffron: #D35400;
  --saffron-light: #E67E22;
  --saffron-dark: #A04000;
  --navy: #1B2631;
  --navy-light: #2C3E50;
  --navy-lighter: #34495E;
  --gold: #F4D03F;
  --gold-dim: #D4AC0D;
  --white: #F8F9FA;
  --gray-100: #ECF0F1;
  --gray-200: #D5DBDB;
  --gray-300: #ABB2B9;
  --gray-400: #808B96;
  --gray-500: #566573;
  --surface: #0F1923;
  --surface-2: #162029;
  --surface-3: #1E2D3A;
  --text: #ECF0F1;
  --text-dim: #ABB2B9;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(211, 84, 0, 0.2);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav__logo-icon {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--saffron);
  border-radius: 8px;
}

.nav__logo-text {
  color: var(--white);
}

.nav__logo-text--accent {
  color: var(--saffron);
}

.nav__links {
  display: none;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--white);
  background: var(--surface-3);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__links--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(15, 25, 35, 0.98);
  backdrop-filter: blur(20px);
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-3);
  animation: slideDown 0.3s ease;
}

.nav__links--open .nav__link {
  padding: 12px 16px;
  font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__codename {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeIn 1s ease 0.2s both;
}

.hero__codename strong {
  color: var(--saffron);
}

.hero__title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease 0.4s both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--saffron);
  font-size: 0.6em;
  letter-spacing: 12px;
}

.hero__tagline {
  font-size: 0.9rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  animation: fadeIn 1s ease 0.6s both;
  text-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.7s both;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hero__hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.15rem;
  color: var(--gray-200);
  font-style: italic;
  margin-bottom: 40px;
  animation: fadeIn 1s ease 0.8s both;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.9s both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--white);
  padding: 10px 24px;
  background: rgba(211, 84, 0, 0.12);
  border: 1px solid rgba(211, 84, 0, 0.4);
  border-radius: 4px;
  animation: fadeIn 1s ease 1.1s both;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  animation: pulse 2s infinite;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--saffron);
  animation: scrollLine 2s infinite;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: var(--saffron);
  color: var(--white);
  border-color: var(--saffron);
}

.btn--primary:hover {
  background: var(--saffron-light);
  border-color: var(--saffron-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(211, 84, 0, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-500);
}

.btn--outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== PROBLEM ===== */
.problem {
  background: var(--surface-2);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.problem__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-3);
  transition: border-color var(--transition);
}

.problem__card:hover {
  border-color: var(--saffron-dark);
}

.problem__card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem__card-icon svg {
  width: 24px;
  height: 24px;
  color: #E74C3C;
}

.problem__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.problem__card-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.problem__solution {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.1), rgba(244, 208, 63, 0.05));
  border: 1px solid rgba(211, 84, 0, 0.3);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  line-height: 1.7;
}

.problem__solution strong {
  color: var(--saffron);
}

/* ===== EDITIONS ===== */
.editions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.edition {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.edition:hover {
  border-color: var(--navy-lighter);
  transform: translateY(-4px);
}

.edition--featured {
  border-color: var(--saffron);
  background: linear-gradient(180deg, rgba(211, 84, 0, 0.08), var(--surface-2));
}

.edition--featured:hover {
  border-color: var(--saffron-light);
}

.edition__label {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--saffron);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.edition__icon {
  margin-bottom: 20px;
}

.edition__icon svg {
  width: 48px;
  height: 48px;
  color: var(--saffron);
}

.edition__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.edition__tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.edition__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.edition__features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.edition__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
}

.edition__specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.edition__specs span {
  padding: 6px 14px;
  background: var(--surface-3);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* CLI Terminal */
.editions__cli {
  text-align: center;
}

.editions__cli-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.editions__cli-terminal {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-3);
  text-align: left;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--navy-light);
}

.terminal__bar > span:nth-child(-n+3) {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__bar > span:nth-child(1) { background: #E74C3C; }
.terminal__bar > span:nth-child(2) { background: #F39C12; }
.terminal__bar > span:nth-child(3) { background: #27AE60; }

.terminal__bar-title {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--gray-400);
  font-family: 'JetBrains Mono', monospace;
}

.terminal__body {
  padding: 20px;
  background: var(--surface);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal__line {
  color: var(--white);
}

.terminal__prompt {
  color: var(--saffron);
  margin-right: 8px;
}

.terminal__output {
  color: var(--gray-400);
  margin-bottom: 8px;
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--saffron);
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

/* ===== APPBRIDGE ===== */
.appbridge {
  background: var(--surface-2);
}

.appbridge__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.appbridge__label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}

.appbridge__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.appbridge__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--white);
}

.appbridge__desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
}

.appbridge__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.appbridge__stat {
  text-align: center;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface-3);
}

.appbridge__stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.appbridge__stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.appbridge__tech-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.appbridge__layer {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface-3);
  transition: border-color var(--transition);
}

.appbridge__layer:hover {
  border-color: var(--saffron-dark);
}

.appbridge__layer-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--saffron);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.appbridge__layer strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.appbridge__layer p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Indian Apps */
.appbridge__apps {
  text-align: center;
  margin-bottom: 60px;
}

.appbridge__apps-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.appbridge__apps-desc {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.appbridge__apps-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.appbridge__app {
  padding: 12px 28px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}

.appbridge__app:hover {
  border-color: var(--saffron);
  transform: translateY(-2px);
}

/* Prior Art */
.appbridge__prior-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.appbridge__prior-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.appbridge__prior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface-3);
}

.appbridge__prior strong {
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.appbridge__prior span {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: right;
}

/* ===== INDIA ===== */
.india__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.india__card {
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.india__card:hover {
  border-color: var(--navy-lighter);
  transform: translateY(-2px);
}

.india__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.india__card-header svg {
  width: 28px;
  height: 28px;
  color: var(--saffron);
  flex-shrink: 0;
}

.india__card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.india__card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== SERVER GUI ===== */
.server-gui {
  background: var(--surface-2);
}

.server-gui__showcase {
  margin-bottom: 48px;
}

.server-gui__panel {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--navy);
  border-bottom: 1px solid var(--surface-3);
}

.panel__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.panel__logo {
  font-family: 'Noto Sans Devanagari', serif;
  color: var(--saffron);
  font-size: 1.3rem;
  font-weight: 700;
}

.panel__header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-400);
}

.panel__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27AE60;
}

.panel__body {
  display: flex;
  min-height: 360px;
}

.panel__sidebar {
  width: 160px;
  flex-shrink: 0;
  background: var(--navy-light);
  padding: 12px 0;
  display: none;
}

.panel__nav-item {
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.panel__nav-item:hover {
  background: var(--surface-3);
  color: var(--white);
}

.panel__nav-item--active {
  color: var(--white);
  background: var(--surface-3);
  border-left-color: var(--saffron);
}

.panel__main {
  flex: 1;
  padding: 20px;
  background: var(--surface);
}

.panel__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.panel__stat-card {
  padding: 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--surface-3);
}

.panel__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.panel__stat-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  margin-bottom: 6px;
  overflow: hidden;
}

.panel__stat-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--saffron);
  transition: width 1.5s ease;
}

.panel__stat-fill--mem { background: var(--gold-dim); }
.panel__stat-fill--disk { background: #27AE60; }
.panel__stat-fill--net { background: #3498DB; }

.panel__stat-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.panel__services h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--gray-300);
}

.panel__service {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--surface-3);
}

.panel__service:last-child {
  border-bottom: none;
}

.panel__service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.panel__service-dot--up { background: #27AE60; }
.panel__service-dot--warn { background: #F39C12; }

.panel__service-status {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--gray-400);
}

/* Server GUI Features */
.server-gui__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.server-gui__feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
}

.server-gui__feature strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--white);
}

.server-gui__feature p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== TECH STACK ===== */
.tech__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-3);
}

.tech__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tech__table thead {
  background: var(--navy);
}

.tech__table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  color: var(--saffron);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tech__table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--surface-3);
  color: var(--text-dim);
}

.tech__table td:first-child {
  font-weight: 600;
  color: var(--white);
}

.tech__table td:nth-child(2) {
  color: var(--gold);
}

.tech__table tbody tr {
  transition: background var(--transition);
}

.tech__table tbody tr:hover {
  background: var(--surface-2);
}

.tech__table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== ECOSYSTEM ===== */
.ecosystem__diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.ecosystem__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(211, 84, 0, 0.15), rgba(244, 208, 63, 0.08));
  border: 2px solid var(--saffron);
  border-radius: 50%;
  width: 180px;
  height: 180px;
  justify-content: center;
  text-align: center;
}

.ecosystem__center-icon {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}

.ecosystem__center span {
  font-weight: 700;
  font-size: 1.5rem;
}

.ecosystem__nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.ecosystem__node {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.ecosystem__node:hover {
  border-color: var(--saffron-dark);
  transform: translateY(-2px);
}

.ecosystem__node strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ecosystem__node span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.ecosystem__footer {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.ecosystem__footer strong {
  color: var(--saffron);
}

/* ===== ROADMAP ===== */
.roadmap {
  background: var(--surface-2);
}

.roadmap__timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.roadmap__timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--surface-3);
}

.roadmap__phase {
  position: relative;
  margin-bottom: 36px;
}

.roadmap__phase:last-child {
  margin-bottom: 0;
}

.roadmap__marker {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 3px solid var(--surface-2);
  z-index: 1;
  transition: background var(--transition);
}

.roadmap__phase--done .roadmap__marker {
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.2);
}

.roadmap__phase-content {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.roadmap__phase:hover .roadmap__phase-content {
  border-color: var(--navy-lighter);
}

.roadmap__phase--done .roadmap__phase-content {
  border-color: rgba(211, 84, 0, 0.3);
}

.roadmap__phase-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.roadmap__phase-time {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.roadmap__phase-content p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.roadmap__phase-status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
}

.roadmap__phase-status--done {
  background: rgba(211, 84, 0, 0.15);
  color: var(--saffron);
  border: 1px solid rgba(211, 84, 0, 0.3);
}

/* ===== COMMUNITY ===== */
.community__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 60px;
}

.community__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.community__card:hover {
  border-color: var(--saffron);
  transform: translateY(-4px);
}

.community__card svg {
  width: 32px;
  height: 32px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.community__card:hover svg {
  color: var(--saffron);
}

.community__card strong {
  font-size: 1rem;
}

.community__card span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.community__contribute {
  text-align: center;
}

.community__contribute h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.community__ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.community__way {
  padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius);
  text-align: left;
}

.community__way strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.95rem;
}

.community__way p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 0;
  background: var(--navy);
  border-top: 1px solid var(--surface-3);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-icon {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--saffron);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--saffron);
  border-radius: 8px;
}

.footer__logo-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer__hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  color: var(--gray-400);
  font-size: 1.05rem;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--saffron);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid var(--surface-3);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ===== RESPONSIVE ·SMALL MOBILE (320px-479px) ===== */
@media (max-width: 479px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .section__header {
    margin-bottom: 36px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .section__desc {
    font-size: 0.95rem;
  }

  /* Hero mobile */
  .hero {
    padding: 80px 16px 50px;
    min-height: 100svh;
  }

  .hero__codename {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }

  .hero__title {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }

  .hero__title-line--accent {
    letter-spacing: 6px;
  }

  .hero__tagline {
    font-size: 0.72rem;
    letter-spacing: 3px;
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  .hero__hindi {
    font-size: 0.88rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .hero__badge {
    font-size: 0.78rem;
    padding: 6px 16px;
  }

  .hero__scroll {
    display: none;
  }

  /* Problem mobile */
  .problem__card {
    padding: 18px;
    gap: 12px;
  }

  .problem__card-icon {
    width: 32px;
    height: 32px;
  }

  .problem__card-icon svg {
    width: 20px;
    height: 20px;
  }

  .problem__card-title {
    font-size: 1rem;
  }

  .problem__card-text {
    font-size: 0.88rem;
  }

  .problem__solution {
    padding: 20px;
    font-size: 0.95rem;
  }

  /* Editions mobile */
  .edition {
    padding: 28px 20px;
  }

  .edition__title {
    font-size: 1.3rem;
  }

  .edition__features li {
    font-size: 0.88rem;
  }

  .edition__specs {
    gap: 8px;
  }

  .edition__specs span {
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  /* Terminal mobile */
  .editions__cli-title {
    font-size: 1.1rem;
  }

  .terminal__body {
    padding: 14px;
    font-size: 0.72rem;
    overflow-x: auto;
  }

  .terminal__bar {
    padding: 10px 12px;
  }

  /* AppBridge mobile */
  .appbridge__stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .appbridge__stat {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
  }

  .appbridge__stat-value {
    font-size: 1.4rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .appbridge__stat-label {
    font-size: 0.78rem;
  }

  .appbridge__subtitle {
    font-size: 1.05rem;
  }

  .appbridge__layer {
    padding: 14px;
    gap: 12px;
  }

  .appbridge__layer-num {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }

  .appbridge__layer strong {
    font-size: 0.88rem;
  }

  .appbridge__layer p {
    font-size: 0.82rem;
  }

  .appbridge__apps-grid {
    gap: 8px;
  }

  .appbridge__app {
    padding: 10px 18px;
    font-size: 0.88rem;
  }

  .appbridge__apps-title {
    font-size: 1.15rem;
  }

  .appbridge__prior {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
  }

  .appbridge__prior span {
    text-align: left;
    font-size: 0.82rem;
  }

  .appbridge__prior-title {
    font-size: 1.1rem;
  }

  /* India cards mobile */
  .india__card {
    padding: 20px;
  }

  .india__card-header h3 {
    font-size: 1rem;
  }

  .india__card p {
    font-size: 0.88rem;
  }

  /* Server GUI panel mobile */
  .panel__body {
    min-height: 280px;
  }

  .panel__main {
    padding: 14px;
  }

  .panel__stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .panel__stat-card {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .panel__stat-label {
    margin-bottom: 0;
    min-width: 60px;
  }

  .panel__stat-bar {
    flex: 1;
    margin-bottom: 0;
    min-width: 80px;
  }

  .panel__stat-value {
    font-size: 0.75rem;
  }

  .panel__header {
    padding: 10px 14px;
  }

  .panel__header-left {
    font-size: 0.82rem;
  }

  .panel__header-right {
    font-size: 0.72rem;
  }

  .panel__service {
    font-size: 0.78rem;
  }

  .panel__services h4 {
    font-size: 0.82rem;
  }

  .server-gui__feature {
    padding: 18px;
  }

  .server-gui__feature strong {
    font-size: 0.92rem;
  }

  .server-gui__feature p {
    font-size: 0.85rem;
  }

  /* Tech table mobile */
  .tech__table {
    font-size: 0.8rem;
  }

  .tech__table th,
  .tech__table td {
    padding: 10px 12px;
  }

  .tech__table th {
    font-size: 0.72rem;
  }

  /* Hide "Why" column on very small screens */
  .tech__table th:nth-child(3),
  .tech__table td:nth-child(3) {
    display: none;
  }

  /* Ecosystem mobile */
  .ecosystem__center {
    width: 140px;
    height: 140px;
    padding: 20px;
  }

  .ecosystem__center-icon {
    font-size: 2rem;
  }

  .ecosystem__center span {
    font-size: 1rem;
  }

  .ecosystem__nodes {
    gap: 8px;
  }

  .ecosystem__node {
    padding: 14px;
  }

  .ecosystem__node strong {
    font-size: 0.85rem;
  }

  .ecosystem__node span {
    font-size: 0.75rem;
  }

  .ecosystem__footer {
    font-size: 0.92rem;
  }

  /* Roadmap mobile */
  .roadmap__timeline {
    padding-left: 32px;
  }

  .roadmap__timeline::before {
    left: 10px;
  }

  .roadmap__marker {
    left: -28px;
    width: 14px;
    height: 14px;
  }

  .roadmap__phase-content {
    padding: 18px;
  }

  .roadmap__phase-label {
    font-size: 0.92rem;
  }

  .roadmap__phase-content p {
    font-size: 0.85rem;
  }

  /* Community mobile */
  .community__card {
    padding: 20px 14px;
    gap: 8px;
  }

  .community__card svg {
    width: 26px;
    height: 26px;
  }

  .community__card strong {
    font-size: 0.9rem;
  }

  .community__card span {
    font-size: 0.78rem;
  }

  .community__contribute h3 {
    font-size: 1.15rem;
  }

  .community__way {
    padding: 16px 18px;
  }

  .community__way strong {
    font-size: 0.88rem;
  }

  .community__way p {
    font-size: 0.82rem;
  }

  /* Footer mobile */
  .footer {
    padding: 40px 0 0;
  }

  .footer__links {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer__col h4 {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .footer__col a {
    font-size: 0.82rem;
    padding: 3px 0;
  }

  .footer__bottom p {
    font-size: 0.72rem;
    padding: 0 16px;
  }

  /* Navbar mobile */
  .nav {
    padding: 12px 0;
  }

  .nav__logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .nav__logo-text {
    font-size: 1rem;
  }
}

/* ===== RESPONSIVE ·MEDIUM MOBILE (480px-639px) ===== */
@media (min-width: 480px) and (max-width: 639px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .appbridge__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== RESPONSIVE ·TABLET (640px-959px) ===== */
@media (min-width: 640px) {
  .problem__grid {
    grid-template-columns: 1fr 1fr;
  }

  .india__grid {
    grid-template-columns: 1fr 1fr;
  }

  .server-gui__features {
    grid-template-columns: 1fr 1fr;
  }

  .appbridge__prior-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community__ways {
    grid-template-columns: 1fr 1fr;
  }

  .panel__sidebar {
    display: block;
  }

  .editions__grid {
    grid-template-columns: 1fr 1fr;
  }

  .edition--featured {
    grid-column: 1 / -1;
  }
}

/* ===== RESPONSIVE ·DESKTOP (960px+) ===== */
@media (min-width: 960px) {
  .section {
    padding: 120px 0;
  }

  .container {
    padding: 0 40px;
  }

  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .problem__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .editions__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .edition--featured {
    grid-column: auto;
  }

  .india__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .appbridge__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .appbridge__prior-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .server-gui__features {
    grid-template-columns: repeat(4, 1fr);
  }

  .community__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .community__ways {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__top {
    grid-template-columns: 1.5fr 2fr;
  }

  .ecosystem__nodes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== RESPONSIVE ·LARGE (1200px+) ===== */
@media (min-width: 1200px) {
  .hero__title {
    letter-spacing: -4px;
  }

  .panel__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== iOS VIEWPORT FIX ===== */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* ===== TOUCH TARGETS ===== */
@media (hover: none) and (pointer: coarse) {
  .nav__link {
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn {
    min-height: 48px;
  }

  .edition:hover,
  .india__card:hover,
  .appbridge__layer:hover,
  .appbridge__app:hover,
  .ecosystem__node:hover,
  .community__card:hover,
  .problem__card:hover {
    transform: none;
  }

  .panel__nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer__col a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 20px 40px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__scroll {
    display: none;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== SELECTION ===== */
::selection {
  background: var(--saffron);
  color: var(--white);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-lighter);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--saffron-dark);
}
