:root {
  --ink: #102332;
  --muted: #617484;
  --line: rgba(68, 113, 138, .18);
  --blue: #49a7ff;
  --deep: #1f6f9f;
  --mint: #55d6be;
  --coral: #ff8f70;
  --paper: rgba(255,255,255,.78);
  --shadow: 0 24px 70px rgba(31, 111, 159, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(85,214,190,.24), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(73,167,255,.28), transparent 30rem),
    linear-gradient(135deg, #f8fcff 0%, #eef8ff 48%, #fff8f5 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(31,111,159,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(31,111,159,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 34px rgba(31,111,159,.1);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--deep), var(--mint));
  box-shadow: 0 12px 28px rgba(31,111,159,.25);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 10px 12px; border-radius: 8px; color: #315064; font-size: 14px; }
.site-nav a:hover { background: rgba(73,167,255,.1); color: var(--deep); }
.nav-cta { border: 1px solid var(--line); background: white; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--deep); font-weight: 800; }
.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 0;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr .84fr;
  gap: 44px;
  align-items: center;
}
.eyebrow { color: var(--deep); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: .98; letter-spacing: 0; margin: 14px 0 22px; }
.hero p { color: var(--muted); font-size: 19px; line-height: 1.75; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
}
.btn.primary { color: white; border-color: transparent; background: linear-gradient(135deg, var(--deep), var(--blue)); box-shadow: 0 18px 40px rgba(31,111,159,.22); }
.btn.ghost { color: var(--deep); background: rgba(255,255,255,.78); }
.hero-orbit { position: relative; min-height: 520px; perspective: 1200px; }
.glass-stack {
  position: absolute;
  inset: 70px 30px 60px 30px;
  transform: rotateX(56deg) rotateZ(-32deg);
  transform-style: preserve-3d;
}
.glass-stack span {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(220,245,255,.48));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.glass-stack span:nth-child(2) { transform: translateZ(54px) translate(38px, -20px); background: linear-gradient(135deg, rgba(144,213,255,.72), rgba(255,255,255,.5)); }
.glass-stack span:nth-child(3) { transform: translateZ(108px) translate(76px, -40px); background: linear-gradient(135deg, rgba(85,214,190,.58), rgba(255,255,255,.68)); }
.metric-card {
  position: absolute;
  z-index: 2;
  width: 190px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: float 5s ease-in-out infinite;
}
.metric-card.one { top: 54px; left: 10px; }
.metric-card.two { right: 4px; bottom: 70px; animation-delay: -1.5s; }
.metric-card strong { display: block; font-size: 36px; color: var(--deep); }
.metric-card span { color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.band, .grid-section, .content-page, .contact-panel, .stats, .site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 84px auto 0;
}
.band {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.band h2, .grid-section h2, .contact-panel h2, .content-page h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; margin-bottom: 18px; }
.band p, .feature-card p, .quote-card span, .detail p { color: var(--muted); line-height: 1.7; }
.card-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .quote-card, .pricing-grid article, .portfolio-grid article, .admin-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(31,111,159,.11);
  backdrop-filter: blur(18px);
}
.feature-card::before, .pricing-grid article::before, .portfolio-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0), rgba(73,167,255,.18), transparent 17rem);
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-card:hover::before, .pricing-grid article:hover::before, .portfolio-grid article:hover::before { opacity: 1; }
.feature-card { padding: 28px; min-height: 250px; transform: translateY(0); transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(31,111,159,.18); }
.feature-card span { font-size: 34px; color: var(--deep); }
.feature-card h3, .pricing-grid h3 { margin: 18px 0 10px; font-size: 22px; }
.feature-card a { color: var(--deep); font-weight: 800; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portfolio-grid article img { width: 100%; aspect-ratio: 1.35; object-fit: cover; background: #dff4ff; }
.portfolio-grid article div { padding: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats div { padding: 28px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(235,249,255,.72)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stats strong { display: block; font-size: 38px; color: var(--deep); }
.stats span { color: var(--muted); }
.timeline div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline span, .check-list span {
  display: block;
  padding: 16px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 750;
}
.check-list { display: grid; gap: 12px; }
.pricing-grid article { padding: 28px; }
.pricing-grid article.popular { border-color: rgba(255,143,112,.5); box-shadow: 0 24px 70px rgba(255,143,112,.18); }
.pricing-grid strong { display: block; margin: 16px 0 4px; font-size: 36px; color: var(--deep); }
.pricing-grid small { color: var(--muted); }
.pricing-grid ul { padding-left: 18px; color: #34576c; line-height: 1.9; }
.quote-card { padding: 26px; }
.quote-card p { font-size: 18px; line-height: 1.7; }
.quote-card strong { display: block; margin-bottom: 4px; }
.faq { display: block; }
details { padding: 18px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 850; }
.contact-panel {
  padding: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31,111,159,.94), rgba(73,167,255,.78));
  color: white;
  box-shadow: var(--shadow);
}
.contact-panel p { color: rgba(255,255,255,.82); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid textarea, .form-grid .summary-box, .form-grid button { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #34576c; font-weight: 750; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(68,113,138,.22);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  outline: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(73,167,255,.12); }
.contact-panel label, .contact-panel input, .contact-panel textarea { color: var(--ink); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 46px;
  color: var(--muted);
}
.site-footer div:last-child { display: grid; gap: 8px; text-align: right; }
.toast, .alert {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: #e9fff7;
  border: 1px solid rgba(85,214,190,.38);
  color: #175948;
}
.alert.danger, .toast.danger { background: #fff1ed; border-color: rgba(255,143,112,.45); color: #943d27; }
.content-page { min-height: 60vh; }
.detail {
  padding: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.rich { color: #315064; line-height: 1.85; }
.install-body, .auth-body { display: grid; place-items: center; padding: 28px; }
.install-shell, .portal-login { width: min(980px, 100%); }
.install-panel, .auth-card {
  padding: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.auth-card { width: min(440px, 100%); margin: auto; display: grid; gap: 14px; }
.portal-login { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.steps { display: flex; gap: 8px; margin: 18px 0 24px; }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: white; border: 1px solid var(--line); color: var(--muted); }
.steps .active { background: var(--deep); color: white; }
.summary-box { padding: 18px; border-radius: 8px; background: rgba(73,167,255,.1); color: var(--deep); }
@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 62px 0 auto 0; padding: 12px; border-radius: 8px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .hero, .band { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-orbit { min-height: 420px; }
  .card-grid, .pricing-grid, .portfolio-grid, .stats, .timeline div, .portal-login { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
  .site-footer div:last-child { text-align: left; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 42px; }
  .hero-orbit { display: none; }
  .band, .contact-panel, .detail, .install-panel, .auth-card { padding: 24px; }
}
