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

:root {
  /* Futuristic: dark base + electric cyan + cold steel */
  --color-primary: #0a1628;
  --color-primary-light: #12243d;
  --color-accent: #00d4ff;
  --color-accent-light: #33dfff;
  --color-accent-glow: rgba(0, 212, 255, 0.15);
  --color-accent-border: rgba(0, 212, 255, 0.25);
  --color-text: #e2e8f0;
  --color-text-light: #94a3b8;
  --color-text-dark: #1e293b;
  --color-bg: #060d1b;
  --color-bg-alt: #0a1628;
  --color-bg-card: #0f1d32;
  --color-bg-card-hover: #132640;
  --color-bg-surface: #0d1829;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-accent: rgba(0, 212, 255, 0.2);
  --color-success: #00d4ff;
  --color-warning: #ff6b35;
  --max-width: 1140px;
  --font-heading: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --glow-sm: 0 0 12px rgba(0, 212, 255, 0.08);
  --glow-md: 0 0 24px rgba(0, 212, 255, 0.12);
  --glow-lg: 0 0 48px rgba(0, 212, 255, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

a { color: var(--color-accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  background: rgba(6, 13, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.logo span { color: var(--color-accent); }

/* Language Switcher */
.lang-bar {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 4px 0;
}

.lang-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.lang-bar a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}

.lang-bar a:hover {
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

.lang-bar a.active {
  color: var(--color-bg);
  background: var(--color-accent);
  font-weight: 600;
}

nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--color-accent); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  box-shadow: var(--glow-md);
}
.btn-secondary { background: var(--color-primary-light); color: #fff; border: 1px solid var(--color-border-accent); }
.btn-secondary:hover { background: var(--color-bg-card-hover); box-shadow: var(--glow-sm); }
.btn-outline { border: 1px solid var(--color-accent); color: var(--color-accent); background: transparent; }
.btn-outline:hover { background: var(--color-accent-glow); box-shadow: var(--glow-sm); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.3); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.5); }
.btn-large { padding: 14px 36px; font-size: 1rem; }

/* Launch banner */
.launch-banner {
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-text-dark);
  padding: 14px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-accent);
  box-shadow: var(--glow-md);
}
.launch-banner .container {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.launch-banner strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.launch-banner span { opacity: 0.85; font-size: 0.95rem; }
.launch-banner .btn {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 1px solid var(--color-primary);
  padding: 8px 20px;
  font-size: 0.9rem;
}
.launch-banner .btn:hover { background: var(--color-primary-light); }
@media (max-width: 640px) {
  .launch-banner .container { flex-direction: column; gap: 10px; }
  .launch-banner strong { font-size: 0.95rem; }
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -1px;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto 32px;
  position: relative;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
  position: relative;
}

.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 2.2rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}
.hero-stat span { font-size: 0.85rem; color: var(--color-text-light); }

.hero-summary {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 20px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-accent);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  text-align: left;
  position: relative;
  box-shadow: var(--glow-sm);
}

/* Sections */
section { padding: 72px 0; }
section:nth-child(even) { background: var(--color-bg-alt); }

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

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: #fff;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--color-bg-card);
  border-left: 3px solid var(--color-warning);
  border-radius: 0 4px 4px 0;
  padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.problem-card:hover {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.08);
}

.problem-card h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  color: var(--color-text);
}

.problem-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* Solution Card */
.solution-card {
  background: var(--color-bg-card);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
  padding: 24px;
}

.solution-card h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  color: var(--color-text);
}

.solution-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.feature-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--glow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  margin-bottom: 16px;
  background: var(--color-accent-glow);
  color: var(--color-accent);
  font-weight: 700;
  border: 1px solid var(--color-border-accent);
  letter-spacing: 1px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #fff;
}

.feature-card p { color: var(--color-text-light); font-size: 0.95rem; }

.feature-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}
.feature-card ul li { margin-bottom: 4px; }

