:root {
  color-scheme: light;
  --ink: #0f1113;
  --muted: #5d6669;
  --green: #2e7d32;
  --green-dark: #236128;
  --surface: #ffffff;
  --canvas: #f3f4f6;
  --line: #e0e5e3;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.site-header {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.brand img {
  display: block;
  width: 31px;
  height: 28px;
}

.brand__name {
  font-family: "Avenir Next", "Arial Black", sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 1;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d8dfdb;
  border-radius: 999px;
  background: var(--surface);
}

.language-switch button {
  min-width: 46px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 180ms ease, color 180ms ease;
}

.language-switch button:hover {
  color: var(--ink);
}

.language-switch button.is-active {
  background: var(--ink);
  color: var(--surface);
}

.main-grid {
  display: grid;
  min-height: min(670px, calc(100svh - 174px));
  flex: 1;
  grid-template-columns: minmax(0, 1.07fr) minmax(370px, 0.93fr);
  overflow: hidden;
  border: 1px solid #dfe4e1;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgb(15 17 19 / 5%);
}

.intro-panel,
.link-panel {
  min-width: 0;
}

.intro-panel {
  display: flex;
  position: relative;
  flex-direction: column;
  overflow: hidden;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(143deg, #fff 26%, #fafbf9 100%);
}

.intro-panel__top,
.link-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.intro-panel__index,
.link-panel__number {
  color: #939b98;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.intro-panel__body {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: auto 0;
  padding: 56px 0 76px;
}

.intro-panel h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 88px);
  font-weight: 800;
  letter-spacing: -0.068em;
  line-height: 1.02;
}

.intro-panel p {
  max-width: 470px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
}

.intro-panel__signature {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: clamp(240px, 27vw, 390px);
  color: #0f1113;
  opacity: 0.045;
  pointer-events: none;
  transform: rotate(-8deg);
}

.intro-panel__rule {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 3px;
  background: var(--green);
}

.link-panel {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px);
  border-left: 1px solid var(--line);
  background: #f8faf8;
}

.link-panel__head {
  margin-bottom: auto;
}

.link-panel__number {
  color: var(--green);
}

.link-panel__line {
  width: 56px;
  height: 1px;
  background: #cbd9ce;
}

.link-stack {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 42px 0;
}

.link-card {
  display: flex;
  min-height: 106px;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid #d8e0da;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(15 17 19 / 2%);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.link-card:hover {
  border-color: #adcbb2;
  box-shadow: 0 9px 24px rgb(15 17 19 / 7%);
  transform: translateY(-2px);
}

.link-card--primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--surface);
  box-shadow: 0 13px 30px rgb(46 125 50 / 17%);
}

.link-card--primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: 0 16px 32px rgb(46 125 50 / 23%);
}

.link-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: none;
  place-items: center;
  border: 1px solid #d9e5dc;
  border-radius: 10px;
  color: var(--green);
}

.link-card--primary .link-card__icon {
  border-color: rgb(255 255 255 / 31%);
  color: var(--surface);
}

.link-card__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.link-card__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.link-card__copy strong {
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.link-card__copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.link-card--primary .link-card__copy small {
  color: rgb(255 255 255 / 85%);
}

.link-card__arrow {
  margin-left: auto;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms ease;
}

.link-card:hover .link-card__arrow {
  transform: translate(2px, -2px);
}

.link-panel__note {
  max-width: 290px;
  margin: auto 0 0;
  color: #5f6d63;
  font-size: 12px;
  line-height: 1.5;
}

.link-panel__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 72px;
  border-top: 1px solid #d8e2d8;
  border-left: 1px solid #d8e2d8;
  opacity: 0.5;
  transform: translate(50%, 50%) rotate(45deg);
}

.site-footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #59645d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-footer > span:first-child {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.025em;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 82px;
  }

  .main-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: 360px;
    padding: 32px;
  }

  .intro-panel__body {
    padding: 55px 0 46px;
  }

  .intro-panel h1 {
    max-width: 620px;
    font-size: clamp(48px, 8vw, 72px);
  }

  .intro-panel__signature {
    right: 0;
    bottom: -85px;
  }

  .link-panel {
    min-height: 365px;
    padding: 32px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .link-stack {
    margin: 26px 0;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0 12px;
  }

  .site-header {
    min-height: 72px;
    padding: 0 8px;
  }

  .brand__name {
    font-size: 26px;
  }

  .brand img {
    width: 27px;
    height: 25px;
  }

  .main-grid {
    border-radius: 14px;
  }

  .intro-panel {
    min-height: 340px;
    padding: 25px 23px;
  }

  .intro-panel__index {
    font-size: 10px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .intro-panel__body {
    padding: 45px 0 34px;
  }

  .intro-panel h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .intro-panel p {
    max-width: 360px;
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.5;
  }

  .intro-panel__signature {
    right: -34px;
    bottom: -66px;
    width: 245px;
  }

  .link-panel {
    min-height: 340px;
    padding: 25px 18px;
  }

  .link-stack {
    gap: 10px;
    margin: 24px 0;
  }

  .link-card {
    min-height: 86px;
    gap: 12px;
    padding: 13px;
    border-radius: 10px;
  }

  .link-card__icon {
    width: 42px;
    height: 42px;
  }

  .link-card__icon svg {
    width: 21px;
    height: 21px;
  }

  .link-card__copy strong {
    font-size: 18px;
  }

  .link-card__copy small {
    font-size: 11px;
  }

  .link-card__arrow {
    font-size: 22px;
  }

  .site-footer {
    min-height: 54px;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch button,
  .link-card,
  .link-card__arrow {
    transition: none;
  }
}
