:root {
  --navy: #052b60;
  --navy-2: #0b376f;
  --blue: #087fc4;
  --cyan: #18a8de;
  --sky: #eaf7fe;
  --ink: #13223a;
  --muted: #64748b;
  --line: #dce8f2;
  --surface: #ffffff;
  --background: #f3f8fc;
  --success: #1ebf73;
  --shadow: 0 16px 42px rgba(5, 43, 96, .12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; width: 1.25em; height: 1.25em; }

.app-shell { max-width: 720px; min-height: 100vh; margin: 0 auto; background: var(--background); padding-bottom: calc(94px + var(--safe-bottom)); overflow: hidden; }

.hero {
  position: relative;
  min-height: 510px;
  padding: 26px 20px 38px;
  color: white;
  background:
    radial-gradient(circle at 16% 6%, rgba(24,168,222,.48), transparent 34%),
    linear-gradient(150deg, #032654 0%, #07447d 52%, #078ec8 100%);
  border-radius: 0 0 42px 42px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -32% 25%;
  height: 310px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  transform: rotate(-15deg);
}
.hero-shape { position: absolute; border-radius: 999px; background: rgba(255,255,255,.08); filter: blur(.2px); }
.hero-shape-one { width: 190px; height: 190px; right: -72px; top: 92px; }
.hero-shape-two { width: 130px; height: 130px; left: -46px; bottom: 38px; }
.brand-card { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.main-logo {
  width: min(340px, 88vw);
  max-height: 175px;
  object-fit: contain;
  padding: 12px 20px;
  background: rgba(255,255,255,.98);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.eyebrow { margin: 24px 0 8px; font-size: .73rem; letter-spacing: .24em; font-weight: 850; color: #9fe6ff; }
h1 { margin: 0; font-size: clamp(2rem, 7.5vw, 3.25rem); line-height: .98; letter-spacing: -.045em; }
.hero-copy { max-width: 470px; margin: 18px auto 0; color: rgba(255,255,255,.82); font-size: 1rem; }
.hero-actions { width: min(100%, 500px); margin-top: 24px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.button { min-height: 54px; border: 0; border-radius: 16px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 850; cursor: pointer; }
.button-primary { color: var(--navy); background: white; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.button-secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); }
.icon-button { position: absolute; z-index: 4; right: 18px; top: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.10); color: white; cursor: pointer; backdrop-filter: blur(10px); }

main { padding: 0 16px; }
.quick-panel { position: relative; z-index: 5; margin: -20px 4px 0; padding: 10px; display: grid; gap: 8px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: var(--shadow); }
.quick-card { min-height: 68px; display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 15px; transition: transform .18s ease, background .18s ease; }
.quick-card:hover { background: var(--sky); transform: translateY(-1px); }
.quick-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--navy-2), var(--blue)); }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { font-size: .95rem; }
.quick-card small { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.arrow { color: #93a9bc; justify-self: center; }

.content-section { padding: 36px 4px 0; }
.compact-section { padding-top: 30px; }
.section-heading { margin: 0 3px 15px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-heading h2 { margin: 2px 0 0; color: var(--navy); font-size: 1.48rem; line-height: 1.1; letter-spacing: -.025em; }
.section-kicker { color: var(--blue); font-size: .69rem; font-weight: 900; letter-spacing: .16em; }
.section-symbol { color: var(--blue); font-size: 1.45rem; }
.link-grid { display: grid; gap: 11px; }
.link-card {
  position: relative;
  min-height: 78px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 48px 1fr 30px;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 24px rgba(5,43,96,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.link-card:hover { transform: translateY(-2px); border-color: #b5daef; box-shadow: 0 13px 34px rgba(5,43,96,.11); }
.link-card.featured { background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; border-color: transparent; }
.link-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--blue); background: var(--sky); }
.link-card.featured .link-icon { color: var(--navy); background: white; }
.link-text strong, .link-text small { display: block; }
.link-text strong { font-size: 1rem; line-height: 1.2; }
.link-text small { margin-top: 5px; color: var(--muted); line-height: 1.25; }
.link-card.featured .link-text small { color: rgba(255,255,255,.75); }
.link-arrow { color: #9bb0c3; }
.link-card.featured .link-arrow { color: white; }

.contact-section { padding: 38px 0 0; }
.contact-card { position: relative; overflow: hidden; padding: 22px 16px 18px; color: white; background: linear-gradient(150deg, #042957, #087fc4 72%, #12a8d9); border-radius: var(--radius-lg); box-shadow: 0 20px 48px rgba(5,43,96,.22); }
.contact-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -120px; top: -90px; border: 26px solid rgba(255,255,255,.07); border-radius: 50%; }
.contact-brand { position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; }
.contact-brand img { width: 86px; height: 86px; object-fit: contain; border-radius: 50%; padding: 8px; background: white; }
.contact-brand span { font-size: .67rem; font-weight: 900; letter-spacing: .16em; color: #9fe7ff; }
.contact-brand h2 { margin: 3px 0 4px; font-size: 1.5rem; }
.contact-brand p { margin: 0; color: rgba(255,255,255,.78); font-size: .88rem; }
.contact-list { position: relative; margin-top: 18px; display: grid; gap: 10px; }
.contact-link { min-height: 66px; display: grid; grid-template-columns: 43px 1fr 28px; gap: 11px; align-items: center; padding: 9px 11px; color: var(--ink); background: white; border-radius: 17px; box-shadow: 0 9px 24px rgba(0,0,0,.10); }
.contact-link.primary { background: #eafff3; }
.contact-link .contact-icon { width: 43px; height: 43px; border-radius: 13px; display: grid; place-items: center; color: white; background: var(--success); }
.contact-link strong, .contact-link small { display: block; }
.contact-link small { margin-top: 3px; color: var(--muted); }

.install-help { margin: 30px 0 0; padding: 19px; display: grid; grid-template-columns: 50px 1fr; gap: 14px; background: #e7f6fd; border: 1px solid #cceaf7; border-radius: 22px; }
.install-help-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(145deg, var(--navy), var(--blue)); }
.install-help h2 { margin: 0 0 7px; color: var(--navy); font-size: 1.15rem; }
.install-help p { margin: 5px 0; color: #466177; font-size: .88rem; line-height: 1.45; }

footer { padding: 38px 20px 18px; text-align: center; }
footer img { width: 180px; max-height: 76px; object-fit: contain; mix-blend-mode: multiply; }
footer p { margin: 12px 0 4px; color: var(--navy); font-size: .85rem; font-weight: 800; }
footer small { color: var(--muted); }

.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, 100%);
  height: calc(72px + var(--safe-bottom));
  padding: 8px 15px calc(8px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 35px rgba(5,43,96,.10);
  backdrop-filter: blur(16px);
}
.nav-item { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #7890a5; border-radius: 14px; font-size: 1.25rem; }
.nav-item small { font-size: .67rem; font-weight: 750; }
.nav-item.active { color: var(--blue); background: #ecf8fd; }
.nav-contact { color: white; background: linear-gradient(145deg, var(--navy), var(--blue)); }
.nav-contact.active { color: white; background: linear-gradient(145deg, var(--navy), var(--blue)); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translate(-50%, 18px); max-width: calc(100% - 38px); padding: 12px 16px; color: white; background: #10263e; border-radius: 13px; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; box-shadow: 0 12px 36px rgba(0,0,0,.22); font-size: .88rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 620px) {
  .hero { padding-inline: 44px; }
  main { padding-inline: 28px; }
  .quick-panel { grid-template-columns: repeat(3, 1fr); }
  .quick-card { grid-template-columns: 42px 1fr; }
  .quick-card .arrow { display: none; }
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .link-card.featured { grid-column: 1 / -1; }
  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (display-mode: standalone) {
  .install-help, .install-button { display: none !important; }
  .hero { padding-top: max(26px, env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
