:root {
  --bg: #060914;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.115);
  --stroke: rgba(255, 255, 255, 0.16);
  --text: #f7fbff;
  --muted: #aab8cf;
  --blue: #54d6ff;
  --violet: #7c5cff;
  --gold: #d8b15f;
  --green: #3acf8e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(84, 214, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 20%, rgba(124, 92, 255, 0.22), transparent 32rem),
    linear-gradient(135deg, #060914 0%, #0b1020 48%, #070812 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { left: -7rem; top: 18rem; background: #54d6ff; }
.ambient-two { right: -9rem; top: 4rem; background: #7c5cff; }

.topbar {
  width: min(1280px, calc(100% - 40px));
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  background: rgba(6, 9, 20, 0.72);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  position: sticky;
  top: 14px;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 40px rgba(84, 214, 255, 0.18);
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.nav-links { display: flex; gap: 20px; color: #d6dfef; font-size: 14px; }
.nav-links a:hover { color: var(--blue); }

main { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.hero-section {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 44px;
  padding: 54px 0 42px;
}
.eyebrow, .section-kicker, .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d8eaff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow span {
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(216, 177, 95, 0.9);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: 52px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 18px 0 24px;
 
}

.lead {
  max-width: 580px;
  color: #c7d4e6;
  font-size: 17px;
  line-height: 1.7;
}
h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.primary-link, .secondary-link, button, .download-btn {
  border: 0;
  border-radius: 16px;
  padding: 16px 22px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.primary-link, button, .download-btn {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 20px 54px rgba(84, 214, 255, 0.18);
}
.secondary-link { border: 1px solid var(--stroke); background: var(--panel); color: #e7efff; }
.primary-link:hover, .secondary-link:hover, button:hover, .download-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.metrics div, .portfolio-card, .glass-panel, .form-card, .feature-list div, .demo-card {
  border: 1px solid var(--stroke);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
}
.metrics div { padding: 18px; }
.metrics span { color: var(--muted); display: block; font-size: 13px; margin-bottom: 8px; }
.metrics strong { font-size: 18px; }

.hero-preview { position: relative; min-height: 520px; display: grid; place-items: center; }
.preview-window, .demo-image-wrap {
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
  box-shadow: 0 34px 90px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
}
.preview-window {
  width: min(100%, 720px);
  border-radius: 30px;
  padding: 12px;
}
.preview-bar { height: 34px; display: flex; gap: 7px; align-items: center; padding-left: 8px; }
.preview-bar span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.26); }
.preview-window img { border-radius: 20px; height: 390px; width: 100%; object-fit: cover; object-position: top center; }
.floating-badge { position: absolute; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--stroke); background: rgba(6,9,20,0.78); backdrop-filter: blur(14px); color: #dce8fa; font-weight: 700; }
.badge-one { left: 0; top: 72px; }
.badge-two { right: 0; bottom: 82px; }

.section-block, .technology-section, .download-section, .demo-section { padding: 70px 0; }
.section-title { max-width: 820px; margin-bottom: 26px; }
.section-title.center { text-align: center; margin: 0 auto 32px; }
.section-title p { color: #bdc9dc; line-height: 1.65; font-size: 18px; }
.portfolio-grid { display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr; gap: 16px; }
.portfolio-card { padding: 26px; min-height: 240px; }
.portfolio-card.large { min-height: 310px; }
.portfolio-card p, .glass-panel p, .download-copy p, .download-copy li, .demo-content p { color: #bdc9dc; line-height: 1.65; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgba(84,214,255,0.12); color: var(--blue); margin-bottom: 44px; }

.demo-grid { display: grid; gap: 20px; }
.demo-card { overflow: hidden; }
.demo-card-wide { display: grid; grid-template-columns: 1.35fr 0.65fr; align-items: stretch; }
.demo-card:nth-child(even).demo-card-wide { grid-template-columns: 0.65fr 1.35fr; }
.demo-card:nth-child(even) .demo-image-wrap { order: 2; }
.demo-image-wrap { border-radius: 24px; margin: 14px; }
.demo-image-wrap img { width: 100%; height: 430px; object-fit: cover; object-position: top left; }
.demo-content { padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.demo-content span { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; margin-bottom: 12px; }
.demo-content h3 { font-size: 30px; letter-spacing: -0.035em; }

.technology-section { display: grid; grid-template-columns: 1fr 0.75fr; gap: 16px; }
.glass-panel { padding: 34px; }
.feature-list { display: grid; gap: 12px; }
.feature-list div { padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.feature-list strong { color: var(--gold); }
.feature-list span { color: #dce7f7; }

.download-section { display: grid; grid-template-columns: 0.9fr 1fr; gap: 24px; align-items: start; }
.download-copy ul { padding-left: 20px; margin-bottom: 0; }
.form-card { padding: 28px; }
label { display: block; margin: 18px 0 8px; color: #eef6ff; font-weight: 800; }
input {
  width: 100%;
  padding: 16px 17px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font: inherit;
  outline: none;
}
input::placeholder { color: #7f8fa7; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(84,214,255,0.13); }
button, .download-btn { width: 100%; margin-top: 24px; }
.result { margin-top: 18px; padding: 17px; border-radius: 18px; background: rgba(60,207,142,0.13); border: 1px solid rgba(60,207,142,0.42); color: #ddffee; }
.result p { color: #bfead4; margin: 8px 0 0; }
.error { background: rgba(255,79,79,0.12); border-color: rgba(255,79,79,0.5); color: #ffe1e1; }
.hidden { display: none; }
.footer { width: min(1280px, calc(100% - 40px)); margin: 20px auto 38px; color: #98a9c2; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; }
.footer strong { color: #eaf4ff; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hero-section, .technology-section, .download-section, .demo-card-wide, .demo-card:nth-child(even).demo-card-wide { grid-template-columns: 1fr; }
  .demo-card:nth-child(even) .demo-image-wrap { order: 0; }
  .hero-section { min-height: auto; padding-top: 42px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .hero-preview { min-height: 410px; }
  .demo-image-wrap img { height: 330px; }
}

@media (max-width: 560px) {
  main, .topbar, .footer { width: min(100% - 26px, 1280px); }
  h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.035em; }
  .lead { font-size: 16.5px; }
  .floating-badge { display: none; }
  .preview-window img, .demo-image-wrap img { height: 250px; }
  .demo-content { padding: 26px 22px; }
}

.form-step { display: none; }
.form-step.active { display: block; }
.code-info {
  padding: 16px 17px;
  border: 1px solid rgba(84,214,255,0.28);
  background: rgba(84,214,255,0.08);
  border-radius: 18px;
  margin-bottom: 18px;
}
.code-info strong { display: block; color: #f7fbff; margin-bottom: 6px; }
.code-info p { color: #b9c8dd; margin: 0; line-height: 1.55; }
.ghost-button {
  margin-top: 12px;
  background: rgba(255,255,255,0.08) !important;
  color: #e8f0ff !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: none !important;
}
button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none !important;
}
