:root {
  --bg: #070B16;
  --bg-elevated: #0D1326;
  --surface: rgba(15, 23, 46, 0.72);
  --surface-strong: rgba(20, 30, 60, 0.9);
  --border: rgba(0, 240, 255, 0.16);
  --border-violet: rgba(139, 92, 246, 0.25);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --cyan: #00F0FF;
  --cyan-soft: rgba(0, 240, 255, 0.14);
  --violet: #8B5CF6;
  --violet-soft: rgba(139, 92, 246, 0.16);
  --pink: #EC4899;
  --gradient-main: linear-gradient(135deg, #00F0FF 0%, #6366F1 52%, #A855F7 100%);
  --gradient-glow: radial-gradient(circle at top left, rgba(0, 240, 255, 0.18), transparent 45%),
                   radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 48%);
  --shadow-neon: 0 18px 50px rgba(0, 240, 255, 0.14), 0 10px 30px rgba(139, 92, 246, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Ambient grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 25%, black, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.brand-text span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--gradient-main);
  color: #050811;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.28), 0 6px 20px rgba(139, 92, 246, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 240, 255, 0.4), 0 10px 26px rgba(139, 92, 246, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.26);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 540px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stat-val {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--cyan);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.mockup-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.25), rgba(139, 92, 246, 0.22));
  box-shadow: var(--shadow-neon);
}

.mockup-frame img {
  border-radius: calc(var(--radius-xl) - 8px);
  width: 100%;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  bottom: -16px;
  left: -14px;
  background: rgba(11, 16, 33, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

.floating-badge img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.floating-badge strong {
  display: block;
  font-size: 0.88rem;
}

.floating-badge span {
  font-size: 0.76rem;
  color: var(--cyan);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card-wide {
  grid-column: span 2;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.24);
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Steps Showcase */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* CTA Download Banner */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: var(--shadow-neon);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-banner h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 560px;
}

/* Portals strip */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.portal-link:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
}

.portal-tag {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
}

/* Legal / Subpage Styles */
.page-hero {
  padding: 58px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  margin-bottom: 10px;
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-shell {
  padding: 40px 0 76px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 920px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 1.32rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--cyan);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #CBD5E1;
  font-size: 0.97rem;
  margin-bottom: 10px;
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.alert-box {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 18px 0;
}

.alert-danger {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.34);
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(7, 11, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 0 34px;
  background: rgba(5, 8, 17, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .bento-grid,
  .steps-grid,
  .portals-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: span 1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 22, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 18px 22px 24px;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .floating-badge {
    position: static;
    margin-top: 14px;
  }

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