:root {
  color-scheme: light;
  --bg: #f6f1eb;
  --bg-elevated: rgba(255, 252, 248, 0.84);
  --panel: #fffaf5;
  --panel-strong: #fff5eb;
  --text: #1d140f;
  --muted: #705c51;
  --line: rgba(255, 123, 66, 0.18);
  --line-strong: rgba(255, 123, 66, 0.32);
  --accent: #ff7b42;
  --accent-strong: #ff5f24;
  --accent-soft: rgba(255, 123, 66, 0.12);
  --accent-soft-strong: rgba(255, 123, 66, 0.2);
  --shadow: 0 28px 80px rgba(51, 29, 17, 0.08);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #110e0c;
  --bg-elevated: rgba(22, 18, 16, 0.9);
  --panel: #181311;
  --panel-strong: #1d1714;
  --text: #f6eee7;
  --muted: #baa99e;
  --line: rgba(255, 144, 94, 0.18);
  --line-strong: rgba(255, 144, 94, 0.3);
  --accent: #ff996f;
  --accent-strong: #ffb18c;
  --accent-soft: rgba(255, 153, 111, 0.12);
  --accent-soft-strong: rgba(255, 153, 111, 0.22);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 123, 66, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 184, 145, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 22%),
    var(--bg);
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.landing {
  display: grid;
  gap: 28px;
}

.topbar,
.hero-frame,
.product-card,
.ecosystem-card,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand__copy {
  display: grid;
  gap: 2px;
}

.brand__copy strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.brand__copy small {
  color: var(--muted);
}

.topbar__nav,
.topbar__controls,
.hero__actions,
.cta-panel__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__nav {
  flex-wrap: wrap;
  justify-content: center;
}

.topbar__nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.topbar__nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.lang-switch__button,
.theme-switch {
  font: inherit;
}

.lang-switch__button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.lang-switch__button.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.theme-switch {
  border: 1px solid var(--line);
  cursor: pointer;
}

.theme-switch span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

html[data-theme='light'] .theme-switch__sun,
html[data-theme='dark'] .theme-switch__moon {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.ecosystem-card:hover,
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.button--primary {
  color: #fff9f5;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button--secondary,
.button--ghost {
  background: var(--panel);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 28px;
  align-items: center;
  padding: 68px 0 18px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero__copy h1,
.section__intro h2,
.cta-panel__copy h2 {
  margin: 16px 0 14px;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero__copy h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 7vw, 6.9rem);
}

.hero__copy p,
.section__intro p,
.product-card p,
.ecosystem-card p,
.cta-panel__copy p,
.footer span {
  color: var(--muted);
  line-height: 1.66;
}

.hero__copy p {
  max-width: 36rem;
  font-size: 1.06rem;
}

.hero__actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.hero__signals li {
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600;
  line-height: 1.4;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero-frame {
  width: min(100%, 620px);
  overflow: hidden;
  border-radius: 34px;
}

.hero-frame__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.hero-frame__header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-soft-strong);
}

.hero-frame__header strong {
  margin-left: 6px;
  font-size: 0.95rem;
}

.hero-frame__body {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 448px;
}

.hero-frame__sidebar {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.hero-frame__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-frame__brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.hero-frame__slot {
  height: 48px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.hero-frame__slot--short {
  width: 70%;
}

.hero-frame__slot.is-active {
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 123, 66, 0.26));
}

.hero-frame__content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-card {
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-card--accent {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 155, 117, 0.26), transparent 34%),
    linear-gradient(135deg, var(--accent-soft-strong), var(--accent-soft));
}

.hero-card span,
.product-card__index,
.ecosystem-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card strong,
.product-card h3,
.ecosystem-card strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section {
  display: grid;
  gap: 20px;
  padding: 12px 0;
}

.section__intro {
  display: grid;
  gap: 0;
  max-width: 62rem;
}

.section__intro h2,
.cta-panel__copy h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  max-width: 13ch;
}

.section__intro p {
  max-width: 50rem;
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.product-card,
.ecosystem-card,
.cta-panel {
  border-radius: 32px;
  padding: 22px;
}

.product-card {
  min-height: 100%;
}

.product-card--wide {
  background:
    radial-gradient(circle at top right, rgba(255, 149, 105, 0.16), transparent 34%),
    var(--bg-elevated);
}

.product-card__list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.product-card__list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.45;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ecosystem-card {
  min-height: 220px;
}

.ecosystem-card strong {
  margin-bottom: 10px;
}

.cta-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at right top, rgba(255, 148, 103, 0.18), transparent 28%),
    var(--bg-elevated);
}

.cta-panel__copy {
  max-width: 42rem;
}

.cta-panel__actions {
  flex-wrap: wrap;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 26px 0 6px;
  border-top: 1px solid var(--line);
}

.footer div {
  display: grid;
  gap: 8px;
}

@media (max-width: 1120px) {
  .hero,
  .product-grid,
  .ecosystem-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

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

  .hero__visual {
    justify-content: flex-start;
  }

  .hero__signals,
  .hero-card-grid,
  .product-grid,
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card--wide,
  .cta-panel__copy {
    grid-column: 1 / -1;
    max-width: none;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar__nav {
    order: 3;
    width: 100%;
  }

  .topbar__controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero__copy h1 {
    max-width: none;
    font-size: clamp(2.9rem, 14vw, 4.7rem);
  }

  .hero__signals,
  .hero-card-grid,
  .product-grid,
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame__body {
    grid-template-columns: 1fr;
  }

  .hero-frame__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section__intro h2,
  .cta-panel__copy h2 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

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