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

:root {
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #0f3460;
  --border: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --pro-badge: #f59e0b;
  --radius: 12px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img { width: 48px; height: 48px; display: block; transform: translateY(-6px); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

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

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

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.marker-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.marker-underline::after {
  content: '';
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  bottom: -0.32em;
  height: 0.7em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><path d='M 22 20 Q 108 2 192 18' stroke='%23ef4444' stroke-width='3.5' stroke-linecap='round' fill='none'/><path d='M 8 30 Q 128 14 196 28' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.subtitle-tag {
  display: inline-block;
  margin-top: 8px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 60px; }

.hero-image {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.hero-image img {
  width: calc(100% + 3px);
  margin-left: -3px;
  display: block;
}

/* Sections */
section { padding: 80px 0; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

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

.feature-card:hover { border-color: var(--text-muted); }

.feature-card.pro { border-color: rgba(245, 158, 11, 0.3); }
.feature-card.pro:hover { border-color: var(--pro-badge); }
.feature-card.wide { grid-column: 1 / -1; }


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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pro Features Section */
.pro-features { background: linear-gradient(180deg, var(--bg) 0%, #131a2e 100%); }

/* Pricing */
.pricing { padding: 80px 0; }

.pricing-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 48px auto 48px;
  max-width: 500px;
}

.pricing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

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

.pricing-cta { text-align: center; margin: -16px auto 48px; }

.pricing-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }

.price { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 8px; }

.price-tbd {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pro-badge);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Table */
.feature-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
}


.feature-table td {
  padding: 10px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.feature-table td:first-child {
  color: var(--text-muted);
}

.feature-table td:nth-child(2),
.feature-table td:nth-child(3) {
  text-align: center;
  width: 140px;
  font-size: 0.85rem;
}

.feature-table .check { color: #4ade80; font-size: 1.1rem; }
.feature-table .dash { color: #4b5563; }

.feature-table .section-row td {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-top: 24px;
  border-bottom: 1px solid var(--border);
}

/* Pro column highlight */
.feature-table td:nth-child(3) {
  position: relative;
}
.feature-table td:nth-child(3)::before {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  pointer-events: none;
}
.feature-table tr:last-child td:nth-child(3)::before {
  border-bottom: 1px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-card li:last-child { border-bottom: none; }

/* Download */
.download { text-align: center; }

.download-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
  width: 200px;
}

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

.dl-icon {
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.dl-icon svg {
  width: 2rem;
  height: 2rem;
  display: block;
}
.dl-label { font-weight: 600; font-size: 1rem; }
.dl-detail { font-size: 0.8rem; color: var(--text-muted); }

.dl-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Download — coming soon variant */
.download-card-soon {
  cursor: default;
  opacity: 0.75;
}
.download-card-soon:hover { border-color: var(--border); }

.dl-status {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pro-badge);
}

.download .btn-primary { margin-top: 32px; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Download CTA */
.download-cta { margin-top: 32px; }

/* Notify modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade 0.15s ease-out;
}

.modal-backdrop[hidden] { display: none; }

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: left;
  animation: modal-rise 0.2s ease-out;
}

@keyframes modal-rise {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-right: 28px;
}

.modal-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Notify form (lives inside the modal) */
.notify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notify-input {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.notify-input::placeholder { color: var(--text-muted); }

.notify-input:focus {
  outline: none;
  border-color: var(--accent);
}

.notify-form .btn { width: 100%; }

.notify-status {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.notify-status[data-state="ok"] { color: #4ade80; }
.notify-status[data-state="error"] { color: #f87171; }

.modal-consent {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.modal-consent a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-consent a:hover { color: var(--text); }

/* Legal & support pages */
.legal {
  padding: 120px 0 60px;
}

.legal .container { max-width: 760px; }

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal p, .legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal p { margin-bottom: 12px; }

.legal ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal li { margin-bottom: 6px; }

.legal a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--text); }

.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
  font-style: italic;
}

.legal-address {
  display: block;
  font-style: normal;
  padding: 12px 16px;
  margin: 8px 0 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem !important;
  margin: 20px 0 !important;
}

.legal-footnote {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-meta { text-align: right; }

/* Responsive */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.wide { grid-column: span 1; }
  .download-grid { flex-direction: column; align-items: center; }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: center;
  }
  .footer-col { align-items: center; }
  .footer-meta { text-align: center; }
}
