/* ==========================================================================
   OrbSquad Landing Page — Stitch Design System (Variant 1)
   Theme: Deep Charcoal (#10141D), Coral Accent (#FF6B35), Glassmorphism
   ========================================================================== */

:root {
  --bg-dark: #10141D;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 107, 53, 0.35);
  
  --color-accent: #FF6B35;
  --color-accent-hover: #FF8C42;
  --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  --glow-accent: 0 10px 30px rgba(255, 107, 53, 0.35);
  
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-btn: 24px;
  --radius-card: 20px;
  
  --max-width: 1240px;
}

/* Multi-language Content Toggling */
[data-lang-content] {
  display: none !important;
}

div[data-lang-content].active-lang {
  display: block !important;
}

span[data-lang-content].active-lang {
  display: inline !important;
}

li[data-lang-content].active-lang {
  display: block !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(16, 20, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  user-select: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(255, 92, 0, 0.3));
  user-select: none;
  pointer-events: none;
  flex-shrink: 0;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-orb {
  color: #FF5C00;
}

.logo-squad {
  color: #FFFFFF;
}

.footer-logo-img {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 4px rgba(255, 92, 0, 0.25));
  user-select: none;
  flex-shrink: 0;
}

.phone-room-icon {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 4px rgba(255, 92, 0, 0.25));
  user-select: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-accent);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 53, 0.3);
  top: -5px;
  left: -5px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.lang-switch span.active {
  color: var(--color-accent);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 90px 0 70px;
  position: relative;
}

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

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

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  box-shadow: var(--glow-accent);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Phone Mockup Graphic */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Concentric Aura Rings */
.aura-rings {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.aura-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 53, 0.15);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
}

.aura-ring-1 { width: 320px; height: 320px; }
.aura-ring-2 { width: 420px; height: 420px; border-color: rgba(255, 107, 53, 0.08); }
.aura-ring-3 { width: 520px; height: 520px; border-color: rgba(255, 107, 53, 0.04); }

/* Phone Device Frame */
.phone-mockup {
  position: relative;
  z-index: 2;
  width: 310px;
  background: #0B0E14;
  border-radius: 44px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 107, 53, 0.15);
}

.phone-screen {
  background: #141923;
  border-radius: 34px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #0B0E14;
  border-radius: 12px;
  margin: 0 auto 16px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.phone-room-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-room-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.phone-call-icon {
  color: var(--color-accent);
}

/* User Avatars Row */
.phone-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.phone-user {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid transparent;
}

.phone-user.speaking .phone-avatar {
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: pulseSpeaking 1.5s infinite;
}

@keyframes pulseSpeaking {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.phone-username {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Chat Messages Preview */
.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.chat-bubble.incoming {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: var(--gradient-accent);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Bottom Controls */
.phone-controls {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.phone-control-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.phone-mic-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

/* Features Grid Section */
.features-section {
  padding: 70px 0 90px;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Legal / Policy Content Page Styling */
.legal-page {
  padding: 60px 0 90px;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-content .meta {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-card);
}

.legal-content h2, .legal-content h3 {
  color: var(--text-main);
  margin: 28px 0 14px;
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
  background: rgba(10, 13, 19, 0.9);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
