:root {
  --bg: #08111d;
  --bg-soft: #101b2a;
  --panel: rgba(8, 15, 28, 0.82);
  --panel-strong: rgba(10, 18, 32, 0.94);
  --line: rgba(180, 210, 255, 0.15);
  --line-strong: rgba(255, 232, 178, 0.2);
  --text: #eff5ff;
  --muted: #a8b7cc;
  --gold: #f3cb72;
  --cyan: #97f0ff;
  --mint: #7ee7cb;
  --rose: #ffb6d6;
  --button-dark: #13263d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at top, rgba(54, 104, 184, 0.28), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(120, 219, 195, 0.14), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #04070d 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1px),
    radial-gradient(circle at 44% 80%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px);
  background-size: 260px 260px, 320px 320px, 360px 360px;
  opacity: 0.45;
  pointer-events: none;
}

body.install-page::before {
  opacity: 0.32;
}

img {
  max-width: 100%;
}

body.promo-page {
  padding: 24px;
}

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

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.ambient-a {
  width: 260px;
  height: 260px;
  top: 5%;
  right: -70px;
  background: rgba(151, 240, 255, 0.12);
}

.ambient-b {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 8%;
  background: rgba(255, 182, 214, 0.1);
}

.site-header,
.hero-section,
.split-section,
.cta-section,
.install-card {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 15, 28, 0.74);
  backdrop-filter: blur(14px);
}

.brand,
.header-actions,
.hero-actions,
.badge-row,
.install-topbar,
.install-brand {
  display: flex;
}

