:root {
  --bg-color: #0f172a;
  /* Slate 900 */
  --text-color: #f1f5f9;
  /* Slate 100 */
  --text-muted: #94a3b8;
  /* Slate 400 */
  --primary: #0ea5e9;
  /* Sky 500 */
  --primary-glow: rgba(14, 165, 233, 0.4);
  --secondary: #3b82f6;
  /* Blue 500 */
  --accent: #6366f1;
  /* Indigo 500 */
  --success: #22c55e;
  /* Green 500 */
  --surface: rgba(30, 41, 59, 0.7);
  /* Slate 800 + Opacity */
  --surface-border: rgba(51, 65, 85, 0.5);
  /* Slate 700 */
  --grid-color: rgba(14, 165, 233, 0.3);
}

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

html,
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  /* Tech Grid Background */
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0;
  animation: gridMove 3s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 40px 40px, 40px 40px;
  }
}

/* Glowing Orb Effect */
body::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  body::before {
    width: 300px;
    height: 300px;
    top: -100px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

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

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  background: var(--primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.1em;
}

.nav-links a {
  margin-left: 32px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-glow);
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: 20px;
  }

  .features {
    padding-top: 40px;
  }
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -2px;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

/* Signal Wave Animation */
.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary);
  opacity: 0.3;
  filter: blur(8px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
    transform: scaleX(0.95);
  }

  50% {
    opacity: 0.6;
    transform: scaleX(1.05);
  }

  100% {
    opacity: 0.3;
    transform: scaleX(0.95);
  }
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
}

.close-privacy-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-privacy-btn:hover {
  color: var(--primary);
}

.close-privacy-btn i {
  width: 32px;
  height: 32px;
}

.btn-primary:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.btn-store {
  background: #0a0a0a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  gap: 8px;
  padding-left: 16px;
}

.btn-store:hover {
  background: #171717;
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.btn-store .btn-subtext {
  color: rgba(255, 255, 255, 0.6);
}

.btn-store .btn-title {
  font-size: 1.1rem;
}

.btn-store .btn-subtext {
  font-size: 0.85rem;
}

.btn i {
  width: 24px;
  height: 24px;
}

.store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.btn-title {
  font-weight: 700;
  font-size: 1rem;
}

.btn-subtext {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

/* Modern Mockup */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 300px;
  height: 652px;
  background: #000;
  border-radius: 48px;
  position: relative;
  box-shadow:
    0 0 0 2px #333,
    0 0 0 6px #111,
    0 30px 80px -20px rgba(56, 189, 248, 0.3);
  /* Blue Glow */
  /* Blue Glow */
  display: flex;
  flex-direction: column;
  /* overflow: hidden; Removed to allow border glow */
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
  will-change: transform;
  /* Anti-aliasing hints */
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
}

/* Border Container (Static Shape) */
.glowing-border {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 56px;
  /* Match phone radius + padding */
  z-index: -1;
  overflow: hidden;
  /* Clip the inner spinner to this shape */
  filter: blur(20px);
  opacity: 0;
  /* Start invisible */
  animation: glowFade 3s ease-out 1 forwards;
}

/* Spinning Gradient (Huge Circle) */
.glowing-border::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1500px;
  /* Force huge square to cover phone when rotated */
  height: 1500px;
  background: conic-gradient(from 0deg, transparent 60%, var(--primary) 100%);
  transform: translate(-50%, -50%);
  animation: spin 3s linear 1 forwards;
  /* Run once */
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes glowFade {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  80% {
    opacity: 0.4;
  }

  100% {
    opacity: 0;
  }
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* Mockup Interface */
.app-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
  /* Match phone radius - border width */
}

/* Shared Section Styles */
.content-section {
  padding: 60px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 80px;
  background: linear-gradient(180deg, #fff 0%, var(--text-muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 40px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at top right, rgba(56, 189, 248, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card i {
  color: var(--primary);
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: 600;
}

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

/* FAQ Items */
.faq-item {
  background: var(--surface);
  margin-bottom: 16px;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-color);
}

/* Page Content (Privacy) */
.page-content {
  padding: 60px 24px;
  min-height: 70vh;
  max-width: 900px;
  /* Improve readability */
  margin: 0 auto;
}

.page-content h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--text-color) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-content .last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  font-family: monospace;
  opacity: 0.7;
}

.page-content section {
  margin-bottom: 48px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 12px;
  font-weight: 600;
  display: inline-block;
}

.page-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content strong {
  color: var(--text-color);
  font-weight: 600;
}

.page-content ul {
  list-style: none;
  margin-left: 0;
  margin-top: 16px;
}

.page-content li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
}

.page-content li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-family: monospace;
  font-weight: bold;
}

.page-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
  transition: all 0.2s;
}

.page-content a:hover {
  color: var(--primary-hover);
  border-bottom-style: solid;
  text-shadow: 0 0 8px var(--primary-glow);
}

footer {
  padding: 80px 0 40px;
  text-align: center;
  border-top: 1px solid var(--surface-border);
  background: rgba(15, 23, 42, 0.6);
}

.footer-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.footer-links {
  margin: 30px 0;
}

.footer-links a {
  margin: 0 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-btn i {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: 0;
    text-align: center;
    width: 100%;
    display: block;
  }

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

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    display: flex;
  }

  .hero-text {
    display: contents;
  }

  .hero-text h1 {
    order: 1;
    font-size: 3rem;
    margin-bottom: 16px;
  }

  .hero-text p {
    order: 2;
    margin-bottom: 24px;
  }

  .hero-image {
    order: 3;
    margin: 20px 0;
  }

  .cta-buttons {
    order: 4;
  }

  /* Compact Spacing for Mobile */
  .features,
  .faq {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 40px;
    font-size: 2rem;
  }

  .cta-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-card {
    text-align: center;
  }

  .feature-card i {
    margin: 0 auto 20px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .phone-mockup {
    width: 300px;
    height: 652px;
    /* Responsive resizing */
    max-width: 90vw;
    height: auto;
    aspect-ratio: 300/652;
    /* Maintain aspect ratio */
    transform: none;
    /* Disable 3D tilt on mobile */
  }

  .phone-mockup:hover {
    transform: none;
  }
}

/* Force Mobile Spacing Override (Consolidated) */
@media (max-width: 480px) {
  .hero {
    padding-top: 60px !important;
    padding-bottom: 20px !important;
  }

  .content-section {
    /* Compact spacing for mobile sections */
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}
