:root {
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);
  --color-accent: #9cc3ff;
  --color-accent-hover: #8bb8ff;
  --gradient-start: #A3A2E7;
  --gradient-end: #99CCEA;
  --color-bg: #0a0a0a;
  --color-bg-secondary: #151515;
  --color-bg-card: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4), 0 6px 10px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
  --ring: 0 0 0 3px rgba(156, 195, 255, 0.4);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
}

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

html { 
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { 
  max-width: 100%; 
  display: block; 
  height: auto;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  height: 32px;
  transition: transform 0.2s ease;
}

.brand:hover .logo {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.7;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover { 
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:focus-visible { 
  outline: none; 
  box-shadow: var(--ring); 
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  background: rgba(156, 195, 255, 0.1);
  border: 1px solid rgba(156, 195, 255, 0.3);
  color: var(--color-accent);
}

.btn-small:hover {
  background: rgba(156, 195, 255, 0.2);
  border-color: var(--color-accent);
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 4px 20px rgba(156, 195, 255, 0.3);
}

.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(156, 195, 255, 0.4);
}

.btn-primary:active { 
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: var(--color-bg-secondary);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn:focus-visible { 
  outline: none; 
  box-shadow: var(--ring); 
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #0a0a0a 0%, #151515 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(156, 195, 255, 0.15) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(0) translateY(0); }
  33% { transform: translateX(30px) translateY(-30px); }
  66% { transform: translateX(-20px) translateY(20px); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease;
  color: white;
}

.hero-copy h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-weight: 900;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  opacity: 0.9;
  margin: 0 0 32px;
  max-width: 600px;
  animation: fadeInUp 0.6s ease 0.2s both;
  color: var(--color-text-secondary);
}

.cta { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 14px;
  opacity: 0.7;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.stat-arrow {
  color: #ff4d4f;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.phone-mockup {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.phone-frame {
  position: relative;
  padding: 12px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.9));
  border-radius: 36px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  animation: fadeIn 0.6s ease;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-description {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.feature-card {
  padding: 32px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  background: linear-gradient(145deg, var(--color-bg-card), rgba(156, 195, 255, 0.05));
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.feature-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

/* How it Works */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.step {
  display: flex;
  gap: 24px;
  animation: fadeInUp 0.6s ease both;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

/* Screenshots Section */
.screenshots {
  padding: 100px 0;
  background: var(--color-bg);
}

.screenshot-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.screenshot-item {
  animation: fadeInUp 0.6s ease both;
}

.screenshot-device {
  margin-bottom: 24px;
}

.screenshot {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.placeholder {
  display: grid;
  place-items: center;
  color: var(--color-text-tertiary);
  font-weight: 600;
  font-size: 14px;
  aspect-ratio: 9 / 19.5;
  min-height: 400px;
}

.screenshot-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.screenshot-info p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--color-bg-secondary);
}

.cta-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  color: white;
  animation: fadeIn 0.6s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-card h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card .cta {
  justify-content: center;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
  background: var(--color-bg);
}

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

.footer-inner small {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-nav {
  gap: 24px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .hero-inner { 
    grid-template-columns: 1.2fr 1fr; 
  }
  
  .hero {
    padding: 160px 0 100px;
  }
}

@media (max-width: 767px) {
  .nav-link:not(.btn) {
    display: none;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}