:root {
  --bg: #07090d;
  --bg-soft: #10141d;
  --panel: rgba(18, 22, 31, 0.78);
  --panel-solid: #151a24;
  --text: #f6f1e8;
  --muted: #b8b0a5;
  --line: rgba(246, 241, 232, 0.14);
  --gold: #d9ad49;
  --gold-2: #f0c865;
  --blue: #6bb7d9;
  --rose: #ef7e9a;
  --green: #8bd6b3;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 173, 73, 0.18), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(107, 183, 217, 0.12), transparent 30%),
    linear-gradient(135deg, #07090d 0%, #0d1018 45%, #08090c 100%);
  color: var(--text);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(246, 241, 232, 0.08);
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover,
.footer a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: none;
}

.button.primary {
  border-color: rgba(217, 173, 73, 0.4);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #14100a;
}

.button.ghost {
  background: rgba(246, 241, 232, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100vh - 80px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 84px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3.25rem, 8vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.hero-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(246, 241, 232, 0.1), rgba(246, 241, 232, 0.02));
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246, 241, 232, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.15), rgba(7, 9, 13, 0.66)),
    url("assets/logo_meitilabs.png") center 18% / 76% auto no-repeat;
}

.hero-card .floating {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 9, 13, 0.7);
  backdrop-filter: blur(14px);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.hero-card span {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: clamp(56px, 8vw, 98px) clamp(20px, 5vw, 72px);
}

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

.section h2,
.page-hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

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

.tile,
.product-card,
.legal-card,
.app-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.tile {
  min-height: 210px;
  padding: 24px;
}

.tile b {
  display: block;
  margin-bottom: 20px;
  color: var(--gold-2);
}

.tile h3,
.product-card h3,
.app-panel h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.tile p,
.product-card p,
.app-panel p,
.legal-card p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}

.products {
  background: rgba(246, 241, 232, 0.035);
}

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

.product-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 28px;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background: radial-gradient(circle at 80% 10%, var(--accent), transparent 35%);
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-icon {
  width: 86px;
  height: 86px;
  margin-bottom: 28px;
  object-fit: contain;
}

.product-card h3 {
  max-width: 520px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;
}

.product-card p {
  max-width: 620px;
  font-size: 1.05rem;
}

.note {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: stretch;
}

.note .legal-card {
  padding: 28px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-hero {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) 32px;
}

.legal {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 88px;
}

.legal-card {
  padding: clamp(22px, 4vw, 36px);
}

.legal section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.95;
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.legal a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.app-hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 7rem);
  line-height: 0.92;
}

.app-stage {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.12), rgba(7, 9, 13, 0.86)),
    radial-gradient(circle at 50% 28%, rgba(217, 173, 73, 0.26), transparent 44%);
  box-shadow: var(--shadow);
}

.app-stage img {
  width: min(270px, 68vw);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.34));
}

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

.app-panel {
  padding: 24px;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-card,
  .app-stage {
    min-height: 420px;
  }

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

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