/* ============================================
   OpenDroid — Premium Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #050810;
  --bg-secondary: #0a1020;
  --bg-tertiary: #0f1730;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --surface-border: rgba(255,255,255,0.06);
  --accent: #00FF88;
  --accent-dim: rgba(0,255,136,0.15);
  --accent-glow: rgba(0,255,136,0.3);
  --cyan: #00D4FF;
  --cyan-dim: rgba(0,212,255,0.15);
  --text-primary: #FFFFFF;
  --text-body: #B8BFC9;
  --text-muted: #6B7280;
  --danger: #FF4D6A;
  --warning: #FFB020;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --nav-height: 72px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -40%; left: -20%;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(0,255,136,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -30%; right: -20%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(0,212,255,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--cyan); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Particle Canvas ── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(5,8,16,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0,255,136,0.3));
}
.nav-brand span {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
}
.nav-cta:hover {
  box-shadow: 0 0 20px var(--accent-glow) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(5,8,16,0.97);
    backdrop-filter: blur(24px);
    padding: 100px 32px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--surface-border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 12px 16px; font-size: 1rem; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0,255,136,0.15);
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0,255,136,0.3);
  transform: translateY(-2px);
  color: var(--bg-primary);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  color: var(--text-primary);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 20px;
  font-weight: 800;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-bot-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bot-wrapper::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}
.hero-bot-wrapper img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(0,255,136,0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-bot-wrapper { width: 220px; height: 220px; }
  .hero-bot-wrapper img { width: 180px; height: 180px; }
}

/* ============================================
   Section common
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================
   Glass Cards
   ============================================ */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.glass-card:hover {
  background: var(--surface-hover);
  border-color: rgba(0,255,136,0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ============================================
   Feature Grid
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card .icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 48px 0;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================
   Architecture
   ============================================ */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.arch-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}
.arch-card:hover {
  border-color: rgba(0,255,136,0.15);
  transform: translateY(-2px);
}
.arch-card .emoji { font-size: 1.8rem; margin-bottom: 10px; }
.arch-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.arch-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-box {
  background: linear-gradient(135deg, rgba(0,255,136,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,255,136,0.06), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 16px; }
.cta-box p { color: var(--text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Legal / Prose Pages
   ============================================ */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}
.page-header .label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; }

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-border);
}
.prose h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent);
}
.prose p, .prose li {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 0.95rem;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text-primary); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose .info-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 24px 0;
}

/* ============================================
   About page
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  display: flex;
  justify-content: center;
}
.about-image img {
  width: 240px;
  filter: drop-shadow(0 0 30px rgba(0,255,136,0.15));
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image { order: -1; }
}

/* ============================================
   Feature showcase (features page)
   ============================================ */
.feature-showcase {
  display: grid;
  gap: 32px;
}
.showcase-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}
.showcase-card .showcase-icon {
  width: 64px; height: 64px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.showcase-card h3 { margin-bottom: 8px; }
.showcase-card p { color: var(--text-muted); font-size: 0.93rem; }
.showcase-card .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.showcase-card .tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 600px) {
  .showcase-card { grid-template-columns: 1fr; text-align: center; }
  .showcase-card .showcase-icon { margin: 0 auto; }
  .showcase-card .tag-row { justify-content: center; }
}

/* ============================================
   FAQ Accordion (support page)
   ============================================ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: all var(--transition);
}
.faq-item:hover { border-color: rgba(0,255,136,0.1); }
.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.faq-question .chevron {
  transition: transform var(--transition);
  font-size: 0.8rem;
  color: var(--accent);
}
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================
   Contact Cards
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  text-align: center;
  padding: 40px 24px;
}
.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.contact-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.contact-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }

/* ============================================
   Security table
   ============================================ */
.version-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.version-table th, .version-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.9rem;
}
.version-table th {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--surface);
}
.version-table td { color: var(--text-body); }
.badge-supported {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(0,255,136,0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-unsupported {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(255,77,106,0.1);
  color: var(--danger);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utilities
   ============================================ */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--surface-border), transparent);
  margin: 80px 0;
}

/* ============================================
   Indus Appstore Badge & QR
   ============================================ */
.indus-badge-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition);
}
.indus-badge-link:hover {
  transform: translateY(-2px);
}
.indus-badge-img {
  height: 52px;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: box-shadow var(--transition);
}
.indus-badge-link:hover .indus-badge-img {
  box-shadow: 0 8px 24px rgba(0,255,136,0.15);
}

/* Specific alignments for hero & CTA buttons */
.hero-buttons .indus-badge-link,
.cta-buttons .indus-badge-link {
  align-self: center;
}

/* support page indus card qr styles */
.contact-card .qr-wrapper {
  margin: 16px auto;
  width: 140px;
  height: 140px;
  padding: 8px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.contact-card .qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