.brand {
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.brand-kicker,
.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-actions {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch a,
.primary-button,
.secondary-button,
.ghost-button,
.text-link,
button {
  transition: 180ms ease;
}

.lang-switch a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch a.active {
  color: #06101d;
  background: linear-gradient(135deg, var(--gold), #fff1bf);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 12ch;
}

h3 {
  font-size: 1.7rem;
}

p,
li,
span {
  line-height: 1.55;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
  padding: 32px 0 28px;
}

.hero-copy,
.hero-visual-panel,
.content-section,
.feature-card,
.install-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual-panel {
  border-radius: 32px;
  padding: 28px;
}

.hero-lead,
.section-copy-grid p,
.feature-card p,
.timeline-list p,
.cta-section p,
.install-copy,
.install-note {
  color: var(--muted);
}

.hero-actions {
  gap: 12px;
  margin: 24px 0 18px;
  flex-wrap: wrap;
}

.hero-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pill {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(243, 203, 114, 0.08);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-art {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  max-height: 320px;
}

.stat-grid,
.feature-grid-section,
.timeline-list,
.section-copy-grid {
  display: grid;
}

.stat-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-grid article,
.feature-card,
.timeline-list article {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.stat-grid strong,
.timeline-list strong {
  display: block;
  margin-bottom: 6px;
}

.content-section {
  margin-top: 22px;
  border-radius: 30px;
  padding: 28px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.section-copy-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-grid-section {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.accent-card {
  border-color: rgba(243, 203, 114, 0.28);
  background: linear-gradient(180deg, rgba(243, 203, 114, 0.12), rgba(255, 255, 255, 0.02));
}

.timeline-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.timeline-list {
  gap: 14px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.primary-button,
.secondary-button,
.ghost-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-button,
button {
  border: 0;
  color: #07111e;
  background: linear-gradient(135deg, var(--gold), #fff1bf);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.secondary-button,
.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

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

.install-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 20px;
}

.minimal-install-page {
  background: linear-gradient(180deg, #f7f1e3 0%, #efe6d3 100%);
  color: #18212b;
}

.install-shell {
  width: 100%;
}

.install-card {
  max-width: 540px;
  padding: 22px;
  border-radius: 30px;
  background: var(--panel-strong);
}

.minimal-install-card {
  max-width: 420px;
  padding: 28px 22px 22px;
  border-radius: 24px;
  border: 1px solid rgba(102, 84, 47, 0.14);
  background: rgba(255, 251, 244, 0.96);
  box-shadow: 0 22px 50px rgba(92, 73, 36, 0.12);
}

.install-brand {
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.minimal-install-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.minimal-install-brand .brand-logo {
  width: 68px;
  height: 68px;
}

.app-name {
  margin: 0;
  color: #8b6a24;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.install-card h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  max-width: none;
}

.minimal-install-card h1 {
  font-size: clamp(2rem, 7vw, 2.8rem);
}

.minimal-install-copy {
  margin: 0 0 18px;
  color: #5f6670;
  text-align: center;
}

.simple-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.minimal-form {
  margin-top: 0;
}

.field-label {
  color: #25303b;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(114, 96, 63, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: #0b1522;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus {
  outline: 2px solid rgba(196, 156, 68, 0.45);
  outline-offset: 2px;
}

input::placeholder {
  color: #66768e;
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
}

.form-status.success {
  color: #2f7a57;
}

.form-status.error {
  color: #b24b5c;
}

.install-result {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.minimal-install-result {
  justify-items: end;
}

.install-warning {
  margin: 0;
  max-width: 260px;
  color: #736b60;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

.install-text-link {
  color: #5f6670;
  font-size: 0.86rem;
  font-weight: 400;
  text-decoration: none;
}

.install-text-link:hover {
  color: #1f2a36;
  text-decoration: underline;
}

.install-link-button {
  width: 100%;
}

@media (max-width: 920px) {
  body.promo-page {
    padding: 14px;
  }

  .site-header,
  .hero-section,
  .split-section,
  .timeline-section,
  .cta-section,
  .feature-grid-section,
  .section-copy-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .cta-section,
  .install-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .hero-visual-panel,
  .content-section,
  .install-card {
    padding: 22px;
  }

  .feature-grid-section {
    display: grid;
  }
}

@media (max-width: 560px) {
  .header-actions,
  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  button {
    width: 100%;
  }

  .site-header,
  .install-card {
    border-radius: 22px;
  }

  .hero-copy,
  .hero-visual-panel,
  .content-section {
    border-radius: 24px;
  }
}

.home-page {
  color: #243123;
  background: linear-gradient(180deg, #f8f7f2 0%, #f2f1ea 100%);
}

.home-page::before {
  display: none;
}

.home-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 52px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.wordmark {
  color: #294023;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  text-decoration: none;
}

.home-lang-switch {
  border-color: rgba(95, 125, 73, 0.16);
  background: rgba(255, 252, 244, 0.8);
}

.home-lang-switch a {
  color: #5f6d57;
}

.home-kicker {
  color: #6d7a68;
}

.project-image {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

.projects-section {
  display: grid;
  gap: 18px;
}

.projects-heading h2 {
  max-width: none;
  color: #22331f;
}

.projects-heading h1 {
  max-width: none;
  color: #22331f;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.projects-heading p {
  margin: 10px 0 0;
  color: #576753;
}

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

.project-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(119, 139, 81, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(95, 101, 73, 0.08);
}

.project-card h2 {
  max-width: none;
  color: #20301c;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.project-card p {
  margin: 0;
  color: #5b6958;
}

.project-card-muted {
  align-content: start;
  background: rgba(252, 251, 246, 0.94);
}

.project-card-featured .project-image {
  aspect-ratio: 1.45 / 1;
}

.project-app-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-app-lockup-simple {
  min-height: 64px;
}

.project-app-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(81, 92, 70, 0.1);
}

.project-app-subtitle {
  margin: 4px 0 0;
  color: #6d7767;
  font-size: 0.92rem;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-category,
.project-status,
.project-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-status {
  color: #83612d;
  background: rgba(255, 222, 138, 0.32);
}

.project-status.is-live {
  color: #2e6b44;
  background: rgba(144, 222, 168, 0.34);
}

.project-button {
  width: fit-content;
  min-width: 0;
}

.project-note {
  width: fit-content;
  color: #6a6658;
  background: rgba(218, 207, 174, 0.38);
}

@media (max-width: 920px) {
  .home-header,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .home-header {
    display: grid;
    justify-content: flex-start;
  }

  .project-grid {
    display: grid;
  }
}

@media (max-width: 640px) {
  .home-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

  .projects-heading h1,
  .project-card h2 {
    max-width: 11ch;
  }

  .project-button {
    width: 100%;
  }

  .project-button {
    justify-content: center;
  }

  .project-app-lockup {
    align-items: flex-start;
  }
}
