:root {
  --white: #fff;
  --bg: #1e2228;
  --bg-gradient-top: #2a2e36;
  --bg-gradient-bottom: #161a1f;
  --bg-card: #252a32;
  --text: #e8eaef;
  --text-muted: #9aa1ab;
  --blue: #5b9cf4;
  --blue-hover: #7ab0f6;
  --blue-active: #4a8ae0;
  --nav-pill-bg: #2d323a;
  --nav-pill-active-bg: #363c46;
  --nav-pill-active-text: #5b9cf4;
  --sun: #f0c14b;
  --dark: #1a1d24;
  --border: #3a404a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radius-big: 24px;
  --blob-blue: rgba(91, 156, 244, 0.2);
  --blob-light: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  transition: background 0.6s ease, color 0.3s ease;
}
a { color: var(--blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue-hover); }

/* Header — pill navigation (as in reference) */
.header {
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--nav-pill-bg);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}
.nav-pill-link {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  transition: background .2s, color .2s;
}
.nav-pill-link:hover { color: var(--blue-hover); }
.nav-pill-link.is-active {
  background: var(--nav-pill-active-bg);
  color: var(--nav-pill-active-text);
}
.nav-pill-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}
.nav-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
}
.nav-pill-icon:hover { background: rgba(255, 255, 255, 0.08); }
.nav-pill-sun {
  font-size: 1.25rem;
  color: var(--sun);
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: #252a33; }

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1e2a3a 0%, #151c26 50%, #0f1419 100%);
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-blob-1 {
  width: 380px; height: 380px;
  background: var(--blob-blue);
  top: -100px; right: -60px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}
.hero-blob-2 {
  width: 280px; height: 280px;
  background: var(--blob-light);
  bottom: -40px; left: -30px;
  border-radius: 60% 40% 50% 50% / 55% 60% 40% 45%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 20px;
  max-width: 680px;
  animation: heroReveal 0.8s ease-out forwards;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--blue);
  margin: 0 0 12px;
  font-weight: 500;
}
.hero-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.65;
}
.hero-cta-text {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 28px;
  font-weight: 600;
}
.hero-inner .btn { margin-top: 8px; }

/* Section */
.section { padding: 56px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 28px;
}

