:root {
  --bg: #f5faff;
  --sky: #0ea5e9;
  --ocean: #0369a1;
  --text: #0f172a;
  --cloud: #e0f2fe;
  --card: #ffffff;
  --muted: #64748b;
  --accent: #22c55e;
  --line: #bae6fd;
  --soft-line: rgba(14, 165, 233, 0.18);
  --shadow: 0 24px 60px rgba(3, 105, 161, 0.14);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 15px;
  --container: 1120px;
  --font: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  background:
    radial-gradient(circle at 9% 10%, rgba(224, 242, 254, 0.9), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(34, 197, 94, 0.13), transparent 22%),
    linear-gradient(180deg, #f7fcff 0%, var(--bg) 46%, #eef8ff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(120deg, transparent 0 42%, rgba(14, 165, 233, 0.08) 43%, transparent 48%),
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.92) 0 36px, transparent 37px),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.74) 0 28px, transparent 29px),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.82) 0 40px, transparent 41px);
  pointer-events: none;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--soft-line);
  background: rgba(245, 250, 255, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: calc(100% - 40px);
  max-width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ocean), var(--sky));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24);
}

.brand span:last-child {
  display: grid;
  line-height: 1.18;
}

.brand strong {
  color: var(--text);
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocean);
  background: var(--cloud);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--ocean);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #ffffff;
}

main {
  overflow: hidden;
}

.hero {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin: 54px auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.weather-panel,
.about-card,
.goal-item,
.profile-card,
.log-card,
.summary-card {
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ocean);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.03;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.14;
}

h3 {
  color: var(--text);
  font-size: 1.08rem;
}

.hero-lead {
  margin-bottom: 12px;
  color: var(--ocean);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 26px;
  color: #40546b;
  overflow-wrap: anywhere;
}

.identity-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(120px, 0.58fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.identity-strip div,
.weather-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff, #f1faff);
}

.identity-strip div {
  min-width: 0;
  padding: 14px;
}

.identity-strip span,
.identity-strip strong {
  display: block;
}

.identity-strip span,
.weather-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.identity-strip strong,
.weather-stats strong {
  color: var(--text);
  font-weight: 800;
}

.hero-actions,
.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--ocean), var(--sky));
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.24);
}

.button.secondary,
.button.ghost {
  color: var(--ocean);
  border-color: var(--line);
  background: #ffffff;
}

.weather-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 560px;
  padding: 28px;
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(224, 242, 254, 0.92), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
  overflow: hidden;
  min-width: 0;
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-top strong,
.panel-top small {
  display: block;
}

.panel-top small {
  color: var(--muted);
}

.status-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.15);
}

.weather-map {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(3, 105, 161, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(3, 105, 161, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.86), rgba(224, 242, 254, 0.54));
  background-size: 36px 36px, 36px 36px, auto;
  overflow: hidden;
}

.isobar {
  position: absolute;
  border: 2px solid rgba(3, 105, 161, 0.24);
  border-radius: 50%;
}

.isobar.one {
  width: 260px;
  height: 150px;
  left: 42px;
  top: 74px;
  transform: rotate(-12deg);
}

.isobar.two {
  width: 330px;
  height: 184px;
  left: 92px;
  top: 122px;
  transform: rotate(12deg);
}

.isobar.three {
  width: 190px;
  height: 110px;
  right: 50px;
  top: 44px;
  transform: rotate(26deg);
}

.radar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(14, 165, 233, 0.94) 0 13px, transparent 14px),
    conic-gradient(from 35deg, rgba(34, 197, 94, 0.36), transparent 110deg);
  border: 2px solid rgba(14, 165, 233, 0.42);
}

.rain {
  position: absolute;
  width: 7px;
  height: 30px;
  border-radius: 99px;
  background: var(--sky);
  transform: rotate(18deg);
}

.rain.a {
  right: 92px;
  bottom: 62px;
}

.rain.b {
  right: 118px;
  bottom: 98px;
}

