:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647086;
  --line: #dce2ea;
  --soft: #f4f7fa;
  --accent: #275dcc;
  --accent-dark: #1948a9;
  --success: #187548;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.55;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

.privacy-card { max-width: 760px; }
.privacy-card h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.privacy-card h2 { margin: 34px 0 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.privacy-card p { color: var(--muted); }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
  text-decoration: none;
  letter-spacing: -0.06em;
}

.header-link,
.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-button):hover, .text-link:hover { color: var(--accent); }

.site-nav .nav-button {
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
}

.hero {
  max-width: 780px;
  padding: 104px 0 72px;
}

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

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: background 160ms ease, transform 160ms ease;
}

.button {
  display: inline-block;
  padding: 13px 18px;
  text-decoration: none;
}

.button:hover,
button:hover { background: var(--accent-dark); }


.price { color: var(--muted); font-size: 0.93rem; }

.demo {
  padding: 8px 0 82px;
}

.demo h2 { margin-bottom: 22px; }
.demo video {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1323;
}

.uworld-showcase { width: 100%; margin-left: 0; padding: 24px 0 96px; }
.showcase-layout { display: grid; grid-template-columns: minmax(230px, .48fr) minmax(0, 1.52fr); grid-template-rows: auto 1fr; gap: 28px 48px; align-items: center; }
.carousel-copy { padding: 24px 0 24px 4px; }
.carousel-copy-panel { display: none; }
.carousel-copy-panel.is-active { display: block; animation: copy-in 300ms ease both; }
.carousel-copy h1 { margin-bottom: 30px; font-size: clamp(2.2rem, 4.3vw, 4.6rem); }
.carousel-copy ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.carousel-copy li { position: relative; padding-left: 24px; font-size: clamp(1.12rem, 1.6vw, 1.38rem); font-weight: 750; line-height: 1.3; }
.carousel-copy li::before { content: ""; position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.carousel-stage { position: relative; min-width: 0; overflow: visible; border: 1px solid var(--line); border-radius: 18px; background: #0b1323; box-shadow: 0 24px 70px rgba(23, 32, 51, 0.14); }
.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; animation: slide-in 360ms cubic-bezier(.2,.75,.25,1) both; }
.carousel-slide video { display: block; width: 100%; height: auto; background: #0b1323; }
.carousel-control { position: absolute; bottom: -45px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(23,32,51,.78); color: white; font-size: 1.4rem; line-height: 1; }
.carousel-control:hover { background: var(--accent); }
.carousel-prev { left: calc(50% - 64px); transform: translateX(-50%); }
.carousel-next { left: calc(50% + 64px); transform: translateX(-50%); }
.video-frame { position: relative; }
.video-play-indicator { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; width: 58px; height: 58px; padding: 0; place-items: center; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(23,32,51,.72); color: white; font-size: 1.35rem; line-height: 1; opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.video-play-indicator.is-paused { opacity: 1; pointer-events: auto; }
.carousel-dots { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.carousel-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: #b8c1cf; }
.carousel-dot.is-active { background: var(--accent); transform: scale(1.25); }
@keyframes copy-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.compatibility h2 { max-width: none; margin-bottom: 34px; }
.compatibility-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compatibility-videos video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: #0b1323; }

.product-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 38px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.preview-intro h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3.2vw, 2.65rem); }
.preview-intro p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.product-preview img,
.showcase-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.showcase-grid article { min-width: 0; }
.showcase-grid article:last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
.showcase-grid h3 { margin: 16px 0 8px; font-size: 1.15rem; }
.compact-feature-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.compact-feature-list li { padding: 14px 12px 14px 30px; border: 1px solid var(--line); border-radius: 9px; font-size: 0.9rem; font-weight: 750; }

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.feature-list,
.time-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.time-list li {
  position: relative;
  padding: 17px 0 17px 28px;
  border-bottom: 1px solid var(--line);
}

.feature-list li::before,
.time-list li::before {
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 900;
  content: "✓";
}

.workflow { display: grid; gap: 44px; }
.section-heading { max-width: 720px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.steps span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.steps strong { display: block; margin-bottom: 6px; font-size: 1.1rem; }
.steps p { margin-bottom: 0; color: var(--muted); }
.time-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }

.signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: end;
}

.signup > div > p:last-child { color: var(--muted); }
label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 750; }
.form-row { display: flex; gap: 10px; }

