:root {
  color-scheme: light;
  --bg-top: #d8e8f3;
  --bg-bottom: #f3f7f9;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(26, 57, 84, 0.12);
  --headline: #16344d;
  --text: #314656;
  --muted: #627687;
  --accent: #1e5b7b;
  --accent-dark: #143b51;
  --accent-soft: #e2f1f7;
  --shadow: 0 24px 70px rgba(17, 44, 63, 0.12);
  --shadow-soft: 0 16px 40px rgba(17, 44, 63, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Arial Nova", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 91, 123, 0.18), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.65), transparent 25%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

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

button {
  font: inherit;
}

.modal-open {
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 20px 72px;
}

.hero,
.main-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.content-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  padding: 24px 28px 30px;
  margin-bottom: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a,
.nav-button {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.eyebrow,
.section-tag,
.panel-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--headline);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
  max-width: 11ch;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

p,
li {
  font-size: 1rem;
  line-height: 1.75;
}

p {
  margin: 0;
}

.intro,
.updated {
  max-width: 690px;
}

.intro {
  margin: 18px 0 12px;
  font-size: 1.08rem;
}

.updated {
  color: var(--muted);
}

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

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

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-dark);
  border: 1px solid rgba(20, 59, 81, 0.1);
}

.hero-panel {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(226, 241, 247, 0.9), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(30, 91, 123, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 59, 81, 0.08);
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

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

.main-grid > section {
  grid-column: span 6;
  padding: 26px 28px;
}

.main-grid > .section-large {
  grid-column: span 12;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.mini-card,
.info-block {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(26, 57, 84, 0.08);
  box-shadow: var(--shadow-soft);
}

.info-block {
  margin-top: 18px;
}

.info-block p + p {
  margin-top: 8px;
}

.app-page-shell {
  padding-top: 24px;
}

.app-hero {
  padding-bottom: 28px;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}

.app-side-card {
  display: flex;
  flex-direction: column;
}

.app-icon-frame {
  min-height: 180px;
  background:
    radial-gradient(circle at center, rgba(30, 91, 123, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.72);
}

.app-icon {
  max-width: 300px;
}

.back-link-wrap {
  margin: 10px 0 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(20, 59, 81, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateX(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.demo-cta-block {
  margin-top: 24px;
}

.demo-launch {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  width: min(420px, 100%);
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(115, 255, 164, 0.62);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(188, 255, 205, 0.42), transparent 32%),
    linear-gradient(180deg, rgba(90, 229, 137, 0.99), rgba(31, 145, 74, 0.99));
  box-shadow:
    0 18px 36px rgba(33, 135, 74, 0.28),
    0 0 0 1px rgba(160, 255, 192, 0.2),
    0 0 26px rgba(84, 235, 136, 0.4),
    0 0 52px rgba(84, 235, 136, 0.22);
  color: #f6fff8;
  text-align: left;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.demo-launch:hover,
.demo-launch:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(33, 135, 74, 0.3),
    0 0 0 1px rgba(183, 255, 207, 0.28),
    0 0 32px rgba(99, 227, 142, 0.52),
    0 0 68px rgba(99, 227, 142, 0.3);
  filter: saturate(1.06) brightness(1.02);
}

.demo-launch-label {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.demo-launch-meta {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(246, 255, 248, 0.88);
}

.app-main-grid > .section-large {
  grid-column: span 12;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.title-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(26, 57, 84, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-copy {
  max-width: 760px;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.screenshot-strip::-webkit-scrollbar {
  height: 10px;
}

.screenshot-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 91, 123, 0.28);
}

.screenshot-card {
  scroll-snap-align: start;
}

.phone-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 470px;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(160deg, #274a75, #5176a6);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
  border: 8px solid rgba(255, 255, 255, 0.72);
}

.image-shot {
  display: block;
  width: 100%;
  min-height: auto;
  padding: 0;
  object-fit: cover;
  object-position: top center;
  background: #dfe8f2;
}

.placeholder-shot {
  position: relative;
  overflow: hidden;
}

.placeholder-shot::after {
  content: "";
  position: absolute;
  inset: auto 50% 14px;
  width: 110px;
  height: 5px;
  margin-left: -55px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.shot-label {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.link-stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.link-card {
  display: block;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(26, 57, 84, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--accent-dark);
  font-weight: 700;
  word-break: break-word;
}

.link-card:hover,
.link-card:focus-visible {
  background: rgba(226, 241, 247, 0.86);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 36, 52, 0.28);
  backdrop-filter: blur(18px);
}

.contact-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  margin: 0;
  padding: 30px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 90px rgba(12, 30, 44, 0.22);
  animation: modal-in 180ms ease-out;
}

.contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 241, 247, 0.9);
  color: var(--accent-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.contact-copy {
  max-width: 46ch;
  margin-bottom: 22px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--headline);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(20, 59, 81, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field-wide,
.contact-actions {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
}

.webapp-dialog {
  width: min(560px, 100%);
}

.webapp-actions {
  padding-top: 12px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

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

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .main-grid > section {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 14px 40px;
  }

  .hero {
    padding: 18px 18px 22px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 22px;
  }

  .nav-links {
    gap: 10px;
  }

  .main-grid > section {
    padding: 20px;
  }

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

  .contact-dialog {
    width: min(100%, 560px);
    max-height: min(88vh, 100%);
    padding: 22px;
  }

  .phone-shot {
    min-height: 420px;
  }

  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }

  p,
  li {
    line-height: 1.65;
  }
}
