:root {
  --white: #fffaf8;
  --white-soft: rgba(255, 250, 248, 0.78);
  --white-muted: rgba(255, 250, 248, 0.58);
  --line: rgba(255, 255, 255, 0.24);
  --glass: rgba(255, 255, 255, 0.13);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --shadow: rgba(93, 49, 68, 0.24);
  --ink-shadow: rgba(58, 38, 58, 0.22);
  --coral: #ff725f;
  --peach: #ffa15f;
  --rose: #f6a3bb;
  --lavender: #b8a7ff;
  --sky: #8ed9ff;
  --deep: #61546e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  overflow: hidden;
  background: #f6a38b;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--white);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.58), transparent 18rem),
    linear-gradient(135deg, #fb6d72 0%, #ff9f65 32%, #c7a7ff 68%, #84d8ff 100%);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.site-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.ambient {
  position: absolute;
  inset: -12%;
  z-index: -2;
  overflow: hidden;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 900ms var(--ease);
}

.orb,
.grain,
.dot-field {
  position: absolute;
  pointer-events: none;
}

.orb {
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.88;
  mix-blend-mode: screen;
  animation: breathe 18s var(--ease) infinite alternate;
}

.orb-a {
  width: 42rem;
  height: 28rem;
  left: -4rem;
  top: -2rem;
  background: rgba(255, 86, 94, 0.72);
}

.orb-b {
  width: 34rem;
  height: 30rem;
  right: 8%;
  top: 10%;
  background: rgba(138, 214, 255, 0.72);
  animation-duration: 24s;
}

.orb-c {
  width: 36rem;
  height: 26rem;
  left: 28%;
  bottom: -7rem;
  background: rgba(193, 151, 255, 0.7);
  animation-duration: 21s;
}

.orb-d {
  width: 30rem;
  height: 24rem;
  right: 1rem;
  bottom: 12%;
  background: rgba(255, 161, 95, 0.72);
  animation-duration: 27s;
}

.grain {
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-position: 0 0, 12px 14px;
  background-size: 30px 30px;
  mask-image: linear-gradient(120deg, transparent, #000 28%, #000 72%, transparent);
}

.dot-field {
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  opacity: 0.34;
  filter: blur(0.2px);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.88) 2px, transparent 2.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle, #000 0 42%, transparent 68%);
  animation: driftDots 26s var(--ease) infinite alternate;
}

.dot-field-a {
  right: 18%;
  top: 18%;
}

.dot-field-b {
  left: 12%;
  bottom: 15%;
  opacity: 0.2;
  transform: rotate(22deg);
  animation-duration: 31s;
}

.topbar,
.screen-controls {
  position: fixed;
  z-index: 20;
  display: flex;
  align-items: center;
}

.topbar {
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  padding: 26px 34px;
}

.wordmark-mini {
  display: block;
  width: min(24vw, 154px);
  min-width: 104px;
  color: var(--white);
  text-decoration: none;
  opacity: 0.92;
  filter: drop-shadow(0 12px 34px var(--ink-shadow));
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), filter 280ms var(--ease);
}

.wordmark-mini:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 16px 40px var(--ink-shadow));
}

.wordmark-mini img {
  display: block;
  width: 100%;
  height: auto;
}

.screen-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(117, 72, 92, 0.12);
}

.nav-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 320ms var(--ease), background 320ms var(--ease), opacity 320ms var(--ease);
}

.nav-dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-dot.is-active {
  width: 34px;
  background: rgba(255, 255, 255, 0.94);
}

.nav-dot:focus-visible,
.primary-cta:focus-visible,
.secondary-cta:focus-visible,
.control-button:focus-visible,
.contact-form button:focus-visible,
.contact-form input:focus-visible,
.faq-trigger:focus-visible,
.faq-close:focus-visible,
.faq-list summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 108px 8vw 92px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 22px, 0) scale(0.985);
  transition:
    opacity 780ms var(--ease),
    visibility 780ms var(--ease),
    transform 900ms var(--ease);
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.screen-hero {
  align-content: center;
  gap: 32px;
  text-align: center;
}

.hero-mark,
.hero-logo-img {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(14px);
  animation: revealLogo 1700ms var(--ease) 180ms forwards;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 46px;
}

.hero-logo-img {
  display: block;
  width: min(52vw, 330px);
  height: auto;
  object-fit: contain;
  filter: blur(14px) drop-shadow(0 28px 70px var(--ink-shadow));
  animation-name: revealLogoImage;
}

