:root {
  --bg: #060608;
  --bg-elevated: rgba(255, 255, 255, 0.05);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f8f6f2;
  --muted: rgba(248, 246, 242, 0.72);
  --muted-strong: rgba(248, 246, 242, 0.56);
  --pink: #ff5fbb;
  --cyan: #8af4ee;
  --lavender: #b9b9ff;
  --gold: #ffd791;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 95, 187, 0.22), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(138, 244, 238, 0.18), transparent 22%),
    radial-gradient(circle at 50% 22%, rgba(185, 185, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #0a0910 0%, #050507 44%, #060608 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.04;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent 80%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-footer a:hover,
.company-list a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-button {
  min-width: 48px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-button.is-active {
  color: #09090c;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.button-primary {
  color: #09090c;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
}

.button-outline,
.button-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 96px 0;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 138px);
  padding-top: 64px;
}

.hero-copy,
.hero-media,
.problem-section,
.technology-section,
.workflow-section,
.application-section,
.founder-section,
.demo-section {
  animation: fade-up 780ms ease both;
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 215, 145, 0.9);
}

.eyebrow,
.panel-label,
.card-index,
.principle-label,
.company-list dt {
  margin: 0 0 18px;
  color: rgba(138, 244, 238, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  max-width: 9.6ch;
  font-size: clamp(3rem, 4.8vw, 4.6rem);
}

h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
}

h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
}

.hero-text,
.section-summary,
.info-card p,
.proof-card p,
.technology-feature p,
.flow-node p,
.benefit-card p,
.app-card p,
.founder-card p,
.company-card p,
.demo-card p,
.form-note,
.hero-panel-footer p {
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 44ch;
  margin: 24px 0 0;
  font-size: 1rem;
}

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

.proof-card,
.info-card,
.technology-feature,
.flow-node,
.benefit-card,
.app-card,
.founder-card,
.company-card,
.demo-card,
.demo-form {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.proof-card h3,
.info-card h3,
.technology-feature h3,
.benefit-card h3,
.app-card h3,
.company-card h3,
.demo-card h3 {
  margin-bottom: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-shot {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.section-shot,
.stack-shot,
.app-shot,
.gallery-card img,
.phone-shot {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.section-shot {
  margin: 24px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(240px, 0.66fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading > * {
  min-width: 0;
}

.section-heading h2 {
  max-width: none;
}

.section-summary {
  max-width: 42ch;
  margin: 0;
  font-size: 0.98rem;
}

.card-grid,
.application-layout {
  display: grid;
  gap: 22px;
}

.card-grid > *,
.application-layout > *,
.services-grid > *,
.technology-simple > *,
.company-simple > *,
.contact-simple > * {
  min-width: 0;
}

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

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

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

.about-copy p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.technology-simple {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.technology-copy {
  display: grid;
  gap: 28px;
}

.technology-summary {
  margin: 0;
  color: rgba(248, 246, 242, 0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

.technology-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.technology-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.technology-list dt {
  margin-bottom: 8px;
  color: rgba(138, 244, 238, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.technology-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

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

.service-item {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-item h3 {
  margin-bottom: 10px;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.app-card-wide {
  grid-column: span 2;
}

.app-shot {
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  object-fit: cover;
}

.phone-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.phone-shot {
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top;
}

.founder-role {
  margin: 10px 0 18px;
  color: rgba(248, 246, 242, 0.88);
  font-weight: 700;
}

.company-card-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.company-simple {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: start;
}

.company-intro {
  max-width: 32ch;
}

.company-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.company-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.company-list div {
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.company-list dt {
  margin-bottom: 8px;
}

.company-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-simple {
  max-width: 720px;
}

.demo-form {
  display: grid;
  gap: 18px;
}

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

.demo-form label {
  display: grid;
  gap: 10px;
  color: rgba(248, 246, 242, 0.88);
  font-weight: 600;
  min-width: 0;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: rgba(138, 244, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(138, 244, 238, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.demo-aside {
  display: grid;
  gap: 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 44px;
  color: rgba(248, 246, 242, 0.52);
  font-size: 0.92rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero,
  .about-copy,
  .technology-simple,
  .services-grid,
  .application-layout,
  .company-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    width: min(calc(100% - 20px), var(--max-width));
    border-radius: 30px;
    padding: 14px 16px;
  }

  .site-nav,
  .header-actions .button-outline {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

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

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.35rem, 8.5vw, 3.35rem);
    line-height: 1.01;
  }

  h2 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 7vw, 2.9rem);
    line-height: 1.04;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.12;
  }

  .hero-text,
  .section-summary,
  .info-card p,
  .proof-card p,
  .technology-feature p,
  .flow-node p,
  .benefit-card p,
  .app-card p,
  .founder-card p,
  .company-card p,
  .demo-card p,
  .form-note,
  .hero-panel-footer p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .section-heading {
    display: block;
    margin-bottom: 26px;
  }

  .section-summary {
    margin-top: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .info-card,
  .technology-feature,
  .app-card,
  .founder-card,
  .company-card,
  .demo-card,
  .demo-form {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .button,
  .hero-copy,
  .hero-media,
  .problem-section,
  .technology-section,
  .workflow-section,
  .application-section,
  .founder-section,
  .demo-section {
    animation: none;
  }
}
