:root {
  --deep: #042f2e;
  --deep-2: #063f3c;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-light: #5eead4;
  --gold: #f5b83d;
  --gold-dark: #e0a01a;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f7f8;
  --panel: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(4, 47, 46, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.015em; }
section { padding: 5.5rem 0; }

.kicker {
  display: block; text-align: center; color: var(--brand); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7rem;
}
h2.section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); text-align: center; margin-bottom: .7rem; }
p.section-lead { text-align: center; color: var(--muted); max-width: 660px; margin: 0 auto 3.2rem; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.35rem; border-radius: 10px; font-weight: 650; font-size: .95rem; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }
.btn-sm { padding: .5rem 1rem; font-size: .86rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 118, 110, .6); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-gold { background: var(--gold); color: #3b2a00; box-shadow: 0 8px 20px -8px rgba(245, 184, 61, .75); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-2); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: #f0fdfa; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Top navigation ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.topnav.scrolled {
  background: rgba(4, 47, 46, .94); backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.12rem; letter-spacing: .01em; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 1.2rem; overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { color: rgba(255, 255, 255, .82); font-size: .93rem; font-weight: 550; transition: color .15s ease; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-signin-mobile { display: none; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; padding: .2rem .4rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 8.5rem 0 6rem; color: #fff; overflow: hidden; background: var(--deep); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* the design shown until (or instead of) uploaded pictures */
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(94, 234, 212, .22), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(245, 184, 61, .14), transparent 60%),
    linear-gradient(135deg, #042f2e 0%, #0b4a45 55%, #0f766e 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000, transparent);
}
.hero-bg.has-images::after { display: none; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 30, 28, .92) 0%, rgba(4, 40, 38, .72) 48%, rgba(4, 40, 38, .38) 100%),
    linear-gradient(0deg, rgba(4, 30, 28, .55), transparent 40%);
}
.hero-bg:not(.has-images) .hero-overlay { background: none; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.eyebrow {
  display: inline-block; padding: .38rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); background: rgba(245, 184, 61, .12); border: 1px solid rgba(245, 184, 61, .4); margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .84); max-width: 590px; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.hero-points li::before { content: "✔"; color: var(--brand-light); margin-right: .45rem; font-weight: 700; }

