:root {
  --black: #050505;
  --ink: #111111;
  --panel: #202020;
  --panel-soft: #282828;
  --paper: #f6f3ec;
  --white: #ffffff;
  --muted: #b9b9b9;
  --line: rgba(255, 255, 255, 0.13);
  --mint: #6eb486;
  --cyan: #6fb9d6;
  --amber: #d7aa60;
  --red: #d26e61;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(110, 180, 134, 0.45);
}

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

section[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 80px;
  padding: 18px clamp(18px, 6vw, 76px);
  background: rgba(30, 30, 30, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #111;
  font-size: 24px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  font-size: 15px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--mint);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.header-action {
  min-width: 116px;
  padding: 0 18px;
  background: var(--white);
  color: var(--black);
}

.hero {
  position: relative;
  min-height: calc(82svh - 80px);
  overflow: hidden;
  isolation: isolate;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.24) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 36px));
  padding: clamp(66px, 10vw, 118px) 0 clamp(46px, 8vw, 82px);
  margin-left: clamp(18px, 7vw, 86px);
  animation: heroIn 760ms ease both;
}

.eyebrow,
.section-label,
.status {
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(74px, 12vw, 164px);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-width: 148px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--mint);
  color: #071008;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.button-primary:hover {
  background: #86c99b;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.intro,
.portfolio,
.contact {
  padding: clamp(72px, 10vw, 118px) clamp(18px, 6vw, 76px);
}

.intro {
  padding-top: clamp(42px, 6vw, 72px);
  background: var(--paper);
  color: var(--ink);
}

.intro .section-label,
.portfolio .section-label,
.contact .section-label {
  color: #4c8b62;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
  margin-top: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
  word-break: keep-all;
}

.intro p,
.section-heading p,
.app-copy p,
.principles p,
.contact p {
  line-height: 1.72;
  word-break: keep-all;
}

.intro p {
  margin: 8px 0 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: clamp(16px, 1.8vw, 20px);
}

.apps-section {
  padding: clamp(72px, 10vw, 120px) clamp(18px, 6vw, 76px);
  background: #1f1f1f;
}

.section-heading {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 940px;
  margin: 0 auto clamp(36px, 6vw, 62px);
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.8vw, 20px);
}

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

.app-panel {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  overflow: hidden;
  padding: 28px 20px 0;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.app-panel:hover {
  transform: translateY(-8px);
  background: var(--panel-soft);
  border-color: rgba(255, 255, 255, 0.18);
}

.app-copy {
  width: 100%;
  min-height: 178px;
}

.app-copy h3 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 2.35vw, 32px);
  line-height: 1.16;
  letter-spacing: 0;
  word-break: keep-all;
}

.app-copy p:not(.status) {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.status.live {
  color: var(--mint);
}

.status.ready {
  color: var(--amber);
}

.phone {
  position: relative;
  align-self: end;
  width: min(78%, 214px);
  aspect-ratio: 0.49;
  margin-top: 24px;
  border: 10px solid #050505;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.12), transparent 23%),
    #0c0c0c;
  box-shadow:
    0 32px 48px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: translateY(16px);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 48px;
  height: 6px;
  border-radius: 999px;
  background: #1b1b1b;
  transform: translateX(-50%);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 30%);
  pointer-events: none;
}

.screen-title,
.screen-line,
.wheel,
.image-stack,
.timer-ring,
.bar-chart {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.screen-title {
  top: 58px;
  width: 58%;
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.screen-line {
  bottom: 86px;
  width: 62%;
  height: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

.screen-line.short {
  bottom: 112px;
  width: 42%;
}

.wheel {
  top: 110px;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--mint), #f2f2f2, var(--cyan), #2c2c2c, var(--mint)),
    #222;
}

.image-stack {
  top: 112px;
  width: 118px;
  height: 150px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)),
    linear-gradient(45deg, var(--cyan), #2e5965);
  border-radius: 8px;
  box-shadow:
    -16px 18px 0 rgba(111, 185, 214, 0.36),
    14px -12px 0 rgba(255, 255, 255, 0.12);
}

.timer-ring {
  top: 114px;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0 74%, rgba(255, 255, 255, 0.14) 74% 100%);
}

.timer-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #101010;
}

.bar-chart {
  top: 130px;
  width: 126px;
  height: 108px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(to top, var(--red) 0 68%, transparent 68%) 8px bottom / 22px 100% no-repeat,
    linear-gradient(to top, rgba(255, 255, 255, 0.72) 0 46%, transparent 46%) 42px bottom / 22px 100% no-repeat,
    linear-gradient(to top, var(--mint) 0 84%, transparent 84%) 76px bottom / 22px 100% no-repeat;
}

.portfolio {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 96px);
  align-items: start;
  background: var(--paper);
  color: var(--ink);
}

.app-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.app-list li {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  font-size: clamp(18px, 2vw, 24px);
}

.app-list b {
  color: rgba(17, 17, 17, 0.5);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio {
  padding: clamp(72px, 10vw, 120px) clamp(18px, 6vw, 76px);
  background: #090909;
}

.studio-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 8vw, 100px);
  align-items: start;
}

.principles {
  display: grid;
  gap: 22px;
}

.principles p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.7);
}

.principles strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 20px;
}

.contact {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  background: #181818;
}

.contact h2 {
  max-width: 900px;
  margin-top: 14px;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 6vw, 76px);
  background: #050505;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    order: 3;
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
    gap: 16px;
  }

  .brand {
    font-size: 28px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .nav-links {
    display: none;
  }

  .header-action {
    min-width: 104px;
    min-height: 42px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(80svh - 70px);
  }

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

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.75) 62%, rgba(0, 0, 0, 0.34) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, transparent 42%);
  }

  .hero-content {
    width: min(560px, calc(100% - 36px));
    padding-top: 74px;
    padding-bottom: 76px;
  }

  .hero h1 {
    font-size: clamp(68px, 22vw, 104px);
  }

  .hero-copy {
    max-width: 440px;
    font-size: 16px;
  }

  .intro-grid,
  .portfolio,
  .studio-inner {
    grid-template-columns: 1fr;
  }

  .app-showcase {
    grid-template-columns: 1fr;
  }

  .app-panel {
    min-height: 560px;
  }

  .phone {
    width: min(68%, 194px);
  }

  .contact {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand span:last-child {
    font-size: 25px;
  }

  .header-action {
    min-width: 92px;
    padding-inline: 12px;
  }

  .hero-content {
    margin-left: 18px;
  }

  .button {
    width: 100%;
  }

  .app-list li {
    display: grid;
    justify-content: stretch;
    gap: 6px;
    padding: 16px 0;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
