@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #0B0716;
  --bg-light: #F3EEFB;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(168, 85, 247, 0.25);
  --text: #F5F3FA;
  --text-muted: #A79BC4;
  --accent: #A855F7;
  --accent2: #06B6D4;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --radius: 16px;
  --font-ui: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', var(--font-ui);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(168,85,247,0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(6,182,212,0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(168,85,247,0.10) 0%, transparent 50%);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.3px; }
a { color: var(--accent2); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Top bar ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,7,22,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px;
  padding: 8px 11px; border-radius: 9px; box-shadow: 0 0 20px var(--accent-glow);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.5px; }
.top-nav { display: flex; align-items: center; gap: 14px; }
.top-nav a { color: var(--text-muted); font-weight: 600; font-size: 14.5px; padding: 8px 4px; }
.top-nav a:hover { color: var(--text); }

/* ===== Buttons ===== */
.btn { border: none; border-radius: 9px; padding: 10px 18px; font-size: 14.5px; font-weight: 700; transition: all 0.15s ease; letter-spacing: 0.2px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 4px 18px rgba(168,85,247,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(168,85,247,0.5); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(168,85,247,0.14); border-color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; margin-top: 22px; padding: 13px; }

/* ===== Hero ===== */
.hero { padding: 90px 48px 70px; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1 1 480px; }
.hero-visual { flex: 1 1 360px; display: flex; justify-content: center; }
.globe-svg { width: 100%; max-width: 400px; height: auto; }
.badge-pill {
  display: inline-block; background: rgba(168,85,247,0.14); border: 1px solid var(--border);
  color: #D8B4FE; font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 30px; margin-bottom: 24px;
}
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 20px; background: linear-gradient(135deg, #fff 40%, #D8B4FE); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 22px; color: #fff; }
.hero-stats span { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

/* ===== How it works ===== */
.how { padding: 20px 48px 80px; max-width: 1000px; margin: 0 auto; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.how-step { text-align: center; padding: 10px; }
.how-num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 17px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.how-step h3 { font-size: 17px; margin-bottom: 8px; }
.how-step p { color: var(--text-muted); font-size: 14px; }

/* ===== Features ===== */
.features { padding: 80px 48px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature-card {
  background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: all 0.2s ease; position: relative; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); opacity: 0; transition: opacity 0.2s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(168,85,247,0.15); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ===== Platforms ===== */
.platforms { padding: 60px 48px 90px; text-align: center; }
.platform-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.platform-pill {
  background: var(--surface); border: 1px solid var(--border); border-radius: 30px;
  padding: 12px 24px; font-weight: 700; font-size: 14.5px; letter-spacing: 0.3px;
}

/* ===== CTA ===== */
.cta {
  text-align: center; padding: 90px 48px; margin: 0 48px 48px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(168,85,247,0.14), rgba(6,182,212,0.10));
  border: 1px solid var(--border);
}
.cta h2 { font-size: 30px; margin-bottom: 14px; }
.cta p { color: var(--text-muted); margin-bottom: 30px; font-size: 16px; }

/* ===== Footer ===== */
.site-footer { text-align: center; padding: 40px; color: var(--text-muted); font-size: 13.5px; border-top: 1px solid var(--border); }

/* ===== Modals ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,7,22,0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-backdrop.hidden { display: none; }
.modal {
  background: #150B26; border: 1px solid var(--border); border-radius: 18px; padding: 32px;
  width: 100%; max-width: 400px; max-height: 88vh; overflow-y: auto; position: relative;
  box-shadow: 0 0 60px rgba(168,85,247,0.15), 0 24px 60px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.06); border: none;
  color: var(--text-muted); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(168,85,247,0.2); color: #fff; }
.modal h3 { font-size: 21px; }
.modal-sub { color: var(--text-muted); font-size: 13.5px; margin: 6px 0 22px 0; }
.modal label { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin: 14px 0 6px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.modal input {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  font-size: 14.5px; background: rgba(255,255,255,0.04); color: var(--text);
}
.modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,0.18); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: #F87171; font-size: 13px; margin-top: 12px; min-height: 16px; }
.form-note { color: var(--text-muted); font-size: 14px; margin: 14px 0; text-align: center; }
.modal-link-row { text-align: center; margin-top: 16px; }
.modal-link-row a { font-size: 13.5px; color: var(--accent2); }
.modal-link-row a:hover { text-decoration: underline; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px; color: var(--text-muted);
  display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle { font-size: 16px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #150B26; border: 1px solid var(--border); color: #fff; padding: 12px 22px; border-radius: 9px;
  font-size: 14px; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.hidden { display: none; }
.toast.toast-error { border-color: #F87171; color: #FCA5A5; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: 60px 24px 50px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-text { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .topbar { padding: 16px 20px; }
  .top-nav a { display: none; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15.5px; }
  .features, .platforms, .how { padding: 50px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