.rain.c {
  right: 64px;
  bottom: 114px;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.weather-stats div {
  min-height: 92px;
  padding: 14px;
}

.weather-stats span,
.weather-stats strong {
  display: block;
}

.weather-stats strong {
  margin-top: 6px;
  color: var(--ocean);
  font-size: 1.2rem;
}

.section {
  width: calc(100% - 40px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 62px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: end;
}

.split-heading > p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.about-card {
  padding: 30px;
  border-radius: var(--radius);
}

.about-card p {
  margin: 0;
  color: #40546b;
  font-size: 1.02rem;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ocean);
  background: var(--cloud);
  font-size: 0.78rem;
  font-weight: 800;
}

.goal-stack {
  display: grid;
  gap: 14px;
}

.goal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.goal-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--sky);
  font-weight: 800;
}

.goal-item p {
  margin: 0;
  color: #40546b;
  font-weight: 600;
}

.profile-section {
  border-top: 1px solid var(--soft-line);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 18px;
}

.profile-card {
  padding: 24px;
  border-radius: var(--radius);
}

.profile-card p,
.profile-card li,
.profile-card dd {
  color: #40546b;
}

.profile-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-card dd {
  margin: 0;
  font-weight: 700;
}

.profile-card ul {
  margin: 0;
  padding-left: 18px;
}

.profile-card li + li {
  margin-top: 8px;
}

.assignments-section {
  position: relative;
}

.assignments-section::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100vw;
  height: calc(100% - 44px);
  transform: translateX(-50%);
  z-index: -1;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.5), rgba(255, 255, 255, 0));
}

.log-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.log-card {
  position: relative;
  display: grid;
  min-height: 340px;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.log-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, var(--sky), var(--accent));
}

.log-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.log-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--ocean);
  background: var(--cloud);
  font-weight: 800;
}

.log-type {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ocean);
  background: #f0f9ff;
  font-size: 0.76rem;
  font-weight: 800;
}

.log-card h3 {
  margin: 18px 0 10px;
  line-height: 1.35;
}

.log-card p {
  color: #40546b;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ocean);
  background: #f8fcff;
  font-size: 0.74rem;
  font-weight: 800;
}

.log-actions {
  align-self: end;
}

.log-actions .button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.86rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  min-height: 220px;
  padding: 22px;
  border-radius: var(--radius);
}

.summary-card span {
  width: 42px;
  height: 42px;
  display: grid;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--ocean);
  font-weight: 800;
}

.summary-card p {
  margin: 0;
  color: #40546b;
}

.footer {
  border-top: 1px solid var(--soft-line);
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.footer p {
  margin: 0;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(860px, calc(100% - 32px));
  max-height: calc(100vh - 44px);
  margin: 22px auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.modal-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 58px);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ocean);
  background: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 8px 32px 32px;
}

.modal-kicker {
  color: var(--ocean);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-body h2 {
  margin: 8px 0 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f8fcff;
}

.detail-item h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.detail-item p {
  margin: 0;
  color: #40546b;
}

@media (max-width: 980px) {
  .hero,
  .about-layout,
  .split-heading,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .weather-panel {
    min-height: auto;
  }

  .identity-strip,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    width: calc(100% - 28px);
    max-width: var(--container);
    position: relative;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-content: center;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    background: white;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 14px;
  }

  .hero,
  .section {
    width: calc(100% - 28px);
    max-width: var(--container);
  }

  .hero {
    margin-top: 28px;
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(100vw - 28px);
    justify-items: stretch;
  }

  .hero-copy,
  .weather-panel {
    width: 100%;
    max-width: calc(100vw - 28px);
    border-radius: 24px;
  }

  .hero-copy {
    padding: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9.2vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-lead,
  .hero-text {
    max-width: 100%;
  }

  .identity-strip,
  .weather-stats,
  .log-grid,
  .summary-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .weather-map {
    min-height: 250px;
  }

  .section {
    padding: 46px 0;
  }

  .log-card {
    min-height: auto;
  }

  .modal-body {
    padding: 8px 20px 24px;
  }
}

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