:root {
  --bg: #0a0a0a;
  --bg-2: #101313;
  --surface: rgba(24, 27, 27, 0.78);
  --surface-solid: #171a1a;
  --surface-soft: #202425;
  --surface-high: #282d2e;
  --text: #f4f7f7;
  --muted: #b9c7c8;
  --subtle: #7f9092;
  --line: rgba(185, 202, 203, 0.16);
  --line-strong: rgba(0, 242, 255, 0.34);
  --primary: #e1fdff;
  --accent: #00dbe7;
  --accent-strong: #00f2ff;
  --accent-ink: #002d31;
  --warning-bg: #fff0b8;
  --warning-text: #463600;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 219, 231, 0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #0a0a0a 0%, #101313 54%, #0a0a0a 100%);
  background-color: var(--bg);
  background-size: 86px 86px, 132px 132px, auto;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    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: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 82%);
}

.shader-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.shader-background canvas {
  display: block;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
}

svg {
  max-width: 100%;
}

mark {
  display: inline;
  padding: 0.08rem 0.24rem;
  color: var(--warning-text);
  background: var(--warning-bg);
  border-radius: 4px;
}

.shell {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.content-narrow,
.legal-content {
  max-width: 880px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  color: var(--accent-ink);
  background: var(--accent-strong);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 0 28px rgba(0, 242, 255, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: rgba(0, 219, 231, 0.09);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle-line {
  position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-line::before {
  top: -0.38rem;
}

.nav-toggle-line::after {
  top: 0.38rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 20, 20, 0.58);
}

.hero-grid,
.page-hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 4.7rem;
  line-height: 1.02;
  font-weight: 820;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 760;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.28rem;
  line-height: 1.3;
  font-weight: 730;
}

.lead {
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1.45;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow),
.section p,
.section li {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button-row.compact {
  align-content: start;
  margin-top: 0.3rem;
}

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transform: translate3d(var(--motion-x, 0), var(--motion-y, 0), 0);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, filter 160ms ease, transform 180ms ease-out;
  will-change: transform;
}

.button:hover {
  filter: brightness(1.05);
}

.button.primary {
  color: var(--accent-ink);
  background: var(--accent-strong);
  box-shadow: 0 0 26px rgba(0, 242, 255, 0.18);
}

.button.primary:hover {
  color: var(--accent-ink);
  box-shadow: 0 0 34px rgba(0, 242, 255, 0.28);
}

.button.secondary {
  color: var(--text);
  background: rgba(24, 27, 27, 0.54);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: rgba(32, 36, 37, 0.75);
}

.hero-visual,
.app-symbol {
  justify-self: end;
  width: min(100%, 440px);
}

.hero-visual,
.app-symbol,
.app-card,
.principle-card,
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translate3d(var(--motion-x, 0), var(--motion-y, 0), 0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 220ms ease-out;
  will-change: transform;
}

.hero-visual {
  padding: 1.2rem;
}

.stitch-octopus-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 22px rgba(0, 242, 255, 0.22));
}

.play-store-icon-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 34px;
  background: #020404;
  box-shadow: 0 0 26px rgba(0, 242, 255, 0.18);
}

.signal-graphic rect,
.signal-graphic circle,
.app-symbol circle {
  fill: rgba(0, 219, 231, 0.05);
  stroke: var(--accent-strong);
  stroke-width: 9;
}

.signal-graphic path,
.app-symbol path {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 9;
  opacity: 0.88;
}

.octopus-graphic {
  display: block;
}

.octopus-frame {
  fill: #020404;
  stroke: rgba(0, 242, 255, 0.18);
  stroke-width: 1;
  filter: drop-shadow(0 0 18px rgba(0, 242, 255, 0.28));
}

.octopus-aura {
  fill: url("#octopus-line");
  opacity: 0.06;
}

.octopus-shell,
.octopus-vein,
.octopus-face,
.octopus-tentacle,
.octopus-sucker-path,
.octopus-eye-ring {
  fill: none;
  stroke: url("#octopus-line");
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url("#octopus-glow");
}

.octopus-shell.outer {
  stroke-width: 2.2;
}

.octopus-shell.inner,
.octopus-vein,
.octopus-face {
  stroke-width: 1.45;
  opacity: 0.78;
}

.octopus-eye-ring {
  stroke-width: 3;
}

.octopus-tentacle.fine {
  stroke-width: 2;
  opacity: 0.88;
}

.octopus-sucker-path {
  stroke-width: 1.1;
  opacity: 0.46;
}

.octopus-eye,
.octopus-suckers circle {
  fill: var(--accent-strong);
  filter: url("#octopus-glow");
}

.octopus-suckers circle {
  opacity: 0.72;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: rgba(12, 15, 15, 0.62);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.6rem;
  align-items: start;
  padding: 2rem;
  overflow: hidden;
}

.app-card h3 {
  font-size: 1.8rem;
}

.app-card::after {
  content: "LOCAL_WORKFLOW";
  align-self: end;
  justify-self: end;
  color: rgba(0, 242, 255, 0.44);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.note {
  padding-left: 0.95rem;
  color: var(--primary) !important;
  border-left: 2px solid var(--accent-strong);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.principle-card,
.info-panel {
  padding: 1.35rem;
}

.principle-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.principle-card h3::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--accent-strong);
}

.app-symbol {
  padding: 1.5rem;
}

.two-column {
  align-items: start;
}

.check-list {
  display: grid;
  gap: 0.72rem;
  padding-left: 1.2rem;
}

.check-list li::marker {
  color: var(--accent-strong);
}

.data-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.data-list div {
  display: grid;
  gap: 0.15rem;
}

.data-list dt {
  color: var(--text);
  font-weight: 730;
}

.data-list dd {
  margin: 0;
  color: var(--muted);
}

.legal-section {
  padding-top: 3.2rem;
}

.legal-content {
  padding: 2rem;
  background: rgba(18, 20, 20, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1.28rem;
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-content ul {
  padding-left: 1.3rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.3rem 0;
  color: var(--muted);
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem 1.5rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent-strong);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-contact {
  grid-column: 1 / -1;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .lead {
    font-size: 1.15rem;
  }

  .header-inner {
    min-height: 64px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    border-radius: var(--radius);
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero-grid,
  .page-hero-grid,
  .two-column,
  .app-card,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .app-symbol {
    justify-self: start;
    width: min(100%, 360px);
  }

  .app-card::after {
    justify-self: start;
  }

  .app-card .button-row {
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 1.2rem, 1180px);
  }

  h1 {
    font-size: 2.55rem;
  }

  .section,
  .page-hero {
    padding: 3.2rem 0;
  }

  .button {
    width: 100%;
  }

  .app-card,
  .legal-content {
    padding: 1.2rem;
  }
}
