:root {
  --bg-color: #06070a;
  --card-bg: rgba(22, 24, 38, 0.45);
  --card-border: rgba(255, 255, 255, 0.05);
  
  --text-main: #f0f2f5;
  --text-muted: #8e95a5;
  
  --color-accent: #0088ff;
  --color-success: #00ff66;
  --color-success-bg: rgba(0, 255, 102, 0.06);
  --color-error: #ff4757;
  
  --glow-accent: 0 0 30px rgba(0, 136, 255, 0.2);
  --glow-success: 0 0 30px rgba(0, 255, 102, 0.2);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 136, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 255, 102, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Nav styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 10, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

.nav-links a.nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: var(--glow-accent);
}

.nav-links a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 136, 255, 0.4);
}

/* Hero Section */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(0, 136, 255, 0.08);
  border: 1px solid rgba(0, 136, 255, 0.15);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 30%, var(--color-success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-color);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--card-border);
  color: var(--text-main);
}

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

.btn-icon {
  font-size: 16px;
  margin-right: 4px;
}

.btn-subtext {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 600;
  margin-top: 2px;
}

.full-width {
  width: 100%;
  align-items: center;
}

.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Interactive Preview Mockup Window Frame */
.hero-visual {
  display: flex;
  justify-content: center;
}

.mockup-frame {
  width: 100%;
  max-width: 380px;
  background: #0c0d12;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--glow-accent);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mockup-header {
  height: 38px;
  background: rgba(12, 13, 20, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Simulated App Interface inside Mockup */
.mockup-body {
  padding: 24px;
  position: relative;
  overflow: hidden;
  height: 440px;
}

/* Web-based mockup cursor */
.mockup-cursor {
  position: absolute;
  top: 60px;
  left: 280px;
  z-index: 10;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.simulated-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.sim-header {
  display: flex;
  justify-content: center;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.status-dot.idled {
  background-color: var(--text-muted);
}

.status-dot.active {
  background-color: var(--color-success);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.6);
}

.status-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card layout */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.toggle-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Simulated Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #24273c;
  transition: .3s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s ease;
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-success);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #0c0d12;
}

/* Ring visualizer */
.visualizer-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-fg {
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.timer-display {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-countdown {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
}

.timer-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* Settings block */
.settings-card {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.setting-name {
  color: var(--text-muted);
  font-weight: 600;
}

.setting-val {
  color: var(--color-accent);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* Simulated Trigger Button */
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 6px;
}

.action-btn:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(0, 136, 255, 0.3);
}

.action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Mockup Caption & Sync state UI */
.mockup-frame:has(#simToggle:checked) {
  border-color: rgba(0, 255, 102, 0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), var(--glow-success);
}

.mockup-caption {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  background: rgba(6, 7, 10, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Features Section */
.features {
  padding: 100px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 32px 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Download Section */
.download-section {
  padding: 100px 24px;
}

.download-box {
  background: linear-gradient(135deg, rgba(22, 24, 38, 0.6) 0%, rgba(6, 7, 10, 0.8) 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--glow-accent);
}

.download-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  margin-bottom: 12px;
}

.download-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.download-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-card {
  background: rgba(6, 7, 10, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px 24px;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.platform-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.platform-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.platform-version {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  background: #030406;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-logo {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 12px;
  color: #4b4f63;
}

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 36px;
  }
  
  .nav-links {
    display: none; /* simple mobile nav hide for clean mockup design */
  }
  
  .download-box {
    padding: 40px 20px;
  }
  
  .platform-card {
    width: 100%;
  }
}
