:root {
  --ink: #0c1f24;
  --teal: #0d8a7c;
  --teal-deep: #044f48;
  --teal-mid: #06665c;
  --mint: #7fd9c7;
  --paper: #f3f7f6;
  --paper-2: #e4efec;
  --amber: #e8a317;
  --coral: #e85d4c;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(4, 79, 72, 0.22);
  --font: "Outfit", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(4, 79, 72, 0.88), rgba(4, 79, 72, 0));
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(127, 217, 199, 0.35);
}

.top nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.92;
}

.top nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(127, 217, 199, 0.28), transparent 55%),
    linear-gradient(165deg, #033833 0%, var(--teal-deep) 42%, #0a6b5f 78%, #0d8a7c 100%);
  animation: wash 14s ease-in-out infinite alternate;
}

@keyframes wash {
  from { filter: saturate(1); }
  to { filter: saturate(1.12) brightness(1.05); }
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-visual img {
  width: min(72vw, 560px);
  opacity: 0.22;
  transform: scale(1.05);
  animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1.05); }
  50% { transform: translateY(-14px) scale(1.08); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 7vh, 4rem);
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--mint);
}

.hero h1,
.auth h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: 1.08rem;
  color: rgba(243, 247, 246, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--mint);
  color: var(--teal-deep);
}

.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn.full {
  width: 100%;
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.section.tint {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.container.narrow {
  max-width: 40rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(12, 31, 36, 0.88);
}

.inline-links {
  margin-top: 1.25rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.foot {
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  border-top: 1px solid rgba(4, 79, 72, 0.12);
  font-size: 0.92rem;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(12, 31, 36, 0.7);
}

.foot a {
  color: inherit;
}

/* Login */
.auth-page {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(127, 217, 199, 0.35), transparent 50%),
    linear-gradient(180deg, #e8f4f1 0%, var(--paper) 45%, #dcece8 100%);
}

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6.5rem 1.25rem 2.5rem;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(4, 79, 72, 0.12);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.7s ease-out both;
}

.auth-panel .brand-mark {
  color: var(--teal);
  font-size: 2rem;
}

.auth-panel .lead {
  color: rgba(12, 31, 36, 0.75);
}

.auth-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.auth-form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(4, 79, 72, 0.22);
  border-radius: 0.55rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.auth-form input:focus {
  outline: 2px solid rgba(13, 138, 124, 0.45);
  outline-offset: 1px;
}

.auth-page .btn.ghost {
  color: var(--teal-deep);
  border-color: rgba(4, 79, 72, 0.28);
}

.auth-msg {
  min-height: 1.4em;
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--teal-mid);
}

.auth-msg.error {
  color: var(--coral);
}

.profile-dl {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.profile-dl div {
  display: grid;
  gap: 0.15rem;
}

.profile-dl dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(12, 31, 36, 0.55);
}

.profile-dl dd {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 720px) {
  .top nav a:not(.nav-cta) {
    display: none;
  }

  .hero-visual img {
    width: min(92vw, 420px);
    opacity: 0.16;
  }

  .hero-copy {
    align-self: end;
  }
}
