:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061014;
  --bg-soft: #0b1f27;
  --surface: rgba(12, 31, 39, 0.88);
  --surface-strong: rgba(14, 40, 50, 0.96);
  --surface-soft: rgba(125, 226, 209, 0.08);
  --text: #edfafa;
  --muted: #a8c3c8;
  --line: rgba(168, 220, 224, 0.18);
  --accent: #72e6d2;
  --accent-strong: #b9fbff;
  --warm: #ffb85c;
  --green: #8bf2a4;
  --pink: #ff7bd5;
  --violet: #9d8cff;
  --blue: #5ecbff;
  --lime: #d6ff6b;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4fbfb;
  --bg-soft: #e5f3f4;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: rgba(0, 128, 119, 0.08);
  --text: #09272d;
  --muted: #45666d;
  --line: rgba(6, 88, 93, 0.18);
  --accent: #008f84;
  --accent-strong: #005f68;
  --warm: #b76500;
  --green: #11843b;
  --pink: #c41486;
  --violet: #5f45c8;
  --blue: #006db1;
  --lime: #6c8700;
  --shadow: 0 18px 48px rgba(9, 39, 45, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(116deg, rgba(255, 123, 213, 0.2), transparent 24%),
    linear-gradient(146deg, rgba(94, 203, 255, 0.18), transparent 38%),
    linear-gradient(238deg, rgba(214, 255, 107, 0.13), transparent 34%),
    linear-gradient(298deg, rgba(255, 184, 92, 0.16), transparent 42%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 52%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -2;
  height: 42vh;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(114, 230, 210, 0.08) 28%, rgba(6, 16, 20, 0.22)),
    repeating-linear-gradient(92deg, transparent 0 44px, rgba(139, 242, 164, 0.06) 45px 47px, transparent 48px 92px);
  opacity: 0.75;
}

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

.ocean-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.32;
}

.backdrop-organism {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.16));
}

.backdrop-organism path,
.backdrop-organism circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fish-school {
  width: min(42vw, 470px);
  right: -6vw;
  top: 28vh;
  color: var(--blue);
}

.fish-school path,
.fish-school circle,
.jellyfish path:first-child,
.shell path:first-child {
  fill: currentColor;
  stroke-width: 0;
}

.jellyfish {
  width: min(18vw, 170px);
  left: 2vw;
  top: 42vh;
  color: var(--pink);
}

.reef-left {
  width: min(28vw, 280px);
  left: -6vw;
  bottom: -22px;
  color: var(--green);
}

.shell {
  width: min(16vw, 150px);
  right: 8vw;
  bottom: 8vh;
  color: var(--warm);
}

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

.theme-toggle {
  position: fixed;
  z-index: 10;
  top: 18px;
  right: 18px;
  min-width: 72px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.hero,
.section-heading,
.open-section,
.feature-card,
.category-card,
.product-card,
.metric-card {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  min-height: 78vh;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 123, 213, 0.2), rgba(157, 140, 255, 0.18), rgba(94, 203, 255, 0.18), rgba(139, 242, 164, 0.14), rgba(255, 184, 92, 0.18)),
    linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue), var(--green), var(--lime), var(--warm));
  opacity: 0.95;
}

.hero-content,
.hero-board {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}

.eyebrow,
.card-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.1rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions,
.open-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.card-action,
.product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: fit-content;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.card-action:hover,
.product-card a:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.primary,
.card-action {
  border-color: transparent;
  color: #052429;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.secondary,
.ghost,
.product-card a {
  color: var(--accent-strong);
  background: var(--surface-soft);
}

.hero-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 20px;
  border-radius: 8px;
}

.metric-card:nth-child(1) {
  border-color: rgba(255, 123, 213, 0.28);
}

.metric-card:nth-child(2) {
  border-color: rgba(94, 203, 255, 0.34);
}

.metric-card:nth-child(3) {
  border-color: rgba(214, 255, 107, 0.28);
}

.metric-card.large {
  grid-column: span 2;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.92;
}

.metric-card .metric-text {
  max-width: 8ch;
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 0.98;
}

.metric-card p,
.section-heading p,
.feature-card p,
.category-card p,
.product-card p,
.open-panel p {
  color: var(--muted);
  line-height: 1.65;
}

main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.section-heading,
.open-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: end;
  padding: 26px;
  border-radius: 8px;
}

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

.feature-card,
.category-card,
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.feature-card::after,
.category-card::after,
.product-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(circle at 26% 26%, currentColor 0 9px, transparent 10px),
    radial-gradient(circle at 58% 24%, currentColor 0 6px, transparent 7px),
    radial-gradient(circle at 74% 54%, currentColor 0 10px, transparent 11px),
    radial-gradient(circle at 35% 72%, currentColor 0 7px, transparent 8px);
  color: var(--accent);
  border-radius: 999px;
}

