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

:root {
  --bg:        #0a0a0f;
  --bg-card:   #0e0e16;
  --bg-alt:    #111118;
  --accent:    #6c63ff;
  --accent-2:  #a78bfa;
  --accent-cyan: #22d3ee;
  --text:      #e8e8f0;
  --muted:     #7a7a9a;
  --border:    #1e1e2e;
  --radius:    12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

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

code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  color: var(--accent-2);
  background: rgba(167,139,250,.1);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ========================
   Navbar
======================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  /* needed for mobile dropdown positioning */
  isolation: isolate;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: min(200px, 55vw);
  display: block;
  object-fit: contain;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 0.4rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background var(--transition) !important;
}

.btn-nav:hover { background: var(--accent-2) !important; }

/* ========================
   Buttons
======================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

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

/* ========================
   Hero
======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 8rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-tag {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero-subtitle strong { color: var(--text); }

/* Under construction badge */
.under-construction {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(251,191,36,.25);
  background: rgba(251,191,36,.05);
  color: #fbbf24;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Orbit Visual */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 300px;
  height: 340px;
}

.orbit-core {
  position: absolute;
  font-size: 3rem;
  color: var(--accent);
  z-index: 2;
  animation: pulse 3s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.2;
  animation: spin linear infinite;
}

.ring-1 { width: 120px; height: 120px; animation-duration: 7s; }
.ring-2 { width: 215px; height: 215px; animation-duration: 14s; opacity: 0.12; border-style: dashed; }
.ring-3 { width: 310px; height: 310px; animation-duration: 24s; opacity: 0.07; }

.orbit-label {
  position: absolute;
  font-size: 0.7rem;
  letter-spacing: .1em;
  color: var(--accent-2);
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.label-top    { top: 16px;  left: 50%; transform: translateX(-50%); }
.label-right  { right: 10px; top: 50%; transform: translateY(-50%); }
.label-bottom { bottom: 16px; left: 50%; transform: translateX(-50%); }
.label-left   { left: 10px; top: 50%; transform: translateY(-50%); }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

/* ========================
   Section helpers
======================== */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title-left {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 660px;
  line-height: 1.8;
}

.section-desc strong { color: var(--text); }

/* ========================
   What section
======================== */
.what {
  padding: 5rem 0 4rem;
}

/* ========================
   Features
======================== */
.features {
  padding: 5rem 0 6rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

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

.card-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* ========================
   Platform / About
======================== */
.platform {
  padding: 6rem 0;
}

/* Platform header (full-width text above diagram) */
.platform-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.platform-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.platform-intro {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* Architecture diagram */
.diagram-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.diagram-img {
  max-width: 680px;
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 0 48px rgba(108, 99, 255, 0.1);
}

/* Bottom row: chips on left, stats on right */
.platform-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.chips-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0;
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.stat:hover { border-color: var(--accent); }

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label { font-size: 0.82rem; color: var(--muted); }

/* ========================
   SDK Section
======================== */
.sdk-section {
  padding: 6rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.code-block {
  margin-top: 2rem;
  background: #07090f;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  background: #0a0d16;
  border-bottom: 1px solid var(--border);
}

.code-tabs {
  display: flex;
  gap: 0;
}

.code-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
  margin-bottom: -1px;
}

.code-tab:hover {
  color: var(--text);
}

.code-tab.active {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.code-lang {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.code-file {
  font-size: 0.75rem;
  color: var(--muted);
}

.code-body {
  padding: 1.5rem 1.75rem;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.85;
  color: #a9b1d6;
  overflow-x: auto;
}

/* highlight.js overrides — keep our bg, remove its padding/radius */
.hljs {
  background: transparent !important;
  padding: 0 !important;
  font-size: inherit;
  line-height: inherit;
}

.sdk-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.sdk-lang-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sdk-lang-link:hover {
  color: var(--accent-2);
}

.sdk-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.sdk-status {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.sdk-status.ready   { background: rgba(134,239,172,.12); color: #86efac; }
.sdk-status.wip     { background: rgba(251,191,36,.1);  color: #fbbf24; }
.sdk-status.planned { background: rgba(100,116,139,.12); color: #94a3b8; }

/* ========================
   Services list
======================== */
.services {
  padding: 6rem 0;
}

.service-list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

.service-item strong { color: var(--text); }

.svc-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* ========================
   Contact
======================== */
.contact {
  padding: 6rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-family: inherit;
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn-primary { align-self: flex-start; }

.contact-form-status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-form-status.success { color: #86efac; }
.contact-form-status.error { color: #f87171; }

.contact-form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ========================
   Footer
======================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ========================
   Responsive
======================== */
/* ========================
   Hamburger toggle
======================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================
   Responsive
======================== */
@media (max-width: 768px) {
  /* Navbar */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 0;
  }

  .btn-nav {
    margin: 0.5rem 2rem 0 !important;
    display: inline-block !important;
    width: auto !important;
    border-radius: 8px !important;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 5.5rem 1.25rem 3rem;
    gap: 2rem;
    min-height: unset;
  }

  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }

  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; margin-bottom: 1.25rem; }

  .under-construction { font-size: 0.78rem; text-align: left; }

  .hero-visual { height: 220px; min-width: unset; }

  .ring-3 { width: 200px; height: 200px; }
  .ring-2 { width: 145px; height: 145px; }
  .ring-1 { width: 90px;  height: 90px; }

  .label-right, .label-left { display: none; }

  /* Sections */
  .about-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .platform-bottom { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row      { grid-template-columns: 1fr; }
  .service-list  { grid-template-columns: 1fr; }

  .section-container { padding: 0 1.25rem; }
}
