/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #8B5CF6;
  --secondary: #EC4899;
  --background: #0F0F1E;
  --background-elevated: #1A1A2E;
  --background-card: #16213E;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 30, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #0F0F1E 0%, #1A1A2E 50%, #16213E 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #A0AEC0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
}

/* Hero Visual */
.hero-visual {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.hero-visual:hover .phone-mockup {
  transform: rotateY(5deg) rotateX(2deg);
}

.phone-mockup {
  width: 300px;
  height: 600px;
  background: var(--background-elevated);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px var(--shadow);
  border: 2px solid var(--border);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background-card);
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.automation-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.automation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  border: 1px solid var(--primary);
}

.automation-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
}

.automation-icon.tap {
  background: var(--primary);
}

.automation-icon.wait {
  background: var(--secondary);
}

.automation-icon.swipe {
  background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

.automation-icon.loop {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

/* Mockup Header */
.mockup-header {
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.signal-icon, .wifi-icon, .battery-icon {
  width: 16px;
  height: 12px;
  background: var(--text-secondary);
  border-radius: 2px;
  opacity: 0.8;
}

/* Automation Details */
.automation-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.automation-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.automation-coords {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: monospace;
}

/* Mockup Footer */
.mockup-footer {
  margin-top: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse 2s infinite;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-item {
  position: absolute;
  font-size: 32px;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.float-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.float-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.float-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.8;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.automation-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.features h2,
.how-it-works h2,
.download h2,
.support h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Use Cases Section */
.use-cases {
  padding: 100px 24px;
  background: var(--background-elevated);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-card {
  background: var(--background-card);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.use-case-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2);
}

.use-case-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.use-case-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.use-case-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.use-case-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.use-case-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.use-case-steps li {
  color: var(--text-secondary);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.use-case-steps li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.use-case-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  align-self: flex-start;
  margin-top: 4px;
}

/* How It Works */
.how-it-works {
  padding: 100px 24px;
  background: var(--background);
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 32px;
}

.step {
  flex: 1;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}

/* Download Section */
.download {
  padding: 100px 24px;
  background: var(--background);
}

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

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--background-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s;
  min-width: 220px;
}

.download-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.download-btn svg {
  flex-shrink: 0;
}

.download-btn div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-btn small {
  font-size: 12px;
  color: var(--text-secondary);
}

.download-btn strong {
  font-size: 16px;
  font-weight: 600;
}

/* Support Section */
.support {
  padding: 100px 24px;
  background: var(--background-elevated);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.support-card {
  background: var(--background-card);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s;
}

.support-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.support-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.support-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .features h2,
  .how-it-works h2,
  .download h2,
  .support h2 {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .step-connector {
    width: 2px;
    height: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

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