.feature-card {
  min-height: 260px;
  padding: 24px;
}

.app-card {
  border-color: rgba(139, 242, 164, 0.42);
  background:
    linear-gradient(135deg, rgba(139, 242, 164, 0.18), transparent 38%),
    linear-gradient(225deg, rgba(94, 203, 255, 0.12), transparent 42%),
    linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.app-card::after {
  color: var(--green);
}

.app-card .card-label {
  color: var(--green);
}

.app-card h3 {
  max-width: 12ch;
  margin-top: 42px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

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

.category-card,
.product-card {
  min-height: 230px;
  padding: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card h3 {
  max-width: 18ch;
  margin-top: 42px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 0.98;
}

.category-bio {
  background:
    linear-gradient(135deg, rgba(94, 203, 255, 0.24), transparent 38%),
    linear-gradient(245deg, rgba(139, 242, 164, 0.14), transparent 46%),
    linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.category-bio::after {
  color: var(--blue);
}

.category-tech {
  background:
    linear-gradient(135deg, rgba(255, 184, 92, 0.22), transparent 38%),
    linear-gradient(245deg, rgba(255, 123, 213, 0.13), transparent 46%),
    linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.category-tech::after {
  color: var(--warm);
}

.category-extension {
  background:
    linear-gradient(135deg, rgba(157, 140, 255, 0.22), transparent 38%),
    linear-gradient(245deg, rgba(214, 255, 107, 0.12), transparent 46%),
    linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.category-extension::after {
  color: var(--violet);
}

.category-card::before,
.product-card::before,
.feature-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--violet), var(--blue), var(--green), var(--warm)) 1;
  opacity: 0.72;
}

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

.product-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  border-radius: 6px;
  color: #052429;
  background: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-card h3 {
  max-width: 14ch;
  margin-top: auto;
  font-size: 1.35rem;
}

.product-card p {
  margin-bottom: 14px;
}

.product-card.featured {
  border-color: rgba(255, 184, 92, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 184, 92, 0.18), transparent 42%),
    linear-gradient(245deg, rgba(255, 123, 213, 0.12), transparent 48%),
    linear-gradient(150deg, var(--surface-strong), var(--surface));
}

.product-card.featured .product-number {
  background: var(--warm);
}

.span-2,
.wide {
  grid-column: span 2;
}

.open-section {
  align-items: center;
}

.open-panel {
  display: grid;
  gap: 18px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

.marine-life {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.38;
}

.marine-icon {
  position: absolute;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}

.marine-icon path,
.marine-icon ellipse,
.marine-icon circle {
  stroke: currentColor;
  fill: currentColor;
}

.fish-one {
  width: clamp(92px, 12vw, 150px);
  right: 35%;
  top: 13%;
  color: var(--pink);
  transform: rotate(-8deg);
}

.turtle {
  width: clamp(112px, 16vw, 180px);
  right: 5%;
  top: 15%;
  color: var(--green);
  transform: rotate(8deg);
}

.seaweed {
  width: clamp(86px, 11vw, 130px);
  left: 3%;
  bottom: -8px;
  color: var(--lime);
}

.seaweed path,
.coral path {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.starfish {
  width: clamp(78px, 9vw, 116px);
  right: 28%;
  bottom: 11%;
  color: var(--warm);
  transform: rotate(18deg);
}

.coral {
  width: clamp(96px, 12vw, 148px);
  right: 4%;
  bottom: -8px;
  color: var(--violet);
}

@media (max-width: 1020px) {
  .hero,
  .section-heading,
  .open-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 520px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .theme-toggle {
    position: static;
    margin: 0 0 10px auto;
    display: flex;
  }

  .hero,
  .section-heading,
  .open-section,
  .feature-card,
  .category-card,
  .product-card,
  .metric-card {
    padding: 18px;
  }

  .hero-content {
    min-height: 500px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

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

  .metric-card.large,
  .span-2,
  .wide {
    grid-column: span 1;
  }

  .button {
    width: 100%;
  }

  .ocean-backdrop {
    opacity: 0.2;
  }

  .fish-school {
    width: 280px;
    right: -130px;
    top: 34vh;
  }

  .jellyfish {
    width: 110px;
    left: -36px;
    top: 58vh;
  }

  .reef-left {
    width: 180px;
    left: -76px;
  }

  .shell {
    width: 96px;
    right: -28px;
  }

  .marine-life {
    opacity: 0.25;
  }
}