/* How It Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: var(--glow-sm);
}

.steps h3 { margin-bottom: 8px; font-size: 1.05rem; color: #fff; }
.steps p { color: var(--color-text-light); font-size: 0.9rem; }

/* Comparison Table */
.comparison-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th {
  background: var(--color-primary-light);
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

.comparison-table thead th:first-child { border-radius: 4px 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 4px 0 0; }
.comparison-table tbody tr:hover { background: var(--color-accent-glow); }
.comparison-table td { color: var(--color-text-light); }

.check { color: var(--color-accent); font-weight: 700; }
.no { color: #475569; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  border-color: var(--color-border-accent);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--glow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 4px 16px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: var(--glow-sm);
}

.pricing-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #fff; }
.pricing-card .pricing-desc { color: var(--color-text-light); font-size: 0.9rem; min-height: 44px; }

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-accent);
  margin: 16px 0 4px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.pricing-amount span { font-size: 1rem; font-weight: 400; color: var(--color-text-light); }

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.pricing-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.pricing-card ul li::before {
  content: "\2713\00a0";
  color: var(--color-accent);
  font-weight: 700;
}

.pricing-card .btn { width: 100%; }

/* API Pricing */
.api-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  max-width: 800px;
  margin: 0 auto;
}

.api-pricing-table th, .api-pricing-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.api-pricing-table thead th {
  background: var(--color-primary-light);
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.api-pricing-table thead th:first-child { border-radius: 4px 0 0 0; }
.api-pricing-table thead th:last-child { border-radius: 0 4px 0 0; }
.api-pricing-table tbody tr:hover { background: var(--color-accent-glow); }
.api-pricing-table td { color: var(--color-text-light); }

.api-pricing-table .free-tag {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  padding: 2px 10px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  border: 1px solid var(--color-border-accent);
}

/* Developer Section */
.dev-section {
  background: var(--color-bg);
  color: #fff;
  position: relative;
}

.dev-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.dev-section .section-header h2 { color: #fff; }
.dev-section .section-header p { color: var(--color-text-light); }

.code-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-accent);
  border-radius: 4px;
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text);
  overflow-x: auto;
  text-align: left;
  box-shadow: var(--glow-sm);
  position: relative;
}

.code-block .comment { color: #475569; }
.code-block .keyword { color: var(--color-accent); }
.code-block .string { color: #fbbf24; }

.dev-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.dev-feature {
  text-align: center;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.dev-feature:hover { border-color: var(--color-border-accent); }

.dev-feature h3 { font-size: 1rem; margin-bottom: 8px; color: #fff; }
.dev-feature p { color: var(--color-text-light); font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1rem;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  color: #fff;
}

.faq-item p { color: var(--color-text-light); font-size: 0.95rem; }

/* CTA Section */
.cta-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
    var(--color-primary-light);
  color: #fff;
  text-align: center;
  padding: 72px 0;
  position: relative;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 800;
  color: #fff;
}

.cta-section p { color: var(--color-text-light); font-size: 1.05rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer {
  background: var(--color-bg);
  color: var(--color-text-light);
  padding: 40px 0 24px;
  border-top: 1px solid var(--color-border);
}

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

.footer-brand .logo { font-size: 1.3rem; color: #fff; }
.footer-brand .logo span { color: var(--color-accent); }
.footer-brand p { margin-top: 8px; font-size: 0.85rem; max-width: 300px; }

.footer-links h4 {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: #475569;
}

/* RTL Support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .problem-card { border-left: none; border-right: 3px solid var(--color-warning); border-radius: 4px 0 0 4px; }
[dir="rtl"] .solution-card { border-left: none; border-right: 3px solid var(--color-accent); border-radius: 4px 0 0 4px; }
[dir="rtl"] .pricing-card ul { text-align: right; }
[dir="rtl"] .pricing-card ul li::before { content: "\00a0\2713"; float: left; }
[dir="rtl"] .code-block { direction: ltr; text-align: left; }
[dir="rtl"] .hero-summary { text-align: right; }
[dir="rtl"] .faq-item { text-align: right; }
[dir="rtl"] .footer-brand p { text-align: right; }
[dir="rtl"] .comparison-table td, [dir="rtl"] .comparison-table th { text-align: right; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  .header-inner { justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .dev-features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
