:root {
  --bg: #07111f;
  --bg-soft: #0d1a2c;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #f3f7ff;
  --muted: #afbed4;
  --primary: #2d7fff;
  --primary-2: #54b7ff;
  --border: rgba(132, 181, 255, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(45,127,255,0.16), transparent 30%),
    radial-gradient(circle at left center, rgba(84,183,255,0.12), transparent 22%),
    linear-gradient(180deg, #07111f, #050c16 65%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-shell { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 29, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-logo {
  width: min(290px, 34vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.16));
}
.brand-copy { min-width: 0; }
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: var(--muted); margin-top: 0.15rem; }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  padding: 0.45rem 0.2rem;
  color: #d7e7ff;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { color: white; border-bottom-color: var(--primary-2); }
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: white;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
}

.hero, .page-hero {
  position: relative;
  padding: 5.5rem 0 4rem;
}
.page-hero.small { padding: 4.5rem 0 2rem; }
.hero-grid, .split-grid, .contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy h1, .page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.02;
  margin: 0.6rem 0 1rem;
  letter-spacing: -0.04em;
}
.hero-copy p, .page-hero p, .section-heading p, .service-card p, .info-card p, .contact-copy p, .cta-box p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-block;
  color: #8ed2ff;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
}
.hero-actions, .cta-box { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 18px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 14px 40px rgba(45, 127, 255, 0.35);
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: white;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card, .mini-panel, .service-card, .info-card, .form-card, .cta-box, .hero-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 1rem;
  border-radius: 18px;
}
.stat-card strong { display: block; font-size: 1.2rem; }
.stat-card span { color: var(--muted); font-size: 0.9rem; }
.hero-panel {
  padding: 1.2rem;
  border-radius: 32px;
  position: relative;
}
.mini-panel {
  padding: 1.4rem;
  border-radius: 24px;
  margin-bottom: 1rem;
}
.mini-panel.offset { transform: translateX(2.2rem); }
.float-card { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 153, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 153, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15));
}
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.65;
}
.orb-1 { width: 260px; height: 260px; right: 7%; top: 8%; background: rgba(45,127,255,0.22); }
.orb-2 { width: 200px; height: 200px; left: 6%; bottom: 10%; background: rgba(84,183,255,0.18); }

.section { padding: 4.5rem 0; }
.alt-section { background: rgba(255,255,255,0.025); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.section-heading h2, .split-grid h2, .cta-box h2, .contact-copy h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}
.card-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card, .info-card, .form-card, .cta-box { border-radius: var(--radius); }
.service-card, .info-card, .form-card { padding: 1.6rem; }
.service-card ul, .check-list, .site-footer ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: #dbe8fa;
}
.service-card li, .check-list li, .site-footer li { margin-bottom: 0.6rem; }
.stack-cards { display: grid; gap: 1rem; }
.info-card.emphasis { padding: 2rem; }
.icon-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45,127,255,0.18), rgba(84,183,255,0.16));
  color: #b7deff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-box { justify-content: space-between; padding: 2rem; }
