:root {
  --bg: #0b0c10;
  --bg-soft: #151823;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1ee;
  --muted: rgba(244, 241, 238, 0.7);
  --rose: #f7b5c9;
  --lavender: #d1b7ff;
  --peach: #f4cab3;
  --gold: #f6d99f;
  --shadow: rgba(19, 16, 23, 0.52);
  --toggle-bg: rgba(255, 255, 255, 0.04);
  --trans-pink: rgba(255, 175, 214, 0.36);
  --trans-blue: rgba(150, 200, 255, 0.34);
  --trans-white: rgba(255, 255, 255, 0.28);
}

body.light-mode {
  --bg: #f5f0eb;
  --bg-soft: #fdf8f4;
  --panel: rgba(18, 12, 17, 0.03);
  --panel-strong: rgba(18, 12, 17, 0.06);
  --line: rgba(23, 16, 28, 0.12);
  --text: #1d1920;
  --muted: rgba(29, 25, 32, 0.7);
  --rose: #d976a4;
  --lavender: #7f6ae6;
  --peach: #d18262;
  --gold: #ac7c1e;
  --shadow: rgba(32, 20, 39, 0.12);
  --toggle-bg: rgba(17, 12, 18, 0.04);
  --trans-pink: rgba(245, 154, 202, 0.25);
  --trans-blue: rgba(132, 195, 255, 0.24);
  --trans-white: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(199, 174, 255, 0.12), transparent 25%),
    radial-gradient(circle at bottom right, rgba(247, 181, 201, 0.12), transparent 20%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, var(--trans-pink) 18%, var(--trans-white) 38%, var(--trans-blue) 58%, transparent 100%);
  opacity: 0.28;
  mix-blend-mode: screen;
  filter: blur(70px);
}

img {
  max-width: 100%;
  display: block;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

.topbar,
.hero,
.intro,
.collection,
.craft,
.footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  padding: 26px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 16, 0.45);
}

body.light-mode .topbar {
  background: rgba(245, 240, 235, 0.55);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  color: #120d15;
  box-shadow: 0 8px 22px rgba(215, 144, 182, 0.4);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.lang-toggle {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}

.nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-cta,
.primary,
.secondary {
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-cta,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--trans-pink), var(--lavender), var(--trans-blue));
  color: #0d0b12;
  border: 1px solid transparent;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 18px 35px rgba(194, 126, 169, 0.35);
}

.secondary {
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.nav-cta:hover,
.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 52px 0 32px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.hero-metrics {
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  min-width: 110px;
}

.hero-metrics strong {
  font-size: 1.7rem;
  font-weight: 700;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  height: 620px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}

.orb-one {
  width: 290px;
  height: 290px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(209,183,255,0.38), rgba(147,116,255,0.1) 60%, transparent 75%);
  top: 16%;
  left: 18%;
}

.orb-two {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at center, rgba(247,181,201,0.26), rgba(247,181,201,0.06), transparent 68%);
  right: 10%;
  bottom: 12%;
}

.device {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 28px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}

.device-a {
  width: 280px;
  height: 420px;
  border-radius: 36% 36% 40% 40% / 28% 28% 42% 42%;
  transform: rotate(-18deg) translateX(-30px);
  background: linear-gradient(160deg, rgba(246,217,159,0.18), rgba(255,255,255,0.05), rgba(131,104,253,0.18));
}

.device-b {
  width: 220px;
  height: 300px;
  border-radius: 28% 32% 36% 34% / 22% 26% 42% 42%;
  transform: rotate(20deg) translateX(130px) translateY(110px);
  background: linear-gradient(160deg, rgba(184,157,255,0.22), rgba(255,255,255,0.04), rgba(247,181,201,0.12));
}

.device-c {
  width: 180px;
  height: 220px;
  border-radius: 28% 28% 35% 35% / 18% 18% 42% 42%;
  transform: rotate(-10deg) translateX(-150px) translateY(170px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(247,181,201,0.12));
}

.device-highlight {
  position: absolute;
  inset: 16% 18% 10%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(circle at center, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 65%, transparent 70%);
}

.panel,
.collection,
.craft {
  padding: 48px 0 28px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.craft-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.intro-grid article {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.intro-grid span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.intro-grid h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.intro-grid p,
.craft-copy p,
.footer p {
  margin: 0;
  color: var(--muted);
}

.narrow {
  max-width: 720px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
}

.product-visual {
  position: relative;
  height: 290px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.shape {
  position: relative;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 38px rgba(0,0,0,0.18);
}

.form-1 {
  width: 140px;
  height: 180px;
  border-radius: 40% 40% 45% 45% / 30% 30% 52% 52%;
  background: linear-gradient(180deg, rgba(247,181,201,0.36), rgba(255,255,255,0.06));
  transform: rotate(-8deg);
}

.form-2 {
  width: 180px;
  height: 140px;
  border-radius: 44% 44% 52% 52% / 28% 28% 52% 52%;
  background: linear-gradient(180deg, rgba(209,183,255,0.38), rgba(255,255,255,0.05));
  transform: rotate(12deg);
}

.form-3 {
  width: 160px;
  height: 200px;
  border-radius: 52% 52% 38% 38% / 26% 26% 54% 54%;
  background: linear-gradient(180deg, rgba(244,202,179,0.32), rgba(255,255,255,0.05));
  transform: rotate(-18deg);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6px 4px;
}

.card-meta p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-meta h3 {
  margin: 0;
  font-size: 1.5rem;
}

.craft {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.craft-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.craft-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.02);
  color: var(--text);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalogue-card {
  padding: 22px 18px 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalogue-card.highlighted {
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(222,185,255,0.08), rgba(255,255,255,0.02));
}

.catalogue-tag {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalogue-card h3 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.catalogue-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.catalogue-button,
.catalogue-submit {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--rose), var(--lavender));
  color: #120d15;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.catalogue-button:hover,
.catalogue-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.footer {
  padding: 32px 0 54px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.catalogue-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.catalogue-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.catalogue-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 14, 0.76);
  backdrop-filter: blur(8px);
}

.catalogue-modal__panel {
  position: relative;
  width: min(540px, calc(100% - 32px));
  background: rgba(18, 18, 22, 0.96);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 22px 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.38);
}

body.light-mode .catalogue-modal__panel {
  background: rgba(250, 247, 244, 0.96);
}

.catalogue-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

#catalogue-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

#catalogue-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

#catalogue-form input,
#catalogue-form select,
#catalogue-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#catalogue-form input:focus,
#catalogue-form select:focus,
#catalogue-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 0 0 3px rgba(182, 146, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

#catalogue-form textarea {
  resize: vertical;
  min-height: 110px;
}

.catalogue-submit {
  width: 100%;
}

@media (max-width: 960px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .craft,
  .intro-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    height: 480px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 18px;
  }

  .nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .nav-cta {
    display: none;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
