:root {
  --bg: #050914;
  --bg-soft: #0a1324;
  --panel: rgba(12, 23, 42, 0.78);
  --panel-strong: #0d182b;
  --line: rgba(147, 197, 253, 0.18);
  --text: #f7fbff;
  --muted: #9fb1c8;
  --blue: #2f80ff;
  --blue-2: #62d4ff;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

.hidden { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 128, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(98, 212, 255, 0.12), transparent 32rem),
    linear-gradient(180deg, #050914 0%, #07101d 52%, #050914 100%);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

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

button {
  font: inherit;
}

button.link-button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 9, 20, 0.76);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #6ed8ff 48%, #1e6dff);
  color: #031021;
  font-weight: 900;
  box-shadow: 0 0 38px rgba(47, 128, 255, 0.36);
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 15px;
}

.brand small,
.footer-brand p {
  color: var(--muted);
  margin: 3px 0 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #dce8f8;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.link-button:hover {
  transform: translateY(-2px);
}

.link-button.primary {
  color: #031021;
  background: linear-gradient(135deg, #ffffff, #6ed8ff 42%, #2f80ff);
  box-shadow: 0 18px 42px rgba(47, 128, 255, 0.28);
}

.link-button.secondary {
  color: var(--white);
  border-color: rgba(98, 212, 255, 0.42);
  background: rgba(47, 128, 255, 0.12);
}

.link-button.ghost {
  color: #dce8f8;
  background: rgba(255, 255, 255, 0.04);
}

.link-button.large {
  min-height: 52px;
  padding: 0 22px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px) 84px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(98, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 62% 40%, #000, transparent 68%);
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-2);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

h3 {
  font-size: 20px;
}

.hero-copy {
  max-width: 760px;
  color: #c6d5e8;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.62;
  margin: 24px 0 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 34px;
}

.hero-metrics article,
.service-card,
.advantage-grid span,
.why,
.cta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 43, 0.92), rgba(8, 16, 31, 0.76));
  box-shadow: var(--shadow);
}

.hero-metrics article {
  border-radius: 8px;
  padding: 16px;
}

.hero-metrics strong {
  display: block;
  font-size: 22px;
}

.hero-metrics span,
p {
  color: var(--muted);
}

.hero-visual {
  border: 1px solid rgba(98, 212, 255, 0.22);
  border-radius: 12px;
  padding: 16px;
  background: rgba(9, 18, 34, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52), 0 0 80px rgba(47, 128, 255, 0.16);
}

.hero-visual img,
.why-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.intro p,
.why p {
  margin: 0;
  font-size: 17px;
  line-height: 1.74;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading.compact {
  max-width: 920px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(98, 212, 255, 0.18), transparent 16rem);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(98, 212, 255, 0.48);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card p {
  margin: 0;
  line-height: 1.6;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #62d4ff);
  font-weight: 900;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.advantage-grid span {
  border-radius: 8px;
  padding: 18px;
  font-weight: 850;
}

.why {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 12px;
  padding: clamp(22px, 4vw, 44px);
}

.why-visual {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #071020;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.proof-list span {
  border-left: 3px solid var(--blue-2);
  padding: 10px 0 10px 14px;
  color: #dce8f8;
  background: rgba(255, 255, 255, 0.03);
}

.cta {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 12px;
  padding: clamp(24px, 5vw, 48px);
}

.cta h2 {
  max-width: 760px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding: 44px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030711;
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 10px 0;
}

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

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(1, 5, 12, 0.76);
  backdrop-filter: blur(16px);
}

.auth-modal.open {
  display: grid;
}

.auth-dialog {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid rgba(98, 212, 255, 0.28);
  border-radius: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 8%, rgba(98, 212, 255, 0.16), transparent 18rem),
    #071020;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.68), 0 0 70px rgba(47, 128, 255, 0.18);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs button.active {
  color: #06101f;
  background: linear-gradient(135deg, #ffffff, #62d4ff);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050b15;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(98, 212, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.18);
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--blue-2);
}

.copyright {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .mobile-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .main-nav.open,
  .header-actions.open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 10px;
  }

  .main-nav.open a,
  .header-actions.open a {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero,
  .intro,
  .why,
  .cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .hero-metrics,
  .service-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    width: 100%;
  }

  .link-button {
    width: 100%;
  }
}