.contact-layout { align-items: start; }
.form-card label { display: block; margin-bottom: 1rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
input, select, textarea {
  width: 100%;
  margin-top: 0.45rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: white;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
}
textarea { resize: vertical; }

select {
  background-color: rgba(255,255,255,0.05);
  color: white;
}
select option {
  background: #0b1728;
  color: white;
}
.custom-select {
  position: relative;
  margin-top: 0.45rem;
}
.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: white;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.custom-select-trigger:hover {
  border-color: rgba(84,183,255,0.32);
}
.custom-select-trigger:focus-visible,
.custom-select.open .custom-select-trigger {
  outline: 2px solid rgba(84,183,255,0.25);
  border-color: rgba(84,183,255,0.45);
  box-shadow: 0 0 0 4px rgba(84,183,255,0.08);
}
.custom-select-chevron {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #9dc9ff;
  border-bottom: 2px solid #9dc9ff;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  margin-right: 0.25rem;
}
.custom-select.open .custom-select-chevron {
  transform: rotate(-135deg) translateY(-1px);
}
.custom-select-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  padding: 0.5rem;
  border-radius: 18px;
  border: 1px solid rgba(132, 181, 255, 0.22);
  background: rgba(7, 17, 31, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}
.custom-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #eef5ff;
  font: inherit;
  text-align: left;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: rgba(84,183,255,0.14);
  color: white;
  outline: none;
}
.custom-select-option.is-selected {
  background: linear-gradient(135deg, rgba(45,127,255,0.25), rgba(84,183,255,0.16));
  color: white;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(84,183,255,0.25);
  border-color: rgba(84,183,255,0.45);
}
.form-note { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.alert {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert.success { background: rgba(49, 178, 120, 0.16); border: 1px solid rgba(84, 207, 149, 0.25); }
.alert.error { background: rgba(239, 68, 68, 0.16); border: 1px solid rgba(248, 113, 113, 0.25); }
.alert.warning { background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(251, 191, 36, 0.28); color: #fff3cd; }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: rgba(3, 10, 20, 0.8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding: 2.2rem 0 1rem;
}
.footer-grid h3, .footer-grid h4 { margin-top: 0; }
.footer-grid p, .footer-grid li, .footer-bottom { color: var(--muted); line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fade-up { animation: fadeUp 0.9s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(22px); transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

code {
  background: rgba(255,255,255,0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .hero-grid, .split-grid, .contact-layout, .footer-grid, .card-grid.three, .stats-row { grid-template-columns: 1fr; }
  .mini-panel.offset { transform: none; }
  .cta-box, .footer-bottom { flex-direction: column; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--border);
    background: rgba(6, 15, 29, 0.98);
    border-radius: 20px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero, .page-hero { padding-top: 4rem; }
  .brand { gap: 0.6rem; }
  .brand-logo { width: min(240px, 58vw); }
  .brand small { display: none; }
}

.hero-logo-card {
  display: grid;
  place-items: center;
  padding: 1rem 1.2rem 1.35rem;
  margin-bottom: 0.8rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
}
.hero-logo-card img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}


.notice.warning { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); color: #fcd34d; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }
.narrow-container { max-width: 820px; }
.thank-you-panel { text-align: left; }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.compact-list li { margin-bottom: 0.65rem; }

/* Logo blend upgrade: use transparent logo asset and dark/glass treatment */
.site-header {
  background:
    linear-gradient(180deg, rgba(3, 12, 24, 0.94), rgba(3, 12, 24, 0.82));
}
.nav-wrap {
  padding: 0.72rem 0;
}
.brand {
  min-width: 0;
  padding: 0.15rem 0;
}
.brand-logo {
  width: clamp(220px, 24vw, 360px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(84,183,255,0.22)) drop-shadow(0 8px 18px rgba(0,0,0,0.25));
  opacity: 0.98;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 0 18px rgba(84,183,255,0.34)) drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.hero-panel {
  background:
    linear-gradient(180deg, rgba(10, 29, 52, 0.70), rgba(4, 13, 25, 0.86));
  border-color: rgba(84, 183, 255, 0.22);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-logo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(84, 183, 255, 0.34);
  background:
    radial-gradient(circle at 18% 20%, rgba(84,183,255,0.16), transparent 32%),
    linear-gradient(135deg, rgba(4, 16, 31, 0.90), rgba(8, 38, 70, 0.54));
  box-shadow:
    0 0 0 1px rgba(45,127,255,0.10),
    0 18px 44px rgba(0,0,0,0.26),
    inset 0 0 38px rgba(45,127,255,0.09);
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(84,183,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84,183,255,0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.7;
}
.hero-logo-card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84,183,255,0.75), transparent);
}
.hero-logo-card img {
  position: relative;
  z-index: 1;
  width: min(520px, 92%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(84,183,255,0.22)) drop-shadow(0 10px 22px rgba(0,0,0,0.30));
}
.mini-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
}
@media (max-width: 640px) {
  .brand-logo { width: min(260px, 68vw); }
  .hero-logo-card { min-height: 104px; padding: 1rem; }
}
