:root {
  --color-page: #0d0d0b;
  --color-page-deep: #050505;
  --color-surface: rgba(23, 23, 21, 0.9);
  --color-surface-strong: #171715;
  --color-surface-soft: rgba(38, 37, 33, 0.58);
  --color-border: rgba(214, 205, 188, 0.18);
  --color-border-strong: rgba(214, 205, 188, 0.3);
  --color-text: #f3eee6;
  --color-muted: #d8d0c2;
  --color-subtle: #a99f90;
  --color-brand: #f97316;
  --color-brand-soft: rgba(249, 115, 22, 0.14);
  --color-app: #1fb8a5;
  --color-app-soft: rgba(31, 184, 165, 0.14);
  --shadow-lg: 0 28px 68px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.24);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --max-width: 1120px;
  --font-stack: 'Inter', 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-stack);
  color: var(--color-text);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.08), transparent 38%),
    linear-gradient(225deg, rgba(31, 184, 165, 0.08), transparent 42%),
    linear-gradient(180deg, var(--color-page), var(--color-page-deep));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.app-page {
  background:
    linear-gradient(135deg, rgba(31, 184, 165, 0.14), transparent 42%),
    linear-gradient(225deg, rgba(14, 165, 233, 0.08), transparent 44%),
    linear-gradient(180deg, var(--color-page), var(--color-page-deep));
}

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

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

a:hover {
  color: #ffffff;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

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

.site-shell {
  width: min(100%, calc(var(--max-width) + 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 34px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark__sigil {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(31, 184, 165, 0.12));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark__name,
.brand-mark__meta {
  display: block;
  line-height: 1.15;
}

.brand-mark__name {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark__meta {
  color: var(--color-subtle);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav,
.site-footer__links,
.project-card__links,
.doc-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a,
.project-card__links a,
.doc-nav a {
  color: var(--color-subtle);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-footer a:hover,
.project-card__links a:hover,
.doc-nav a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 40px;
  align-items: end;
  min-height: min(720px, calc(100vh - 128px));
  padding: clamp(44px, 7vw, 88px) 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hero--app {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
}

.hero__watermark {
  position: absolute;
  width: min(78vw, 760px);
  top: 0;
  right: -10%;
  opacity: 0.1;
  filter: invert(1) brightness(2.2);
  pointer-events: none;
}

.hero__content,
.hero__panel,
.app-icon-showcase {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-page .eyebrow,
.project-card__kicker,
.legal-content h2,
.support-panel h2 {
  color: var(--color-app);
}

h1,
h2,
h3 {
  margin: 0;
  color: #ffffff;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

.hero__lead {
  max-width: 670px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  font-weight: 750;
  color: #ffffff;
}

.button--primary {
  border-color: rgba(249, 115, 22, 0.48);
  background: linear-gradient(135deg, var(--color-brand), #ea580c);
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.24);
}

.app-page .button--primary {
  border-color: rgba(31, 184, 165, 0.5);
  background: linear-gradient(135deg, var(--color-app), #34d399);
  color: #052e2b;
  box-shadow: 0 16px 40px rgba(31, 184, 165, 0.2);
}

.button--ghost {
  background: rgba(23, 23, 21, 0.7);
}

.hero__panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(10, 10, 9, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.hero__panel > div {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(23, 23, 21, 0.72);
}

.metric,
.metric-label {
  display: block;
}

.metric {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.metric-label {
  margin-top: 4px;
  color: var(--color-subtle);
  font-size: 0.92rem;
}

.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section--tight {
  padding-bottom: clamp(48px, 7vw, 84px);
}

.section__header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section__header p {
  margin-top: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card,
.content-panel,
.support-panel,
.legal-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.project-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 292px;
  overflow: hidden;
}

.project-card__media {
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(31, 184, 165, 0.22), rgba(5, 5, 5, 0.18)),
    linear-gradient(180deg, rgba(38, 37, 33, 0.9), rgba(14, 14, 12, 0.84));
}

.project-card__media img,
.app-icon-showcase img {
  border-radius: 22%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.project-card__body {
  padding: 28px;
}

.project-card__kicker {
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.project-card p {
  margin-top: 12px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.project-card__tags span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(31, 184, 165, 0.24);
  border-radius: var(--radius-sm);
  background: var(--color-app-soft);
  color: #c7fff8;
  font-size: 0.82rem;
  font-weight: 700;
}

.studio-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--color-border);
}

.studio-band__copy {
  display: grid;
  gap: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 0 10px;
  border-top: 1px solid var(--color-border);
  color: var(--color-subtle);
  font-size: 0.9rem;
}

.app-icon-showcase {
  justify-self: center;
  width: min(100%, 290px);
  padding: 18px;
  border: 1px solid rgba(31, 184, 165, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(31, 184, 165, 0.18), rgba(5, 5, 5, 0.18)),
    rgba(10, 10, 9, 0.52);
}

.app-icon-showcase img {
  width: 100%;
}

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

.content-panel {
  padding: 24px;
}

.content-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.doc-layout {
  max-width: 860px;
  margin: 0 auto;
}

.doc-header {
  padding: 34px 0;
}

.doc-header h1 {
  font-size: clamp(2.2rem, 6vw, 4.1rem);
}

.doc-header p {
  margin-top: 12px;
}

.doc-nav {
  margin-top: 22px;
}

.legal-content,
.support-panel {
  padding: clamp(22px, 5vw, 42px);
}

.legal-content h2 {
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.25rem;
  line-height: 1.25;
}

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

.legal-content p,
.legal-content ul,
.support-panel p {
  margin-top: 16px;
}

.legal-content ul {
  padding-left: 22px;
  color: var(--color-muted);
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a,
.support-panel a {
  color: #67e8d8;
  font-weight: 700;
}

.support-stack {
  display: grid;
  gap: 18px;
}

.support-panel h2 {
  font-size: 1.25rem;
}

.email-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 1.05rem;
}

@media (max-width: 820px) {
  .site-shell {
    padding: 18px;
  }

  .site-header,
  .site-footer,
  .studio-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .hero--app,
  .studio-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: clamp(30px, 8vw, 48px);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__media {
    min-height: 220px;
  }

  .project-card__media img {
    width: min(210px, 74%);
  }
}

@media (max-width: 520px) {
  .site-nav,
  .hero__actions,
  .doc-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 6px 0;
  }

  .button {
    width: 100%;
  }

  .project-card__body {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
