:root {
  --bg-color: #0f111a;
  --bg-elevated: rgba(30, 33, 44, 0.6);
  --text-main: #f0f2f5;
  --text-muted: #9aa0a6;
  --primary: #4e7cfe;
  --primary-hover: #3b66df;
  --secondary: rgba(255, 255, 255, 0.05);
  --secondary-hover: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(135deg, #4e7cfe, #1ddcff);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
}

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

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

/* Background Blobs */
.blob {
  position: absolute;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  border-radius: 50%;
  animation: float 10s ease-in-out infinite alternate;
}
.blob-1 {
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: var(--primary);
}
.blob-2 {
  top: 40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: #1ddcff;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.glass-effect {
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 3rem; }

/* typography */
h1, h2, h3, h4 { font-family: var(--font-display); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(78, 124, 254, 0.4);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 124, 254, 0.6);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.icon {
  width: 20px;
  height: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.logo img { width: 36px; height: 36px; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: rgba(29, 220, 255, 0.1);
  color: #1ddcff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(29, 220, 255, 0.2);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Browser Mockup */
.browser-mockup {
  border-radius: 12px;
  overflow: hidden;
}
.browser-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.address-bar {
  background: rgba(255,255,255,0.05);
  margin-left: 1rem;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-grow: 1;
  text-align: left;
}
.mockup-content {
  padding: 2rem;
  background: rgba(15, 17, 26, 0.8);
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mockup-ui {
  width: 100%;
  max-width: 400px;
  background: #181b26;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.m-top-bar { padding: 1rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between;}
.m-title { font-weight: bold; }
.m-actions { display: flex; gap: 0.5rem; }
.m-btn { width: 24px; height: 24px; border-radius: 4px; background: var(--secondary); }
.m-search { margin: 1rem; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.05); }
.m-list { margin: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.m-item { background: var(--secondary); padding: 0.75rem; border-radius: 6px; }
.m-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); margin-bottom: 6px; }
.m-line.short { width: 30%; }
.m-line.long { width: 80%; }

/* Sections */
.section {
  padding: 6rem 0;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.feature-card {
  padding: 2.5rem 2rem;
  border-radius: 16px;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.feature-card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Privacy */
.privacy-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.privacy-text { color: var(--text-muted); margin-bottom: 2rem; }
.check-list { list-style: none; display: grid; gap: 1rem; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.check-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}
.privacy-image {
  aspect-ratio: 1;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.privacy-image::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
  animation: rotate 4s linear infinite;
}
.privacy-image::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-color);
  border-radius: 28px;
}
.shield-icon {
  font-size: 6rem;
  z-index: 1;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

/* Docs */
.doc-tabs {
  border-radius: 16px;
  overflow: hidden;
}
.docs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0,0,0,0.2);
}
.doc-btn {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.doc-btn:hover { color: var(--text-main); }
.doc-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(255,255,255,0.02);
}
.docs-content { padding: 3rem; }
.doc-pane { display: none; animation: fadeIn 0.4s ease; }
.doc-pane.active { display: block; }

.browser-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.browser-col h4 { margin-bottom: 1rem; color: #1ddcff; }
.doc-pane ol, .doc-pane ul { margin-left: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--text-muted); }
.doc-pane p { color: var(--text-muted); margin-bottom: 1.5rem;}
.doc-pane h3 { margin-bottom: 1rem; font-size: 1.5rem; }
code { background: rgba(255,255,255,0.1); padding: 0.2rem 0.4rem; border-radius: 4px; font-family: monospace; font-size: 0.9em; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: white;
}
.footer-brand img { width: 24px; height: 24px; }
.footer-container a{
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .privacy-container { grid-template-columns: 1fr; }
  .browser-split { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
  .docs-nav { flex-direction: column; }
  .doc-btn { border-bottom: none; border-left: 2px solid transparent; text-align: left; }
  .doc-btn.active { border-bottom: none; border-left-color: var(--primary); }
  .docs-content { padding: 1.5rem; }
}
