* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00d9ff;
  --primary-dark: #00b8d4;
  --bg-dark: #0a0a0a;
  --bg-secondary: #151515;
  --bg-tertiary: #1f1f1f;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --border: #2a2a2a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.tagline {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--bg-dark);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-large:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 16px 32px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.link-primary {
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.2s;
}

.link-primary:hover {
  color: var(--primary-dark);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-tertiary);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* How It Works Section */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: 12px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 20px;
}

.step p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.step-arrow {
  font-size: 36px;
  color: var(--primary);
  font-weight: bold;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--bg-dark);
}

.features h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-item {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Tool Section */
.tool-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  min-height: 100vh;
}

.tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--primary);
}

.tool-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

#app-container {
  background: var(--bg-dark);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 800px;
  position: relative;
}

#app-container iframe {
  width: 100%;
  height: 100vh;
  min-height: 800px;
  border: none;
  display: block;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-secondary);
}

.spinner {
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-section kbd {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--primary);
  margin-right: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .how-it-works {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .hero h2 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .header .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-large, .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .features h2 {
    font-size: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