.hero-logo {
  font-size: 8.3rem;
  line-height: 0.85;
  text-shadow: 0 28px 70px var(--ink-shadow);
}

.hero-line {
  width: 1px;
  height: 86px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
  text-align: left;
  text-shadow: 0 20px 50px var(--ink-shadow);
}

.hero-copy,
.text-block {
  max-width: 820px;
  text-shadow: 0 18px 48px var(--ink-shadow);
}

.hero-copy {
  opacity: 0;
  transform: translateY(10px);
  animation: revealText 1100ms var(--ease) 820ms forwards;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 22px;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  font-size: 3.8rem;
}

h2 {
  font-size: 3.35rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  margin-bottom: 0;
  color: var(--white-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-cta,
.secondary-cta {
  --button-x: 50%;
  --button-y: 50%;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 220px;
  min-height: 56px;
  padding: 0 10px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(108, 64, 83, 0.18);
  backdrop-filter: blur(18px);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: revealText 1100ms var(--ease) 1120ms forwards;
  transition: transform 260ms var(--ease), background 260ms var(--ease), box-shadow 260ms var(--ease);
}

.primary-cta::before,
.secondary-cta::before {
  content: "";
  position: absolute;
  inset: -45%;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--button-x) var(--button-y), rgba(255, 255, 255, 0.22), transparent 18%),
    conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.08), transparent, rgba(255, 206, 230, 0.08), transparent);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}

.primary-cta > span,
.secondary-cta > span {
  position: relative;
  z-index: 1;
}

.primary-cta:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at var(--button-x) var(--button-y), rgba(255, 255, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.23);
  box-shadow: 0 28px 70px rgba(108, 64, 83, 0.22);
}

.primary-cta:hover::before,
.secondary-cta:hover::before {
  opacity: 1;
}

.secondary-cta {
  min-width: 168px;
  padding: 0 22px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 46px rgba(108, 64, 83, 0.1);
}

.secondary-cta:hover {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at var(--button-x) var(--button-y), rgba(255, 255, 255, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.11);
  box-shadow: 0 20px 54px rgba(108, 64, 83, 0.14);
}

.cta-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.84);
}

.content-grid {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 58px;
  align-items: center;
}

.content-grid.reverse {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.text-block.compact {
  max-width: 760px;
  text-align: center;
}

.wide-stack,
.contact-wrap {
  width: min(1060px, 100%);
  display: grid;
  gap: 34px;
  justify-items: center;
}

.glass-panel,
.glass-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow: 0 24px 70px rgba(101, 62, 90, 0.2);
  backdrop-filter: blur(22px);
}

.glass-panel {
  width: 100%;
  border-radius: 26px;
  padding: 34px;
}

.model-panel {
  min-height: 310px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
}

.model-panel::before {
  display: none;
}

