:root {
  --bg: #f5f8fc;
  --ink: #0f172a;
  --muted: #536277;
  --line: #d8e2ee;
  --line-strong: #b8c9dd;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #e8f1ff;
  --surface: #ffffff;
  --surface-blue: #f0f6ff;
  --deep: #0b2d5c;
  --shadow: 0 18px 52px rgba(15, 35, 70, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.9) 0, rgba(245, 248, 252, 0) 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(120, 144, 171, 0.22);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--deep);
  font-weight: 780;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--accent-strong);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 650px;
  overflow: hidden;
  padding: 76px 0 80px;
}

.hero::before {
  position: absolute;
  inset: 46px max(-120px, -9vw) 46px 40%;
  z-index: -2;
  content: "";
  background-image: url("assets/wisehat-hero-visual.png");
  background-position: center;
  background-size: cover;
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(245, 248, 252, 0.94) 28%, rgba(245, 248, 252, 0.18) 58%, rgba(245, 248, 252, 0) 100%),
    linear-gradient(180deg, rgba(245, 248, 252, 0) 72%, var(--bg) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--deep);
  font-size: clamp(62px, 10vw, 122px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.24;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button.secondary {
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: none;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.section {
  scroll-margin-top: 96px;
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section h2,
.simple-hero h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head p,
.simple-hero p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.product-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.product-card:hover .arrow-icon {
  transform: translateX(4px);
}

.product-art {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 28px;
  border-right: 1px solid rgba(184, 201, 221, 0.62);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08)),
    var(--surface-blue);
}

.product-shot {
  width: min(100%, 520px);
  aspect-ratio: 1586 / 851;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(11, 45, 92, 0.14);
}

.product-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 54px);
}

.product-copy img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
  object-fit: cover;
}

.product-copy h3 {
  max-width: 520px;
  margin: 48px 0 16px;
  color: var(--deep);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.product-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 780;
}

.product-status {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 780;
}

.arrow-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.more-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.more-bar:hover {
  border-color: var(--accent);
  background: #ffffff;
  color: var(--accent-strong);
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
}

.note-feature {
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.84)),
    var(--surface);
  box-shadow: var(--shadow);
}

.note-label,
.about-kicker {
  display: inline-flex;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.note-feature h3 {
  max-width: 280px;
  margin: 78px 0 14px;
  color: var(--deep);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1;
}

.note-feature p,
.note-row p,
.about-identity p,
.about-item p {
  margin: 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.note-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.note-row:last-child {
  border-bottom: 0;
}

.note-index {
  color: var(--line-strong);
  font-size: 15px;
  font-weight: 800;
}

.note-row h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 22px;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-identity {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.9), rgba(255, 255, 255, 0.72));
}

.about-identity img {
  width: 82px;
  height: 82px;
}

.about-identity h3 {
  max-width: 360px;
  margin: 0 0 14px;
  color: var(--deep);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.about-list {
  display: grid;
  gap: 0;
}

.about-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.about-item .about-kicker {
  grid-row: 1 / span 2;
}

.about-item:first-child {
  padding-top: 0;
}

.about-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-item h3 {
  grid-column: 2;
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 22px;
}

.about-item p {
  grid-column: 2;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 14px;
  letter-spacing: 0;
}

.footer-meta {
  display: grid;
  gap: 8px;
}

.footer-contact {
  color: var(--deep);
  display: inline-flex;
  font-weight: 720;
}

.footer-contact:hover {
  color: var(--accent-strong);
}

.footer-meta {
  justify-items: end;
  text-align: right;
}

.simple-hero {
  padding: 86px 0 58px;
}

.simple-hero p {
  margin-top: 24px;
  font-size: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 90px;
}

.product-card {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card-visual {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08)),
    var(--surface-blue);
}

.product-card-visual img {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  object-fit: cover;
  filter: drop-shadow(0 12px 26px rgba(37, 99, 235, 0.18));
}

.product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.product-card h2 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 34px;
  line-height: 1;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    gap: 16px;
  }

  .page,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .product-preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 70px;
  }

  .hero::before {
    inset: 150px -120px 24px 8%;
    opacity: 0.34;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 88%, transparent 100%);
  }

  .hero::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(245, 248, 252, 0.9) 38%, rgba(245, 248, 252, 0.48) 72%, var(--bg) 100%);
  }

  .product-art {
    border-right: 0;
    border-bottom: 1px solid rgba(184, 201, 221, 0.62);
  }

  .section-head,
  .footer-grid {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .notes-layout,
  .about-panel,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .about-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-item .about-kicker,
  .about-item h3,
  .about-item p {
    grid-column: 1;
  }

  .about-item .about-kicker {
    grid-row: auto;
  }

  .product-copy h3 {
    margin-top: 34px;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  .nav-links {
    gap: 10px;
    font-size: 12px;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 20vw, 88px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}
