:root {
  --ink: #1f2a36;
  --muted: #667481;
  --line: #d9e2ea;
  --paper: #f7fafc;
  --white: #ffffff;
  --blue: #3f7cac;
  --navy: #304f73;
  --green: #28a889;
  --yellow: #f0b84b;
  --shadow: 0 24px 70px rgba(31, 42, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  border-bottom: 1px solid rgba(217, 226, 234, 0.72);
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  width: min(1160px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  padding: 14px 0;
}

.site-header.has-shadow {
  box-shadow: 0 10px 30px rgba(31, 42, 54, 0.08);
}

.brand img {
  width: min(236px, 54vw);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}

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

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #415160;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e8f1f8;
  color: var(--navy);
}

.nav-toggle {
  position: relative;
  display: none;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 16px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 5px));
}

.nav-toggle span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 5px));
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.section-band {
  background:
    radial-gradient(circle at 10% 10%, rgba(63, 124, 172, 0.14), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #eef6fb 48%, #f7fafc 100%);
}

.hero {
  min-height: auto;
  padding: clamp(46px, 6vw, 74px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 54px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3.35rem, 4.2vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
}

.hero-actions,
.product-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .service-card,
.reveal.is-visible .feature-list div,
.reveal.is-visible .timeline-item,
.reveal.is-visible .contact-form {
  animation: itemFadeUp 620ms ease both;
}

.reveal.is-visible .hero-copy .eyebrow,
.reveal.is-visible .hero-copy h1,
.reveal.is-visible .hero-copy .hero-text,
.reveal.is-visible .hero-copy .hero-actions {
  animation: heroTextIn 720ms ease both;
}

.reveal.is-visible .hero-copy h1 {
  animation-delay: 100ms;
}

.reveal.is-visible .hero-copy .hero-text {
  animation-delay: 210ms;
}

.reveal.is-visible .hero-copy .hero-actions {
  animation-delay: 320ms;
}

.reveal.is-visible .hero-showcase {
  animation: itemFadeUp 620ms ease both, floatShowcase 7s ease-in-out 760ms infinite;
}

.reveal.is-visible .service-card:nth-child(2),
.reveal.is-visible .feature-list div:nth-child(2),
.reveal.is-visible .timeline-item:nth-child(2) {
  animation-delay: 90ms;
}

.reveal.is-visible .service-card:nth-child(3),
.reveal.is-visible .feature-list div:nth-child(3),
.reveal.is-visible .timeline-item:nth-child(3) {
  animation-delay: 180ms;
}

.reveal.is-visible .feature-list div:nth-child(4) {
  animation-delay: 270ms;
}

.button.primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(63, 124, 172, 0.27);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.submit-spinner {
  display: none;
  width: 17px;
  height: 17px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

.button.is-loading .submit-spinner {
  display: inline-block;
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.hero-showcase {
  display: grid;
  gap: 14px;
  min-height: 410px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgba(217, 226, 234, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 252, 0.96)),
    radial-gradient(circle at 90% 12%, rgba(40, 168, 137, 0.18), transparent 18rem);
  box-shadow: var(--shadow);
  animation: floatShowcase 7s ease-in-out infinite;
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.showcase-top strong {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(40, 168, 137, 0.12);
  color: #1d7d68;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.browser-bar,
.builder-preview {
  border: 1px solid var(--line);
  background: var(--white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d6df;
}

.browser-bar span:nth-child(1) {
  background: #ef6a67;
}

.browser-bar span:nth-child(2) {
  background: var(--yellow);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.browser-bar div {
  flex: 1;
  margin-left: 8px;
  border-radius: 999px;
  padding: 5px 12px;
  background: #edf4f8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.builder-preview {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  min-height: 300px;
  padding: 20px;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  border-radius: 8px;
  padding: 16px 12px;
  background: #edf4f8;
}

.preview-sidebar span {
  height: 12px;
  border-radius: 999px;
  background: #b9d3e6;
}

.preview-sidebar span:nth-child(2) {
  width: 72%;
  background: #cfe2ee;
}

.preview-sidebar span:nth-child(3) {
  width: 84%;
  background: #cfe2ee;
}

.preview-main {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 8px 0;
}

.panel-line {
  width: 58%;
  height: 12px;
  border-radius: 999px;
  background: #d9e8f2;
}

.panel-line.wide {
  width: 82%;
  background: #b9d3e6;
}

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

.panel-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8f1f8, #d7efe9);
}

.code-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(330px, calc(100% - 40px));
  border: 1px solid rgba(48, 79, 115, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: #1f2a36;
  color: #dce9f4;
  box-shadow: 0 18px 36px rgba(31, 42, 54, 0.22);
  font: 800 0.84rem / 1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  animation: codePulse 4.5s ease-in-out infinite;
}

.code-blue {
  color: #8fc7ff;
}

.code-green {
  color: #7ee0be;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1160px, calc(100% - 40px));
  margin: -18px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(31, 42, 54, 0.09);
}

.stats div {
  padding: 24px;
}

.stats div + div {
  border-left: 1px solid var(--line);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--navy);
  font-size: 1.35rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 124px) 0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow),
.product p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.service-grid,
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.feature-list div,
.timeline-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.feature-list div:hover,
.timeline-item:hover {
  transform: translateY(-5px);
  border-color: rgba(63, 124, 172, 0.34);
  box-shadow: 0 18px 42px rgba(31, 42, 54, 0.1);
}

.service-card p,
.feature-list p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #e8f1f8;
  color: var(--navy);
  font-weight: 900;
}

.product {
  padding: clamp(70px, 9vw, 110px) clamp(20px, 5vw, 72px);
}

.product-content {
  justify-content: space-between;
  width: min(1160px, 100%);
  margin: 0 auto 28px;
}

.product-content > div {
  max-width: 780px;
}

.feature-list {
  grid-template-columns: repeat(4, 1fr);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.feature-list div {
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 80px);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.timeline-item span {
  color: var(--green);
  font-weight: 950;
}

.contact {
  padding: clamp(70px, 9vw, 110px) clamp(20px, 5vw, 72px);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 86px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

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

.contact-copy {
  justify-self: start;
}

.contact-form {
  justify-self: end;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.form-message {
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 0.94rem;
  font-weight: 750;
}

.form-message-success {
  border: 1px solid rgba(40, 168, 137, 0.28);
  background: rgba(40, 168, 137, 0.1);
  color: #176d5a;
}

.form-message-error {
  border: 1px solid rgba(239, 106, 103, 0.3);
  background: rgba(239, 106, 103, 0.1);
  color: #9f3532;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

label {
  display: grid;
  gap: 8px;
  color: #425262;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(63, 124, 172, 0.17);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #243f5f;
  color: #cbd8e3;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr) minmax(190px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 72px) 0;
}

.footer-brand-block p {
  max-width: 450px;
  margin: 18px 0 0;
  color: #bed0df;
}

.footer-brand img {
  width: 168px;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 0.96rem;
}

.footer-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: #bed0df;
  list-style: none;
}

.footer-spacer {
  margin-top: 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-list a {
  color: #dce9f4;
  font-weight: 750;
}

.footer-links a:hover,
.footer-list a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px clamp(20px, 5vw, 72px);
  text-align: center;
}

.footer-bottom span {
  color: #a8bbcb;
  font-size: 0.92rem;
}

@keyframes floatShowcase {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes codePulse {
  0%,
  100% {
    box-shadow: 0 18px 36px rgba(31, 42, 54, 0.22);
  }

  50% {
    box-shadow: 0 22px 44px rgba(63, 124, 172, 0.28);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes itemFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
  }

  .brand {
    max-width: calc(100% - 50px);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 6px;
  }

  .hero-grid,
  .split,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .stats,
  .service-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .stats div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-copy {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .header-inner {
    width: calc(100% - 28px);
    min-height: 68px;
    padding: 12px 0;
  }

  .brand img {
    width: min(150px, 42vw);
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .header-inner {
    gap: 12px;
  }

  .hero,
  .product,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section,
  .stats {
    width: calc(100% - 28px);
  }

  .hero-actions,
  .product-content {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .builder-preview {
    grid-template-columns: 1fr;
    min-height: 360px;
  }

  .preview-sidebar {
    display: flex;
  }

  .preview-sidebar span {
    width: 100%;
  }

  .code-card {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    font-size: 0.76rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
