:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --text: #0f1e2d;
  --muted: #506477;
  --line: #d6e0e9;
  --brand: #017f93;
  --brand-2: #15526a;
  --brand-3: #0d2f47;
  --accent: #f2a85d;
  --lime: #9fe6c7;
  --danger: #c63d3d;
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1240px, calc(100vw - 2rem));
  --shadow: 0 16px 40px rgba(7, 32, 50, 0.12);
  --shadow-lg: 0 30px 60px rgba(6, 30, 47, 0.22);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(141, 230, 201, 0.25), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(242, 168, 93, 0.2), transparent 32%),
    linear-gradient(180deg, #f5f9fc 0%, #edf3f8 55%, #e8eff7 100%);
  line-height: 1.58;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: "Sora", "Manrope", sans-serif;
  margin: 0 0 .7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; color: var(--muted); }

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.layout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: var(--container); margin: 0 auto; padding: 1.2rem 0 3.5rem; }

.header-meta {
  background: linear-gradient(95deg, #071b2b, #11324b);
  color: #d6edf8;
  font-size: .78rem;
}

.meta-wrap {
  width: var(--container);
  margin: 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.meta-wrap a { color: #fee0b9; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(246, 251, 255, 0.92);
  border-bottom: 1px solid rgba(9, 44, 66, 0.12);
}

.header-main {
  width: var(--container);
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-3));
  color: #fff;
  font-weight: 800;
}

.brand-copy strong { display: block; font-size: 1rem; }
.brand-copy small { display: block; font-size: .7rem; color: #688292; text-transform: uppercase; letter-spacing: .08em; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .2rem;
}

.site-nav a {
  padding: .56rem .72rem;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 700;
  color: #20475c;
  transition: .25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: linear-gradient(125deg, #0b90a1, #164b66);
  color: #fff;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  gap: .5rem;
  margin-left: .5rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid #c6d5de;
  background: #fff;
  padding: .4rem;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span { display: block; height: 2px; width: 20px; background: #1a5068; }

.hero {
  position: relative;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 14%, rgba(157, 244, 211, .52), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(247, 190, 130, .42), transparent 34%),
    linear-gradient(130deg, #07304c 0%, #10597a 48%, #083145 100%);
  padding: clamp(1.4rem, 4vw, 3.1rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.35), rgba(255,255,255,0));
  border-radius: 50%;
  animation: drift 8s ease-in-out infinite;
}

.hero h1 { font-size: clamp(2rem, 5vw, 4.1rem); margin-bottom: .9rem; }
.hero p { color: #d5ebf8; font-size: clamp(1rem, 1.7vw, 1.2rem); max-width: 820px; }

.typed-line {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  padding: .45rem .8rem;
  margin-bottom: .8rem;
}

.cursor {
  width: 2px;
  height: 1.2em;
  background: #fff;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { 50% { transform: translate(-16px, 10px); } }

.section { margin-top: 2rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2.3rem); }

.grid { display: grid; gap: .9rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #9dc1d4;
  box-shadow: 0 22px 46px rgba(8, 41, 60, .18);
}

.metric {
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #eff8ff);
  border: 1px solid #cfe0ea;
  padding: .8rem;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  color: #113f58;
}

.metric span { font-size: .78rem; color: #5b7485; }

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: .24rem .58rem;
  font-size: .73rem;
  letter-spacing: .06em;
  font-weight: 700;
  text-transform: uppercase;
  background: #dcfff4;
  color: #0a7a66;
  border: 1px solid #9de8d0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  padding: .72rem .95rem;
  transition: .22s ease;
  cursor: pointer;
  gap: .4rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(3, 97, 119, .3);
}

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

.btn-soft {
  color: #1f465c;
  background: #eef7fb;
  border-color: #bdd3e0;
}

.btn-outline {
  color: #d7eaf6;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
}

.expand-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.expand-card .expand-body {
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height .3s ease, opacity .25s ease, transform .25s ease;
}

.expand-card.is-open .expand-body {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: .6rem;
}

.hover-lift {
  transition: transform .24s ease, box-shadow .24s ease;
}

.hover-lift:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(8, 48, 68, .2);
}

.timeline {
  display: grid;
  gap: .8rem;
}

.timeline-item {
  border-left: 3px solid #188aa0;
  padding-left: .8rem;
}

.form-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label { font-size: .8rem; font-weight: 700; color: #355567; }

input, select, textarea {
  width: 100%;
  font: inherit;
  border-radius: 12px;
  border: 1px solid #c3d3dd;
  background: #fff;
  color: #152a3d;
  padding: .72rem .8rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1d93aa;
  box-shadow: 0 0 0 3px rgba(29, 147, 170, .2);
}

textarea { min-height: 120px; resize: vertical; }

.full { grid-column: 1 / -1; }

.notice {
  border-left: 4px solid #13889a;
  background: #f0fbff;
  border-radius: 10px;
  padding: .8rem;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #edf4f8;
  border: 1px solid #c6d5df;
  border-radius: 8px;
  padding: .16rem .45rem;
  font-size: .78rem;
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.site-footer {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #0a2336, #102c43 44%, #071b2a);
  color: #c5d7e1;
}

.site-footer h3,
.site-footer h4 { color: #fff; }

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: .8rem 0 1.2rem;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 86px;
    background: rgba(247, 251, 255, .98);
    border: 1px solid #bfd2de;
    border-radius: 14px;
    padding: .8rem;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open { display: flex; }

  .menu-toggle { display: inline-flex; margin-left: auto; }

  .header-actions { display: none; }

  .grid.two,
  .grid.three,
  .grid.four,
  .footer-grid,
  .form-grid { grid-template-columns: 1fr; }

  .meta-wrap { flex-direction: column; justify-content: center; align-items: flex-start; min-height: 44px; padding: .35rem 0; }
}