input {
  min-width: 0;
  flex: 1;
  border: 1px solid #aeb9c9;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

input:focus { outline: 3px solid #dbe7ff; border-color: var(--accent); }
button { padding: 12px 17px; white-space: nowrap; }
button:disabled { cursor: wait; opacity: 0.7; }
.form-status { min-height: 24px; margin: 10px 0 0; color: var(--success); font-size: 0.9rem; }
.form-status.error { color: #b42318; }

.support-section { padding-bottom: 72px; }
.support-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.support-card h2 { margin-bottom: 14px; font-size: clamp(1.9rem, 3.5vw, 3rem); }
.support-card .section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }
.support-form { display: grid; gap: 16px; }
.support-form-row { display: grid; gap: 16px; }
.support-form label span { color: var(--muted); font-weight: 500; }
textarea { width: 100%; resize: vertical; border: 1px solid #aeb9c9; border-radius: 8px; padding: 12px 13px; color: var(--ink); font: inherit; }
textarea:focus { outline: 3px solid #dbe7ff; border-color: var(--accent); }
.support-form button { justify-self: start; }
.support-form .form-status { margin: -4px 0 0; }

.final-cta { max-width: 720px; }
.final-cta > p:not(.eyebrow) { margin-bottom: 26px; color: var(--muted); }

.page-main,
.auth-main { min-height: calc(100vh - 176px); }

.page-main { padding: 86px 0 100px; }

.page-intro {
  max-width: 720px;
  margin-bottom: 52px;
}

.page-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.compact-intro { margin-bottom: 32px; }
.muted { color: var(--muted); }

.pricing-card {
  max-width: 680px;
  display: grid;
  gap: 30px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.06);
}
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pricing-grid .pricing-card { max-width: none; }

.plan-name { margin-bottom: 8px; font-weight: 800; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.plan-price strong { font-size: 3.4rem; line-height: 1; letter-spacing: -0.06em; }
.plan-price span { color: var(--muted); }
.feature-list.compact li { padding-block: 11px; }
.wide-button { text-align: center; }

.auth-main {
  display: grid;
  place-items: center;
  padding: 64px 0 90px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.06);
}

.auth-card h1 { margin-bottom: 14px; font-size: 2.55rem; line-height: 1.05; }
.stack-form { display: grid; margin-top: 28px; }
.stack-form label:not(:first-child) { margin-top: 17px; }
.stack-form button { margin-top: 22px; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.verification-row input { min-width: 0; }
.stack-form .verification-row button { margin-top: 0; }
.stack-form .form-status { margin-bottom: 0; }
.form-assist { margin-top: 10px; text-align: right; font-size: 0.88rem; }
.form-assist a, .auth-switch a, .dev-reset-link { color: var(--accent); font-weight: 700; }
.auth-switch { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.dev-reset-link { margin-top: 12px; }

.account-main { max-width: 820px; margin-inline: auto; }
.account-panel { border-top: 1px solid var(--line); }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.account-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.account-row span { color: var(--muted); }
.account-row strong { overflow-wrap: anywhere; text-transform: capitalize; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 52px; padding: 26px; border: 1px solid #f1c8c4; border-radius: 12px; background: #fff8f7; }
.danger-zone h2 { margin-bottom: 4px; font-size: 1.15rem; letter-spacing: -0.01em; }
.danger-zone p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }
.danger-button { background: #b42318; }
.danger-button:hover { background: #8f1b13; }
.link-button { padding: 0; background: none; color: var(--ink); font-size: 0.9rem; }
.link-button:hover { background: none; color: var(--accent); }

footer {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1080px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .site-nav { width: 100%; justify-content: flex-start; gap: 15px; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { flex: 0 0 auto; white-space: nowrap; }
  .hero { padding: 76px 0 52px; }
  .demo { padding: 0 0 56px; }
  .uworld-showcase { padding: 0 0 68px; }
  .showcase-layout { grid-template-columns: 1fr; gap: 18px; }
  .carousel-stage { overflow: hidden; }
  .carousel-copy { padding: 18px 0 0; }
  .carousel-dots { order: 3; grid-column: 1; grid-row: auto; }
  .carousel-control { width: 38px; height: 38px; }
  .carousel-control { bottom: -40px; }
  .carousel-prev { left: calc(50% - 58px); }
  .carousel-next { left: calc(50% + 58px); }
  .compatibility-videos { grid-template-columns: 1fr; }
  .product-preview { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .support-card { grid-template-columns: 1fr; gap: 28px; padding: 22px; }
  .section { padding: 68px 0; }
  .two-column, .signup, .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .showcase-grid article:last-child { grid-column: auto; width: auto; }
  .compact-feature-list { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; display: flex; gap: 18px; }
  .steps span { flex: 0 0 30px; margin: 0; }
  .time-list { grid-template-columns: 1fr; }
  .form-row { align-items: stretch; flex-direction: column; }
  .page-main { padding-top: 60px; }
  .auth-main { padding: 42px 0 70px; }
  .auth-card, .pricing-card { padding: 26px 22px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .account-row { grid-template-columns: 1fr; gap: 3px; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, button { transition: none; }
}
