:root {
  --bg: #eff4fc;
  --bg2: #dbe5f4;
  --ink: #192d49;
  --muted: #607591;
  --sky: #4c93ea;
  --coral: #f26d54;
  --white: #ffffff;
  --rail-w: 4.5rem;
  --max: 920px;
  --radius: 18px;
  --font: "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  min-height: 100vh;
  line-height: 1.55;
}

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

a {
  color: var(--sky);
}

.site-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(25, 45, 73, 0.08);
  z-index: 20;
}

.rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}

.rail-tab:hover,
.rail-tab.is-active {
  background: rgba(76, 147, 234, 0.12);
  color: var(--sky);
}

.rail-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.page-main {
  margin-left: var(--rail-w);
  padding: 2rem 1.25rem 3rem;
}

section {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
}

.section-intro h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

.intro-left {
  text-align: left;
}

.intro-right {
  text-align: right;
  margin-left: auto;
}

.hero {
  padding-top: 0.5rem;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 14ch;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-collage {
  position: relative;
  min-height: 280px;
}

.hero-collage .collage-main {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(25, 45, 73, 0.12);
}

.collage-tile {
  position: absolute;
  width: clamp(88px, 22vw, 140px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--white);
  box-shadow: 0 10px 24px rgba(25, 45, 73, 0.15);
}

.collage-tile-a {
  right: 4%;
  bottom: -12px;
  transform: rotate(4deg);
}

.collage-tile-b {
  left: 6%;
  bottom: 28px;
  transform: rotate(-5deg);
}

.icon-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.icon-grid li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(25, 45, 73, 0.06);
}

.grid-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.45rem;
  border-radius: 10px;
  background: rgba(76, 147, 234, 0.12);
  color: var(--sky);
  font-size: 1rem;
}

.icon-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.icon-grid p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  margin-top: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.carousel-slide {
  flex: 0 0 min(72%, 280px);
  scroll-snap-align: start;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(25, 45, 73, 0.08);
  box-shadow: 0 12px 28px rgba(25, 45, 73, 0.1);
}

.carousel-slide figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.legal-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}

.legal-tab {
  appearance: none;
  border: 1px solid rgba(25, 45, 73, 0.12);
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.legal-tab.is-active {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--white);
}

.legal-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(25, 45, 73, 0.06);
}

.legal-panel.is-visible {
  display: block;
}

.legal-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.legal-panel p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(25, 45, 73, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  :root {
    --rail-w: 3.4rem;
  }

  .rail-label {
    display: none;
  }

  .page-main {
    padding: 1.25rem 0.85rem 2.5rem;
  }

  .icon-grid {
    grid-template-columns: 1fr;
  }

  .intro-right {
    text-align: left;
    margin-left: 0;
  }

  .collage-tile-b {
    display: none;
  }
}
