:root {
  --ink: #073738;
  --muted: rgba(7, 55, 56, 0.66);
  --faint: rgba(67, 190, 205, 0.13);
  --line: rgba(46, 157, 176, 0.24);
  --deep: #dff9f8;
  --panel: rgba(247, 255, 253, 0.72);
  --panel-soft: rgba(223, 248, 248, 0.72);
  --aqua: #5ac9dc;
  --aqua-strong: #9eeaf1;
  --glow: rgba(95, 207, 222, 0.28);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% -8%, rgba(148, 238, 246, 0.42), transparent 38rem),
    radial-gradient(circle at 10% 52%, rgba(196, 248, 249, 0.55), transparent 34rem),
    radial-gradient(circle at 88% 88%, rgba(89, 199, 222, 0.16), transparent 32rem),
    linear-gradient(180deg, #ecfffd 0%, #d8f7f7 46%, #eefdf9 100%);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(46, 157, 176, 0.18);
  background: rgba(242, 255, 253, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(64, 195, 216, 0.22));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.3vw, 2rem);
  color: rgba(7, 55, 56, 0.62);
  font-size: 0.9rem;
  font-weight: 800;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--ink);
}

.menu-button {
  display: none;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-weight: 800;
}

.contract-panel {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.contract-panel strong {
  color: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(4rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.06);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(236, 255, 253, 0.84) 0%, rgba(231, 253, 252, 0.42) 35%, rgba(231, 253, 252, 0.02) 76%),
    linear-gradient(180deg, rgba(226, 250, 250, 0.12), rgba(217, 247, 247, 0.42));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
  max-width: min(45rem, 62vw);
  align-self: end;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.kicker {
  margin: 0 0 1rem;
  color: var(--aqua);
  font-family: "Space Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(95, 207, 222, 0.18);
}

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

h1,
h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.85rem;
  color: #073738;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(4.2rem, 8.6vw, 8.8rem);
  font-weight: 400;
  line-height: 0.86;
  text-transform: lowercase;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.62),
    0 18px 58px rgba(62, 156, 166, 0.18);
}

h2 {
  max-width: 16ch;
  margin-bottom: 0;
  color: #073738;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.42);
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.hero-copy > p:not(.kicker) {
  max-width: 28rem;
  margin-bottom: 0.9rem;
}

.hero-actions,
.button-row,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button {
  padding: 0 1.25rem;
}

.button.primary {
  border-color: rgba(7, 55, 56, 0.18);
  background: #073738;
  color: #effffd;
  box-shadow:
    0 0 24px rgba(92, 205, 222, 0.18),
    0 20px 60px rgba(91, 203, 220, 0.2);
}

.button.ghost,
.chip {
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chip {
  min-height: 42px;
  padding: 0 0.95rem;
}

.chip.active {
  background: rgba(124, 226, 238, 0.28);
  border-color: rgba(46, 157, 176, 0.38);
}

.contract-panel {
  display: grid;
  gap: 0.28rem;
  width: min(100%, 390px);
  margin-top: 1.05rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(46, 157, 176, 0.24);
  border-left: 2px solid rgba(46, 157, 176, 0.78);
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 226, 238, 0.22), transparent 16rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    rgba(244, 255, 253, 0.66);
  cursor: copy;
  box-shadow:
    0 0 42px rgba(95, 207, 222, 0.12),
    0 18px 80px rgba(52, 143, 155, 0.14);
}

.contract-panel span {
  color: rgba(7, 55, 56, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contract-panel strong {
  font-size: clamp(0.72rem, 1.25vw, 0.98rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contract-panel small {
  color: rgba(7, 55, 56, 0.48);
  font-size: 0.72rem;
}

.studio-section {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1rem, 4vw, 4rem);
  scroll-margin-top: 72px;
}

.signal-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(46, 157, 176, 0.16);
  border-bottom: 1px solid rgba(46, 157, 176, 0.16);
  background: rgba(46, 157, 176, 0.16);
}

.signal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 226, 238, 0.18), transparent 18rem),
    rgba(249, 255, 253, 0.72);
}

.signal-item span {
  color: rgba(7, 55, 56, 0.44);
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.signal-item strong {
  color: rgba(7, 55, 56, 0.86);
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.32);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 1.5rem;
}

.section-heading h2 {
  max-width: 18ch;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(300px, 560px) minmax(320px, 488px);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
}

.preview-panel,
.control-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(238, 253, 248, 0.045), rgba(238, 253, 248, 0.012)),
    var(--panel);
  box-shadow:
    0 0 42px rgba(95, 207, 222, 0.1),
    0 24px 90px rgba(52, 143, 155, 0.14);
  backdrop-filter: blur(18px);
}

.preview-panel {
  padding: clamp(0.6rem, 1.4vw, 1rem);
  border-radius: 20px;
  align-self: start;
}

canvas {
  display: block;
  width: 100%;
  max-width: 528px;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  background: #dff9f8;
  cursor: grab;
  touch-action: none;
}

canvas.dragging {
  cursor: grabbing;
}

.control-panel {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(0.95rem, 1.6vw, 1.15rem);
  border-radius: 20px;
}

.upload-drop {
  position: relative;
  display: grid;
  gap: 0.34rem;
  min-height: 104px;
  place-items: center;
  padding: 1rem;
  border: 1px dashed rgba(46, 157, 176, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(141, 255, 239, 0.12), transparent 14rem),
    rgba(255, 255, 255, 0.42);
  text-align: center;
  cursor: pointer;
}

.upload-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

label {
  display: grid;
  gap: 0.42rem;
}

.upload-drop span,
label span,
.range-row label {
  color: var(--aqua);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.upload-drop strong {
  color: var(--ink);
  font-size: 1rem;
}

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

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  outline: none;
  padding: 0 0.85rem;
  font-weight: 750;
}

input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(189, 247, 236, 0.12);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--aqua);
}

.range-row {
  display: grid;
  gap: 0.5rem;
}

.mobile-close {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.4rem;
    padding: 5rem 1.1rem 1.1rem;
    background:
      linear-gradient(180deg, rgba(236, 255, 253, 0.92), rgba(219, 248, 248, 0.78)),
      url("assets/inner-peace-hero-sky.png") center / cover;
    backdrop-filter: blur(18px);
  }

  .mobile-nav.open {
    display: grid;
  }

  .mobile-nav a {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--ink);
    font-weight: 800;
  }

  .mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 84svh;
    align-items: end;
  }

  .hero-image {
    object-position: 74% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(236, 255, 253, 0.24), rgba(226, 250, 250, 0.7) 78%),
      linear-gradient(90deg, rgba(236, 255, 253, 0.76), rgba(236, 255, 253, 0.08));
  }

  .hero-copy {
    align-self: end;
    padding-top: 0;
    max-width: 100%;
  }

  .section-heading,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .signal-section {
    grid-template-columns: 1fr;
  }

  .signal-item {
    min-height: 74px;
    padding: 1rem 1.1rem;
  }

}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 4.55rem);
  }

  h2 {
    font-size: clamp(2.45rem, 13vw, 4.3rem);
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .chip {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }

}
