:root{
  --bg: #62bfe0;
  --ink: #07121a;
  --ink-2: rgba(7,18,26,.78);
  --card: rgba(255,255,255,.86);
  --stroke: rgba(7,18,26,.14);
  --shadow: 0 18px 40px rgba(7,18,26,.18);
  --radius: 18px;
  --radius-2: 26px;
  --max: 1120px;

  /* Shrinking header ranges (JS interpolates these) */
  --topbar-pad-min: 14px;
  --topbar-pad-max: 28px;

  --logo-min: 48px;
  --logo-max: 76px;

  --name-min: 18px;
  --name-max: 28px;

  --tagline-min: 13px;
  --tagline-max: 15px;

  --nav-min: 14px;
  --nav-max: 16px;

  /* Default values (start big; JS will also set on load) */
  --topbar-pad: var(--topbar-pad-max);
  --logo: var(--logo-max);
  --name: var(--name-max);
  --tagline: var(--tagline-max);
  --nav: var(--nav-max);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);

  /* Subtle vertical gradient using your base color */
  background: linear-gradient(
    180deg,
    #7ad0ea 0%,
    #62bfe0 38%,
    #58b7da 100%
  );
  min-height: 100vh;
}

a{ color: inherit; }
img{ display: block; max-width: 100%; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(98,191,224,.55);
  border-bottom: 1px solid var(--stroke);
  transition: box-shadow .2s ease, background .2s ease;
}
.topbar.is-scrolled{
  box-shadow: 0 10px 30px rgba(7,18,26,.10);
  background: rgba(98,191,224,.72);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: var(--topbar-pad) 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}
.brand__logo{
  width: var(--logo);
  height: var(--logo);
  border-radius: 14px;
  background: rgba(255,255,255,.35);
  padding: 8px;
  box-shadow: 0 10px 18px rgba(7,18,26,.12);
  flex: 0 0 auto;
}
.brand__text{
  min-width: 0;
}
.brand__name{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: var(--name);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tagline{
  font-size: var(--tagline);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.nav{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__link{
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: var(--nav);
}
.nav__link:hover{
  background: rgba(255,255,255,.35);
  border-color: rgba(7,18,26,.12);
}
.nav__link--ghost{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.35);
}
.nav__link.is-active{
  background: rgba(255,255,255,.45);
  border-color: rgba(7,18,26,.12);
}

/* Hero */
.hero{
  position: relative;
  padding: 56px 0 24px;
}
.hero__inner{
  display: block;
}
.hero__copy{
  max-width: 74ch;
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.lead{
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 68ch;
}

.hero__cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__chips{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip{
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.38);
}

.hero__jumpcard{
  margin-top: 18px;
  padding: 18px;
}

.hero__fade{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 110px;
  background: linear-gradient(to bottom, rgba(98,191,224,0), rgba(98,191,224,1));
  pointer-events: none;
}

/* Cards / panels */
.card, .panel{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow);
}
.card{
  padding: 18px;
}
.card__title{
  font-weight: 900;
  font-size: 16px;
}
.card__desc{
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
}

.jump{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.jump__item{
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(7,18,26,.10);
}
.jump__item:hover{
  background: rgba(255,255,255,.62);
}
.jump__label{
  display: block;
  font-weight: 900;
}
.jump__hint{
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

/* Sections */
.section{
  padding: 46px 0;
}
.section--tight{
  padding: 34px 0 60px;
}
.section__header{
  margin-bottom: 18px;
}
.section__header h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.4px;
}
.section__header p{
  margin: 6px 0 0;
  color: var(--ink-2);
  font-weight: 750;
}

.panel{
  padding: 20px;
}
.panel--accent{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
}
.panel h3{
  margin: 0 0 10px;
  font-size: 18px;
}
.panel p{
  margin: 0 0 10px;
  color: var(--ink-2);
  line-height: 1.6;
}
.panel__actions{
  margin-top: 14px;
}

.spacer{ height: 16px; }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
  line-height: 1.7;
}
.list--compact li{ margin: 6px 0; }

.cards{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.mini{
  border-radius: 18px;
  border: 1px solid rgba(7,18,26,.10);
  background: rgba(255,255,255,.52);
  padding: 12px;
}
.mini__title{
  font-weight: 900;
  margin-bottom: 4px;
}
.mini__text{
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.callout{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(7,18,26,.10);
}
.callout__title{
  font-weight: 900;
  margin-bottom: 8px;
}

.link{
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muted{ color: var(--ink-2); }
.small{ font-size: 13px; }

/* Buttons */
.btn{
  appearance: none;
  border: 1px solid rgba(7,18,26,.18);
  background: rgba(7,18,26,.92);
  color: white;
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover{ background: rgba(7,18,26,1); }

.btn--secondary{
  background: rgba(255,255,255,.55);
  color: var(--ink);
  border-color: rgba(7,18,26,.14);
}
.btn--secondary:hover{
  background: rgba(255,255,255,.78);
}

/* Footer */
.footer{
  padding: 26px 0 36px;
  border-top: 1px solid rgba(7,18,26,.12);
  background: rgba(98,191,224,.35);
}
.footer__inner{
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer__brand{
  font-weight: 950;
}
.footer__muted{
  color: var(--ink-2);
  font-size: 13px;
  margin-top: 4px;
}
.footer__right{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__link{
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.footer__link:hover{
  background: rgba(255,255,255,.35);
  border-color: rgba(7,18,26,.10);
}


/* Make header/footer buttons look like links */
.nav__btn{
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 120;
}
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(7,18,26,.45);
  backdrop-filter: blur(4px);
}
.modal__dialog{
  position: relative;
  width: min(760px, calc(100% - 32px));
  margin: 80px auto 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(7,18,26,.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal__header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(7,18,26,.10);
}
.modal__title{
  font-weight: 950;
  font-size: 18px;
}
.modal__subtitle{
  color: var(--ink-2);
  font-weight: 750;
  font-size: 13px;
  margin-top: 4px;
}
.modal__close{
  appearance: none;
  border: 1px solid rgba(7,18,26,.14);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-weight: 900;
}
.modal__close:hover{
  background: rgba(255,255,255,.85);
}
.modal__body{
  padding: 16px;
  color: var(--ink-2);
  line-height: 1.6;
}
.modal__body h3{
  color: var(--ink);
  margin: 14px 0 8px;
  font-size: 16px;
}
.modal__actions{
  margin-top: 14px;
}

@media (max-width: 460px){
  .modal__dialog{
    margin: 56px auto 16px;
  }
}

/* Cookie banner */
.cookie{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
}
.cookie__inner{
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(7,18,26,.14);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.cookie__text p{
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}
.cookie__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Mobile polish */
@media (max-width: 820px){
  .topbar__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav{
    justify-content: flex-start;
  }
  .brand__name, .brand__tagline{
    white-space: normal;
  }
}

@media (max-width: 460px){
  .container{ padding: 0 16px; }
  .cookie__inner{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie__actions{
    justify-content: flex-end;
  }
}