/* Two big cards */
.section-cards { padding-top: 40px; }
.cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative;
  border-radius: var(--radius-big);
  padding: 36px 32px;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  animation: cardReveal 0.6s ease-out forwards;
}
.card-reveal { animation-delay: 0.1s; }
.card-reveal + .card-reveal { animation-delay: 0.25s; }
@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}
.card-blue { background: linear-gradient(145deg, #1e2a3a, #15202b); color: var(--white); }
.card-dark { background: var(--dark); color: var(--white); border-color: #252a33; }
.card-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
  pointer-events: none;
}
.card-blob-1 {
  width: 200px; height: 200px;
  background: var(--blob-blue);
  top: -50px; right: -30px;
  border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
}
.card-blob-2 {
  width: 160px; height: 160px;
  background: rgba(91, 156, 244, 0.25);
  bottom: -20px; right: -20px;
  border-radius: 40% 60% 50% 50% / 60% 45% 55% 40%;
}
.card-content { position: relative; z-index: 1; }
.card-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; }
.card-text { font-size: 0.95rem; opacity: .9; margin: 0 0 20px; line-height: 1.5; }
.card .btn { margin-top: 4px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .15s;
  opacity: 0;
  transform: translateY(16px);
  animation: serviceReveal 0.5s ease-out forwards;
}
.service-reveal { animation-delay: 0.15s; }
.service-reveal + .service-reveal { animation-delay: 0.3s; }
.service-reveal + .service-reveal + .service-reveal { animation-delay: 0.45s; }
@keyframes serviceReveal {
  to { opacity: 1; transform: translateY(0); }
}
.service-card:hover { box-shadow: 0 12px 40px rgba(91, 156, 244, 0.15); transform: translateY(-2px); }
.service-icon { font-size: 2rem; color: var(--blue); margin-bottom: 12px; line-height: 1; }
.service-name { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.service-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Why section */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: box-shadow .2s;
  opacity: 0;
  transform: translateY(16px);
  animation: whyReveal 0.5s ease-out forwards;
}
.why-reveal { animation-delay: 0.2s; }
.why-reveal + .why-reveal { animation-delay: 0.35s; }
.why-reveal + .why-reveal + .why-reveal { animation-delay: 0.5s; }
@keyframes whyReveal {
  to { opacity: 1; transform: translateY(0); }
}
.why-card:hover { box-shadow: 0 12px 40px rgba(91, 156, 244, 0.12); }
.why-card-blue { background: linear-gradient(145deg, #1e2a3a, #15202b); color: var(--white); border-color: transparent; }
.why-card-blue .why-name { color: var(--white); }
.why-card-blue .why-desc { color: rgba(255,255,255,0.85); }
.why-icon { font-size: 2.5rem; margin-bottom: 12px; }
.why-name { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.why-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Newsletter */
.section-newsletter {
  background: var(--bg-card);
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.newsletter-icon { font-size: 2rem; color: var(--blue); }
.newsletter-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.newsletter-desc { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.newsletter-right { display: flex; gap: 12px; align-items: center; }
.newsletter-input {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  min-width: 260px;
  background: var(--bg);
  color: var(--text);
}
.newsletter-input::placeholder { color: var(--text-muted); }

/* Footer */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-heading { font-size: 0.9rem; font-weight: 700; color: var(--text); margin: 0 0 16px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--blue); }
.footer-contact { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.footer-bottom { background: #0f1216; padding: 20px 24px; }
.footer-bottom .container { max-width: 1200px; margin: 0 auto; }
.footer-copy { font-size: 0.9rem; color: var(--text-muted); }

/* Floating login button */
.help-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(91, 156, 244, 0.35);
  z-index: 30;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.help-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 156, 244, 0.45);
  color: var(--white);
  background: var(--blue-hover);
}

/* Login modal */
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.login-modal {
  background: radial-gradient(circle at top left, rgba(91, 156, 244, 0.18), transparent 55%), #13161d;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  padding: 24px 24px 20px;
  max-width: 420px;
  width: 100%;
}
.login-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.login-text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-label span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.login-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b0f16;
  color: var(--text);
  font-size: 0.95rem;
}
.login-input::placeholder {
  color: var(--text-muted);
}
.login-submit {
  margin-top: 6px;
  width: 100%;
}
.login-error {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.login-error a {
  color: var(--blue);
}
.login-close {
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.login-close:hover {
  color: var(--text);
}

/* 403 page (subdomains) */
.page-403 { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.err-wrap {
  position: relative;
  text-align: center;
  max-width: 480px;
  padding: 48px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-big);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.err-wrap .hero-blob-1 { width: 200px; height: 200px; top: -80px; right: -60px; }
.err-wrap .hero-blob-2 { width: 140px; height: 140px; bottom: -40px; left: -40px; }
.err-inner { position: relative; z-index: 1; }
.err-code { font-size: 4rem; font-weight: 800; color: var(--blue); margin: 0 0 8px; line-height: 1; letter-spacing: -.04em; }
.err-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.err-text { font-size: 0.95rem; color: var(--text-muted); margin: 0 0 24px; line-height: 1.5; }
.err-footer { font-size: 0.85rem; color: var(--text-muted); margin: 24px 0 0; }
.err-footer a { color: var(--blue); }

/* Responsive */
@media (max-width: 900px) {
  .cards-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.85rem; }
  .nav-pill { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .nav-pill-link { padding: 8px 14px; font-size: 0.9rem; }
  .hero-cta { flex-direction: column; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-right { width: 100%; flex-wrap: wrap; }
  .newsletter-input { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