.panel-kicker,
.card-number {
  display: block;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.glass-card {
  min-height: 218px;
  border-radius: 24px;
  padding: 24px;
}

.glass-card p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.flow-panel {
  min-height: 392px;
  display: grid;
  gap: 12px;
}

.flow-item {
  display: grid;
  grid-template-columns: 1fr 46px;
  align-items: center;
  min-height: 76px;
  padding: 0 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.flow-item span {
  font-weight: 600;
}

.flow-item i {
  position: relative;
  display: block;
  width: 42px;
  height: 18px;
}

.flow-item i::before,
.flow-item i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  display: block;
}

.flow-item i::before {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.flow-item i::after {
  width: 9px;
  height: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  transform: translateY(-4px) rotate(45deg);
  box-shadow: 5px -5px 16px rgba(255, 255, 255, 0.12);
}

.contact-form {
  width: min(760px, 100%);
  max-width: 760px;
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 600;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.contact-form input,
.contact-form button {
  min-height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.contact-form input {
  width: 100%;
  padding: 0 22px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: 0;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.contact-form button {
  padding: 0 22px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: transform 240ms var(--ease), background 240ms var(--ease);
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.form-note {
  min-height: 28px;
  margin-top: 16px;
  color: var(--white-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-note:empty {
  display: none;
}

.form-note.is-success {
  color: rgba(255, 255, 255, 0.9);
}

.form-note.is-error {
  color: rgba(255, 255, 255, 0.95);
}

.screen-controls {
  left: 50%;
  bottom: 26px;
  gap: 16px;
  transform: translateX(-50%);
}

.control-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 240ms var(--ease), background 240ms var(--ease);
}

.control-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.screen-count {
  min-width: 68px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  text-align: center;
}

.faq-trigger {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 21;
  min-width: 52px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 250, 248, 0.72);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 280ms var(--ease), background 280ms var(--ease), transform 280ms var(--ease);
}

.faq-trigger:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms var(--ease);
}

.faq-overlay[hidden] {
  display: none;
}

.faq-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.faq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(70, 47, 66, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 620ms var(--ease), backdrop-filter 620ms var(--ease);
}

.faq-overlay.is-open .faq-backdrop {
  opacity: 1;
}

.faq-sheet {
  position: relative;
  width: min(780px, 100%);
  max-height: min(720px, calc(100svh - 48px));
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 90px rgba(86, 48, 72, 0.24);
  backdrop-filter: blur(28px);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.975);
  transition:
    opacity 520ms var(--ease),
    transform 620ms var(--ease);
}

.faq-overlay.is-open .faq-sheet {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.faq-sheet h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.faq-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 280ms var(--ease), transform 280ms var(--ease);
}

.faq-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(4deg);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  transition: background 280ms var(--ease);
}

.faq-list details[open] {
  background: rgba(255, 255, 255, 0.14);
}

.faq-list summary {
  min-height: 56px;
  padding: 18px 44px 18px 18px;
  cursor: pointer;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: none;
  margin: -4px 18px 18px;
  color: rgba(255, 250, 248, 0.74);
  font-size: 0.96rem;
}

@keyframes revealLogo {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes revealLogoImage {
  to {
    opacity: 1;
    filter: blur(0) drop-shadow(0 28px 70px var(--ink-shadow));
    transform: translateY(0);
  }
}

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

@keyframes breathe {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4rem, -2rem, 0) scale(1.08);
  }
}

@keyframes driftDots {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(2rem, -1.4rem, 0) rotate(12deg);
  }
}

@media (max-width: 920px) {
  .site-shell {
    min-height: 680px;
  }

  .topbar {
    padding: 18px 18px;
  }

  .wordmark-mini {
    width: min(30vw, 132px);
    min-width: 92px;
  }

  .screen {
    padding: 92px 22px 86px;
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-logo {
    font-size: 6.2rem;
  }

  .hero-line {
    height: 68px;
  }

  .hero-subtitle {
    font-size: 1.55rem;
  }

  .content-grid,
  .content-grid.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .glass-card {
    min-height: 174px;
  }
}

@media (max-width: 620px) {
  .site-shell {
    min-height: 700px;
  }

  .screen-nav {
    gap: 7px;
    padding: 7px;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }

  .nav-dot.is-active {
    width: 24px;
  }

  .hero-mark {
    gap: 24px;
  }

  .hero-logo-img {
    width: min(72vw, 430px);
  }

  .hero-logo {
    font-size: 5rem;
  }

  .hero-logo-img {
    width: min(82vw, 330px);
  }

  .hero-line {
    height: 56px;
  }

  .hero-subtitle {
    font-size: 1.18rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .glass-card {
    min-height: 132px;
    padding: 18px;
  }

  .card-number {
    margin-bottom: 12px;
  }

  .glass-panel {
    border-radius: 22px;
    padding: 22px;
  }

  .model-panel,
  .flow-panel {
    min-height: auto;
  }

  .flow-item {
    min-height: 58px;
  }

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

  .contact-form input,
  .contact-form button {
    min-height: 54px;
  }

  .screen-controls {
    bottom: 18px;
  }

  .faq-trigger {
    left: 18px;
    bottom: 18px;
    min-width: 46px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.68rem;
  }

  .faq-sheet {
    padding: 28px 18px 20px;
    border-radius: 22px;
  }

  .faq-sheet h2 {
    padding-right: 44px;
  }
}

@media (max-height: 720px) {
  .site-shell {
    min-height: 620px;
  }

  .screen {
    padding-top: 82px;
    padding-bottom: 74px;
  }

  .hero-logo {
    font-size: 5.6rem;
  }

  .hero-logo-img {
    width: min(48vw, 410px);
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .service-grid {
    gap: 10px;
  }

  .glass-card {
    min-height: 150px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .ambient {
    transform: none !important;
  }
}
