:root {
  --bg: #070706;
  --panel: #141310;
  --panel-soft: rgba(20, 19, 16, 0.72);
  --text: #f7f3ea;
  --muted: #b9b0a1;
  --quiet: #81776a;
  --gold: #d1b16f;
  --blue: #71b7ff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(209, 177, 111, 0.18), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(113, 183, 255, 0.14), transparent 28rem),
    linear-gradient(180deg, #0d0c0a 0%, var(--bg) 48%, #0b0a09 100%);
  color: var(--text);
  font-family: "Avenir", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: min(220px, 48vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.hero,
.section,
.contact-section,
.project-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 4rem 0 5rem;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.45rem;
}

.lede,
.section-heading p,
.feature-card p,
.app-row p,
.film-card p,
.contact-section p {
  color: var(--muted);
}

.lede {
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #151008;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.clickable-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.clickable-card:hover {
  border-color: rgba(209, 177, 111, 0.48);
  background: rgba(28, 26, 22, 0.82);
  transform: translateY(-2px);
}

.clickable-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.hero-stack {
  position: relative;
  min-height: 560px;
}

.stack-image {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.stack-image.slate {
  width: 86%;
  right: 0;
  top: 8%;
}

.stack-image.poster {
  width: 31%;
  left: 0;
  bottom: 2%;
}

.intro-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: -1.5rem auto 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.intro-strip div {
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.intro-strip div:last-child {
  border-right: 0;
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip span {
  margin-top: 0.25rem;
  color: var(--muted);
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.feature-card,
.app-row article,
.app-tile,
.film-card,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.feature-card img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--gold);
  font-weight: 850;
  text-decoration: none;
}

.app-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.app-row article,
.app-tile {
  display: block;
  padding: 1.35rem;
}

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

.film-card {
  overflow: hidden;
}

.film-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.film-card div {
  padding: 1.35rem;
}

.project-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: 4rem 0 5rem;
}

.project-copy {
  max-width: 760px;
}

.project-meta,
.name-grid {
  display: grid;
  gap: 0.75rem;
}

.project-meta {
  margin-top: 1.5rem;
}

.project-meta span,
.name-grid span {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.project-poster {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-poster.location {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.ikagido-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
}

.ikagido-demo {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(137, 214, 177, 0.14), transparent 14rem),
    radial-gradient(circle at 80% 70%, rgba(209, 177, 111, 0.18), transparent 14rem),
    var(--panel-soft);
  box-shadow: var(--shadow);
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-top span {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 850;
}

.nudge-card {
  padding: 1.4rem;
  border: 1px solid rgba(209, 177, 111, 0.4);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
}

.nudge-card small {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nudge-card strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
}

.nudge-card p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.history-mini {
  display: grid;
  gap: 0.65rem;
}

.history-mini span {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.ikagido-page-hero {
  width: min(1180px, calc(100% - 2rem));
  min-height: calc(82vh - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  padding: 4.5rem 0 2.25rem;
}

.ikagido-hero-copy {
  max-width: 640px;
}

.pronounce {
  margin: -0.7rem 0 1.2rem;
  color: var(--gold);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.ikagido-demo-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(137, 214, 177, 0.15), transparent 15rem),
    radial-gradient(circle at 82% 72%, rgba(209, 177, 111, 0.2), transparent 15rem),
    rgba(20, 19, 16, 0.78);
  box-shadow: var(--shadow);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.scroll-cue::after {
  content: "↓";
  margin-left: 0.45rem;
  color: var(--gold);
}

.scroll-cue:hover {
  border-color: var(--gold);
  color: var(--text);
}

.inline-scroll-cue {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.inline-scroll-cue::after {
  content: "↓";
  margin-left: 0.45rem;
  color: var(--gold);
}

.inline-scroll-cue:hover {
  color: var(--text);
}

.demo-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.demo-controls label {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.demo-controls label > span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  padding: 0 0.65rem;
}

.energy-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.energy-selector button {
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.energy-selector button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #151008;
}

.nudge-button {
  width: 100%;
  min-height: 58px;
  margin: 1rem 0;
  border: 1px solid rgba(209, 177, 111, 0.5);
  border-radius: 8px;
  background: rgba(209, 177, 111, 0.16);
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 850;
  cursor: pointer;
}

.nudge-button:hover {
  background: rgba(209, 177, 111, 0.24);
}

.suggestion-box {
  padding: 1.4rem;
  border: 1px solid rgba(209, 177, 111, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
}

.suggestion-box small,
.suggestion-box span,
.suggestion-box strong {
  display: block;
}

.suggestion-box small {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.suggestion-box strong {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.08;
}

.suggestion-box span {
  margin-top: 1rem;
  color: var(--muted);
}

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

.history-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-item small {
  color: var(--quiet);
}

.how-it-works {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.how-it-works h2 span {
  color: var(--gold);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.step {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.contact-section div {
  max-width: 720px;
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--quiet);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .project-hero,
  .ikagido-hero,
  .ikagido-page-hero,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .demo-controls,
  .ikagido-story,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-stack {
    min-height: 430px;
  }

  .intro-strip,
  .app-row,
  .film-grid {
    grid-template-columns: 1fr;
  }

  .intro-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip div:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 620px) {
  .hero,
  .section,
  .contact-section,
  .project-hero,
  .ikagido-page-hero {
    width: min(100% - 1rem, 1180px);
  }

  .ikagido-page-hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-stack {
    min-height: 340px;
  }

  .stack-image.slate {
    width: 94%;
  }

  .stack-image.poster {
    width: 38%;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }
}
