:root {
  --bg-color: #0d0e15;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-color: #3b82f6; /* Defended theme blue/cyan */
  --accent-glow: rgba(59, 130, 246, 0.3);
  --green-glow: rgba(34, 197, 94, 0.3);
  --red-glow: rgba(239, 68, 68, 0.3);
  --font-family: 'Space Grotesk', 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  position: relative;
}

/* Star Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 1px, transparent 2px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 550px 550px, 350px 350px;
  background-position: 0 0, 40 60;
  animation: starTwinkle 150s linear infinite;
  z-index: -1;
}

@keyframes starTwinkle {
  from { background-position: 0 0, 40 60; }
  to { background-position: -550px -550px, -310px -290px; }
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

/* Header / Navbar */
header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

header .logo span {
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 4rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #ffffff 60%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.app-badge img {
  width: 24px;
  height: 24px;
}

.badge-text {
  text-align: left;
}

.badge-text span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.badge-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

/* App visual frame */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.app-frame {
  width: 320px;
  height: 650px;
  border-radius: 40px;
  background: #090a10;
  padding: 12px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 40px var(--accent-glow);
  border: 1px solid var(--card-border);
  position: relative;
}

.app-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

/* Features Grid */
.features {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

/* Screenshot showcase */
.screenshot-grid {
  max-width: 1200px;
  margin: 8rem auto;
  padding: 0 2rem;
}

.screenshot-grid h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.screenshots {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-item {
  width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.03);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-main);
  margin: 0 0.5rem;
}

/* Policy Content Layout */
.policy-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--card-border);
}

.policy-content {
  padding: 3rem;
}

.policy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.policy-content .date {
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-color);
}

.policy-content p, .policy-content ul {
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.policy-content ul {
  padding-left: 1.5rem;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    margin-top: 2rem;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .features {
    grid-template-columns: 1fr;
  }
  header {
    padding: 0 2rem;
  }
}
