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

:root {
  --bg: #101318;
  --bg-elevated: #161a21;
  --bg-card: #1a1f27;
  --border: #252b35;
  --border-light: #2e3640;
  --text: #e8eaed;
  --text-secondary: #8a919c;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.12);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(99, 60, 180, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Navigation */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(16, 19, 24, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

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

nav .logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav .logo:hover {
  color: var(--text);
}

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

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

nav .nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Container */

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

/* Hero */

.hero {
  padding: 140px 40px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(to bottom, #fff 30%, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
  position: relative;
}

.hero .badge-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  position: relative;
}

.hero .badge-link:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.hero .badge-link img {
  height: 44px;
}

/* Hero Screenshot */

.hero-screenshot {
  margin-top: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04) inset;
  position: relative;
}

.hero-screenshot img {
  width: 100%;
  display: block;
}

/* Hero badges */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Native callout */
.native-callout {
  padding: 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.native-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.native-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.native-text {
  text-align: left;
}

.native-callout h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.native-callout p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Showcase */

.showcase {
  padding: 40px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.showcase-item {
  display: flex;
  align-items: center;
  gap: 48px;
}

.showcase-item.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 0 0 280px;
}

.showcase-text h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.showcase-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.showcase-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.showcase-image img {
  width: 100%;
  display: block;
}

/* Features */

.features {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.2px;
  text-align: center;
  margin-bottom: 12px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, background 0.25s;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: #1e2430;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

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

/* Comparison table */
.comparison {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}

.comparison-table thead th {
  background: var(--bg-elevated);
  font-weight: 600;
  font-size: 14px;
}

.comparison-table th:nth-child(2) {
  color: var(--accent);
}

.comparison-table .yes {
  color: #22c55e;
  font-weight: 500;
}

.comparison-table .no {
  color: var(--text-secondary);
}

/* FAQ */
.faq {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Pricing */

.pricing {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 40px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pricing-card .price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0;
}

.pricing-card .trial {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-feature svg {
  flex-shrink: 0;
}

.pricing-card .badge-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.pricing-card .badge-link:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.pricing-card .badge-link img {
  height: 44px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 17px;
}

.payment-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Feedback */

.feedback {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feedback-content {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4a5260;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Status */

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 40px;
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.2s;
}

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

footer .copyright {
  color: #4a5260;
  font-size: 12px;
}

/* Legal pages */

.legal {
  padding: 140px 40px 80px;
  max-width: 680px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal ul {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 14px;
  padding-left: 20px;
  line-height: 1.8;
}

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

/* Responsive */

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -1.2px;
  }

  .hero .tagline {
    font-size: 17px;
  }

  .hero-screenshot {
    margin-top: 40px;
  }

  .showcase {
    padding: 40px 20px;
    gap: 40px;
  }

  .showcase-item,
  .showcase-item.reverse {
    flex-direction: column;
  }

  .showcase-text {
    flex: none;
  }

  .features,
  .pricing,
  .feedback,
  .comparison,
  .faq {
    padding: 60px 20px;
  }

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

  .section-title {
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 36px;
  }

  nav .container {
    padding: 12px 20px;
  }

  nav .nav-links {
    gap: 20px;
  }

  nav .nav-links a {
    font-size: 13px;
  }

  .container {
    padding: 0 20px;
  }

  .legal {
    padding: 120px 20px 60px;
  }

  .hero-glow {
    width: 300px;
    height: 200px;
  }

  .hero-badges {
    gap: 8px;
  }

  .native-content {
    flex-direction: column;
    text-align: center;
  }

  .native-text {
    text-align: center;
  }

  .native-callout {
    padding: 30px 20px;
  }

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

  .comparison-table {
    font-size: 13px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  nav .nav-links {
    gap: 14px;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .showcase-text h3 {
    font-size: 18px;
  }
}

/* Documentation page */

.docs {
  padding: 100px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.docs-container h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.docs-intro {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.docs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.docs-nav a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.docs-nav a:hover {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  color: var(--text);
}

.docs section {
  margin-bottom: 64px;
}

.docs h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  padding-top: 24px;
}

.docs h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.docs p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-list {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-list li {
  margin-bottom: 8px;
}

.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.code-block pre {
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.code-block code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  color: #e6edf3;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

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

.docs-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-table td {
  color: var(--text-secondary);
}

.docs-table code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

nav .nav-links a.active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .docs {
    padding: 100px 20px 60px;
  }

  .docs-container h1 {
    font-size: 32px;
  }

  .docs-intro {
    font-size: 16px;
  }

  .docs h2 {
    font-size: 24px;
  }

  .docs-table {
    display: block;
    overflow-x: auto;
  }

  .code-block pre {
    padding: 12px 16px;
    font-size: 12px;
  }
}
