:root {
  --ink: #101820;
  --muted: #66707a;
  --line: #d9dee3;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --teal: #65bbb4;
  --teal-dark: #177c78;
  --gold: #c89a3c;
  --charcoal: #121922;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--charcoal);
  color: #fff;
}

.brand-mini,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mini {
  gap: 10px;
  letter-spacing: 0.04em;
}

.brand-mark,
.logo-symbol {
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-weight: 900;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: #0b2d2b;
}

.topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #e7edf1;
  font-size: 14px;
}

.hero-image {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f7f9f9;
}

.hero-image img {
  display: block;
  width: 100%;
  height: clamp(210px, 30vw, 360px);
  object-fit: cover;
}

.storebar {
  display: grid;
  grid-template-columns: minmax(210px, 0.56fr) minmax(430px, 1.28fr) minmax(190px, 0.5fr);
  align-items: center;
  gap: 22px;
  padding: 18px clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.store-id,
.logo-lockup,
.store-tabs,
.store-search {
  display: flex;
  align-items: center;
  min-width: 0;
}

.store-id {
  gap: 14px;
}

.logo-lockup {
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.logo-symbol {
  width: 42px;
  height: 42px;
  background: var(--charcoal);
  color: var(--teal);
  font-size: 25px;
}

.follow-button,
.feature-card button,
.product-copy button,
.toolbar button,
.guide-list button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f6;
  color: #26323c;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.follow-button.is-following {
  border-color: var(--teal-dark);
  background: #e7f7f5;
  color: var(--teal-dark);
}

.store-tabs {
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.store-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 12px 6px 10px;
  color: #384550;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab.active {
  border-color: var(--teal-dark);
  color: var(--teal-dark);
}

.store-search {
  justify-content: flex-end;
}

.store-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.store-search input {
  width: min(100%, 230px);
  min-height: 42px;
  border: 1px solid #aeb7bf;
  border-radius: 4px;
  padding: 0 14px;
}

.intro {
  padding: 44px clamp(16px, 5vw, 64px) 34px;
  text-align: center;
}

.intro h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.intro p {
  margin: 0 auto;
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-link {
  background: var(--charcoal);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--charcoal);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  padding: 20px clamp(16px, 5vw, 64px);
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 280px;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8faf9;
}

.feature-card.wide {
  min-height: 420px;
  grid-row: span 2;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255,255,255,0.94), rgba(255,255,255,0.18));
}

.feature-card div {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 28px;
}

.feature-card span,
.brand-story span,
.usage-guide span,
.product-copy span,
.dialog-copy span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.feature-card h2 {
  margin: 12px 0 20px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.feature-card h3 {
  margin: 12px 0 20px;
  max-width: 360px;
  font-size: 25px;
  line-height: 1.15;
}

.section-heading {
  padding: 56px clamp(16px, 5vw, 64px) 16px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
}

.section-heading p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(16px, 5vw, 64px);
}

.toolbar p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 12px clamp(16px, 5vw, 64px) 62px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(16, 24, 32, 0.12);
}

.product-card.is-hidden {
  display: none;
}

.product-open {
  display: block;
  width: 100%;
  border: 0;
  background: #f7f8f9;
  padding: 0;
  cursor: pointer;
}

.product-open img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-copy h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.15;
}

.product-copy p {
  flex: 1;
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.usage-guide,
.brand-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 80px);
  padding: 62px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.usage-guide {
  background: #fbfaf7;
}

.usage-guide h2,
.brand-story h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list button {
  justify-content: flex-start;
  min-height: 54px;
  text-align: left;
}

.brand-story {
  background: #f8faf9;
}

.brand-story p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.product-dialog {
  width: min(980px, calc(100vw - 32px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.product-dialog::backdrop {
  background: rgba(8, 13, 20, 0.62);
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.dialog-media,
.dialog-copy {
  padding: 24px;
}

.dialog-media {
  background: #f7f8f9;
}

.dialog-media > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumb-row button {
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.thumb-row button.active {
  border-color: var(--teal-dark);
}

.thumb-row img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.dialog-copy h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.dialog-copy p,
.dialog-copy li {
  color: var(--muted);
  line-height: 1.65;
}

.dialog-copy ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 5vw, 64px);
  background: var(--charcoal);
  color: #fff;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .storebar,
  .feature-grid,
  .usage-guide,
  .brand-story,
  .product-dialog[open] {
    grid-template-columns: 1fr;
  }

  .store-search {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar,
  footer,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .store-id {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro {
    text-align: left;
  }

  .intro-actions {
    justify-content: flex-start;
  }

  .feature-card,
  .feature-card.wide {
    min-height: 320px;
  }

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