:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #556070;
  --line: #d9e2ea;
  --paper: #f7fafc;
  --white: #ffffff;
  --blue: #1264c8;
  --cyan: #00a3ad;
  --green: #198754;
  --red: #d94040;
  --shadow: 0 22px 70px rgba(17, 47, 78, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 226, 234, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  font-weight: 800;
}

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

.brand span {
  line-height: 1.12;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-picker select {
  min-height: 38px;
  max-width: 170px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  cursor: pointer;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
}

.button {
  padding: 0 22px;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(18, 100, 200, 0.28);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.button.large {
  min-height: 54px;
  padding: 0 28px;
  white-space: nowrap;
}

.section-band {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 108px) clamp(20px, 4vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.74fr);
  gap: clamp(32px, 6vw, 84px);
  min-height: calc(100vh - 76px);
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.92), rgba(241,248,252,0.75)),
    radial-gradient(circle at 80% 22%, rgba(0, 163, 173, 0.28), transparent 34%),
    linear-gradient(135deg, #edf5fb 0%, #ffffff 42%, #eef8f5 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  pointer-events: none;
}

.data-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  animation: slide 8s linear infinite;
}

.line-a {
  top: 26%;
  left: -20%;
  width: 70%;
}

.line-b {
  top: 52%;
  right: -26%;
  width: 82%;
  animation-delay: -2s;
}

.line-c {
  bottom: 18%;
  left: 10%;
  width: 58%;
  animation-delay: -4s;
}

@keyframes slide {
  0% { transform: translateX(-10%); opacity: 0.2; }
  50% { opacity: 1; }
  100% { transform: translateX(24%); opacity: 0.2; }
}

.hero-content,
.migration-console,
.proof-panel,
.contact {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.migration-console {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(16, 24, 40, 0.92);
  box-shadow: var(--shadow);
  color: var(--white);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.console-top span:nth-child(2) {
  background: #f6bf40;
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-top strong {
  margin-left: auto;
  font-size: 13px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.console-grid div {
  padding: 22px 16px;
  background: rgba(16, 24, 40, 0.72);
}

.metric-value,
.metric-symbol {
  font-size: 34px;
  font-weight: 800;
}

.console-grid p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.pipeline {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.pipeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.pipeline-step.active span {
  background: var(--cyan);
}

.pipeline-step p {
  margin: 0;
  font-weight: 700;
}

.section-block {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 4vw, 64px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

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

.demo-showcase {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.demo-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 22px;
  background: #f2f7fb;
  border-bottom: 1px solid var(--line);
}

.demo-window-dots {
  display: flex;
  gap: 8px;
}

.demo-window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
}

.demo-window-dots span:nth-child(2) {
  background: #f6bf40;
}

.demo-window-dots span:nth-child(3) {
  background: var(--green);
}

.demo-titlebar strong {
  font-size: 22px;
}

.demo-titlebar em {
  margin-left: auto;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.demo-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #eef4f8;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.demo-tab.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  padding: 26px;
}

.demo-panel,
.demo-output {
  min-width: 0;
}

.demo-step-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-panel h3 {
  font-size: 30px;
  line-height: 1.08;
}

.demo-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.demo-fields {
  display: grid;
  gap: 13px;
  margin: 22px 0;
}

.demo-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.demo-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-actions .button {
  border: 0;
  cursor: pointer;
}

.demo-output {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.demo-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.demo-progress-header strong {
  font-size: 22px;
}

.demo-progress-header span {
  font-weight: 800;
}

.demo-progress {
  overflow: hidden;
  height: 34px;
  border-radius: 8px;
  background: #e7eef5;
}

.demo-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 600ms ease;
}

.demo-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.demo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.demo-table th {
  color: var(--muted);
  text-align: left;
}

.demo-table th,
.demo-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}

.demo-table td:last-child {
  color: var(--green);
  font-weight: 800;
}

.demo-log {
  min-height: 126px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  color: #d6f7eb;
  background: #10283d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.video-showcase {
  background: var(--white);
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: stretch;
}

.video-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-steps {
  min-width: 0;
}

.video-frame video {
  display: block;
  min-width: 0;
  max-width: 100%;
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-steps {
  display: grid;
  gap: 12px;
}

.video-steps div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.video-steps span {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 800;
}

.video-steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.video-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-grid article {
  min-height: 276px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(17, 47, 78, 0.08);
}

.security-pricing {
  background: var(--white);
}

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

.security-card,
.price-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.security-card p,
.price-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price-card {
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.price-card .eyebrow {
  color: #78dce2;
}

.price-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.95;
}

.price-card span {
  display: block;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.price-card p {
  color: rgba(255, 255, 255, 0.76);
}

.price-card .button {
  margin-top: 8px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 36px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.feature-grid p,
.timeline p,
.proof-panel p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.proof {
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.96), rgba(19, 86, 118, 0.88)),
    url("/ameo_logo.png") center / 520px no-repeat;
  color: var(--white);
}

.proof-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px minmax(300px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.proof-panel p {
  color: rgba(255, 255, 255, 0.76);
}

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

.proof-item {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.proof-item.is-selected {
  color: var(--ink);
  background: var(--white);
}

.proof-detail {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.proof-detail strong {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.timeline div {
  min-height: 240px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: block;
  margin-bottom: 44px;
  color: var(--cyan);
  font-weight: 800;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  background: linear-gradient(135deg, #eaf8f6 0%, #ffffff 50%, #eaf1fb 100%);
}

.contact div {
  max-width: 760px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 64px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .hero,
  .proof-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .security-grid,
  .timeline,
  .video-layout,
  .demo-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }

  .language-picker {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .header-cta {
    width: 100%;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
  }

  .language-picker select {
    max-width: none;
    flex: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: 42px;
  }

  .migration-console {
    min-width: 0;
  }

  .console-grid,
  .feature-grid,
  .security-grid,
  .timeline,
  .video-layout,
  .demo-body {
    grid-template-columns: 1fr;
  }

  .contact {
    align-items: stretch;
    flex-direction: column;
  }

  .button.large,
  .button {
    width: 100%;
  }

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