/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #ffffff;
  --bg-2:         #f5f7ff;
  --bg-3:         #eef0ff;
  --border:       #e2e6f3;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-dim:   rgba(37, 99, 235, 0.09);
  --purple:       #7c3aed;
  --cyan:         #0891b2;
  --green:        #059669;
  --green-dim:    rgba(5, 150, 105, 0.10);
  --radius:       12px;
  --radius-sm:    8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 28 0 L 0 0 0 28' fill='none' stroke='%232563eb' stroke-opacity='0.07' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.4' fill='%237c3aed' fill-opacity='0.15'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

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

.tm {
  font-size: 10px;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.40);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-2); }

.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius); }

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 65% 55% at 20% 40%, rgba(37, 99, 235, 0.13), transparent 60%),
    radial-gradient(ellipse 55% 50% at 80% 30%, rgba(124, 58, 237, 0.11), transparent 60%),
    radial-gradient(ellipse 40% 35% at 60% 90%, rgba(8, 145, 178, 0.09), transparent 60%);
}

.badge {
  display: inline-block;
  padding: 5px 16px;
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(124,58,237,0.10));
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 60%, #0e7490 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

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

/* ===== Features ===== */
.features {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(0px);
}

.features h2,
.download h2,
.early-access h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

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

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(37,99,235,0.10); color: #2563eb; }
.feature-card:nth-child(2) .feature-icon { background: rgba(124,58,237,0.10); color: #7c3aed; }
.feature-card:nth-child(3) .feature-icon { background: rgba(8,145,178,0.10); color: #0891b2; }
.feature-card:nth-child(4) .feature-icon { background: rgba(5,150,105,0.10); color: #059669; }

.feature-card:nth-child(1):hover { border-color: #2563eb; }
.feature-card:nth-child(2):hover { border-color: #7c3aed; }
.feature-card:nth-child(3):hover { border-color: #0891b2; }
.feature-card:nth-child(4):hover { border-color: #059669; }

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

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

/* ===== Download ===== */
.download {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 580px;
  margin: 0 auto 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.download-platform {
  display: flex;
  align-items: center;
  gap: 18px;
}

.platform-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.platform-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}

.platform-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.version-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-pill {
  padding: 6px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Early Access ===== */
.early-access {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
}

.email-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-row input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}

.form-row input[type="email"]:focus { border-color: var(--accent); }
.form-row input[type="email"]::placeholder { color: var(--text-muted); }

.form-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-msg {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
  font-weight: 500;
}

.form-msg.success { color: var(--green); }
.form-msg.error   { color: #f85149; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.75);
}

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

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .nav-toggle { display: block; }
  .form-row { flex-direction: column; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .footer-inner { justify-content: center; text-align: center; }
  .hero { padding: 72px 0 60px; }
}