/* preview card */
.hero-visual { position: relative; display: flex; justify-content: center; }
.preview-card {
  width: 100%; max-width: 400px; padding: 1.2rem 1.3rem 1.3rem; border-radius: 20px; color: #e6fffb;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.preview-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.d1 { background: #fb7185; } .d2 { background: #fbbf24; } .d3 { background: #4ade80; }
.preview-title { margin-left: .5rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.preview-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); font-size: .92rem; }
.preview-row span { opacity: .7; }
.preview-flow { display: flex; align-items: center; gap: .3rem; margin: 1.1rem 0 .9rem; flex-wrap: nowrap; }
.pf { font-size: .68rem; font-weight: 700; padding: .28rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.pf.done { background: rgba(94, 234, 212, .22); color: var(--brand-light); }
.pf.now { background: var(--gold); color: #3b2a00; }
.preview-flow i { flex: 1; height: 2px; min-width: 6px; background: rgba(94, 234, 212, .5); }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pill-ok { font-size: .8rem; font-weight: 700; color: #052e2b; background: var(--brand-light); padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.preview-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.preview-bar b { display: block; width: 88%; height: 100%; background: linear-gradient(90deg, var(--brand-light), var(--gold)); border-radius: 6px; }
.float-chip {
  position: absolute; display: flex; flex-direction: column; padding: .6rem .95rem; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5); line-height: 1.2;
}
.float-chip strong { font-size: 1.25rem; color: var(--brand); }
.float-chip span { font-size: .72rem; color: var(--muted); }
.chip-a { left: -7%; bottom: -7%; animation: floaty 6s ease-in-out infinite .6s; }
.chip-b { right: -3%; top: -6%; animation: floaty 8s ease-in-out infinite 1.2s; }

.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .25s ease, background .25s ease; }
.hero-dots button.active { width: 28px; border-radius: 6px; background: var(--gold); }

/* ---------- Stats band ---------- */
.stats-band { padding: 0; background: #fff; position: relative; z-index: 3; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -3rem; background: #fff; border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(4, 47, 46, .45); border: 1px solid var(--line);
}
.stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------- Portals ---------- */
.portals { background: #fff; padding-top: 6rem; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.portal-card {
  position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(4, 47, 46, .35); }
.portal-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.portal-card.admin::before { background: linear-gradient(90deg, #1e293b, var(--gold)); }
.portal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.portal-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: #ecfdf5; font-size: 1.7rem; }
.portal-card.admin .portal-icon { background: #fef6e0; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: #ecfdf5; padding: .3rem .7rem; border-radius: 999px; }
.portal-card.admin .tag { color: #92660a; background: #fef6e0; }
.portal-card h3 { font-size: 1.45rem; }
.portal-card .desc { color: var(--muted); margin: 0 0 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.ticks li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.portal-card .actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.portal-card .actions .btn { flex: 1; }

/* ---------- Features ---------- */
.features { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature-card {
  padding: 1.7rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b6e3dd; }
.feature-card .icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border-radius: 13px; background: linear-gradient(135deg, #ecfdf5, #d5f5ee); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.updates { background: #fff; }

/* ---------- Explore (home page: links out to the rest of the site) ---------- */
.explore { background: #fff; }
.explore-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.explore-card {
  display: block; padding: 1.7rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b6e3dd; }
.explore-card .icon { display: block; font-size: 1.6rem; margin-bottom: .8rem; }
.explore-card h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.explore-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- How it works ---------- */
.steps { background: #fff; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; position: relative; }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step .num {
  width: 60px; height: 60px; margin: 0 auto 1.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #14a394); box-shadow: 0 10px 22px -8px rgba(15, 118, 110, .6);
  position: relative; z-index: 1;
}
.step:not(:last-child)::after { content: ""; position: absolute; top: 30px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px; background: repeating-linear-gradient(90deg, #99d5cd 0 8px, transparent 8px 16px); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.workflow-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin-top: 3.4rem; padding: 1.3rem; border-radius: var(--radius); background: var(--soft); }
.wf-pill { padding: .5rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 650; font-size: .9rem; color: var(--ink); }
.wf-pill.final { background: var(--brand); border-color: var(--brand); color: #fff; }
.wf-arrow { color: var(--brand); font-weight: 800; }

/* ---------- Call to action ---------- */
.cta-band { position: relative; padding: 6rem 0; color: #fff; overflow: hidden; text-align: center; background: var(--deep); }
.cta-bg { position: absolute; inset: 0; background: linear-gradient(120deg, #042f2e, #0f766e); background-size: cover; background-position: center; }
.cta-bg.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 30, 28, .78), rgba(4, 47, 46, .88)); }
.cta-inner { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: rgba(255, 255, 255, .84); max-width: 560px; margin: 0 auto 2rem; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; max-width: 980px; margin: 0 auto; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.contact-card .icon { flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; font-size: 1.35rem; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .15); }
.contact-card h4 { margin: 0 0 .15rem; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.contact-card a { color: var(--brand); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--deep); color: rgba(255, 255, 255, .72); padding: 3.6rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { margin-bottom: .8rem; }
.footer-blurb { max-width: 300px; font-size: .92rem; margin: 0; }
footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
footer a:hover { color: var(--brand-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-version { font-size: .76rem; color: rgba(255, 255, 255, .45); margin-top: .5rem; }
.footer-version:empty { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .chip-a { left: 0; }
  .chip-b { right: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.5rem 1.2rem;
    background: rgba(4, 47, 46, .98); display: none; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links .nav-signin-mobile { display: inline-flex; margin-top: .9rem; border: 0; color: #3b2a00; }
  .topnav.menu-open { background: rgba(4, 47, 46, .98); }
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .hero { padding: 7rem 0 5rem; }
  .feature-grid, .step-grid, .explore-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .stat strong { font-size: 1.7rem; }
  .float-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preview-card, .float-chip, .hero-slide.active { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: none; }
}
