/* Homepage (SYNCROWN-led). Uses the VARIUZ tokens from styles.css; only the home page loads this.
   Direction: same palette and frame language, calmer use of it — sentence-case headings,
   readable body copy, real product screens instead of illustrations, less glow. */

.home {
  --hx-text-2: rgba(244, 246, 255, 0.74);
  --hx-line: rgba(255, 255, 255, 0.08);
  --hx-gap: clamp(1rem, 2.4vw, 1.75rem);
}

.home main { position: relative; z-index: 1; }

.hx-section,
.hx-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--content-pad-x) 0;
}

/* Header: CTA takes the old search slot */
.hx-header-cta { flex-shrink: 0; padding: 10px 18px; font-size: 0.72rem; }

/* Type ------------------------------------------------------------------ */
.hx-hero__title,
.hx-h2,
.hx-feature h3,
.hx-platform h3,
.hx-caps h3 {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.hx-hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  font-weight: 700;
  max-width: 16ch;
  overflow-wrap: break-word;
}

.hx-h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 700; }

.hx-hero__lead,
.hx-lede {
  margin: 1.25rem 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.7;
  color: var(--hx-text-2);
  text-transform: none;
  letter-spacing: 0;
}

.hx-section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.hx-section__head .section-label { margin-bottom: 0.9rem; }

/* Hero ------------------------------------------------------------------ */
.hx-hero { padding-top: clamp(2rem, 5vw, 3.5rem); }
/* copy left, the original laptop visual right (.hero__visual / .hero__image from styles.css) */
.hx-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.hx-hero__main .hx-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.hx-hero__copy .eyebrow { margin-bottom: 1.4rem; }
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Product screenshot frame (browser-like) */
.hx-shot {
  position: relative;
  margin: 0;
  border-radius: var(--frame-radius);
  overflow: hidden;
  background: #070812;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.hx-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.hx-shot figcaption {
  position: absolute; right: 12px; bottom: 10px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--hx-text-2);
  background: rgba(5, 5, 10, 0.78); border: 1px solid var(--hx-line);
}
.hx-shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.03);
}
.hx-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.hx-shot__bar span { margin-left: 10px; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-muted); }

.hx-shot--lead { margin-bottom: clamp(2rem, 4vw, 3rem); border-color: rgba(0, 210, 255, 0.35); box-shadow: 0 0 0 1px rgba(189, 0, 255, 0.12), 0 40px 90px rgba(0, 0, 0, 0.6); }

/* Proof strip */
.hx-proof {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hx-gap);
  border-top: 1px solid var(--hx-line); padding-top: 1.5rem;
}
.hx-proof b { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: var(--text); }
.hx-proof span { display: block; margin-top: 0.35rem; font-size: 0.85rem; line-height: 1.45; color: var(--text-muted); }

/* SYNCROWN features --------------------------------------------------------- */
.hx-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem); }
.hx-feature h3 { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 600; }
.hx-feature p { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.65; color: var(--hx-text-2); }

.hx-note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: var(--radius-md);
  border: 1px solid var(--hx-line); background: var(--bg-panel);
}
.hx-note p { margin: 0; max-width: 70ch; font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }

/* Platforms ----------------------------------------------------------------- */
.hx-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hx-gap); }
.hx-platform {
  display: flex; flex-direction: column;
  border-radius: var(--frame-radius); overflow: hidden;
  border: 1px solid var(--hx-line); background: var(--bg-panel);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hx-platform:hover { border-color: var(--border); transform: translateY(-2px); }
.hx-platform .hx-shot { border: 0; border-bottom: 1px solid var(--hx-line); border-radius: 0; box-shadow: none; }
.hx-platform__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.hx-platform h3 { font-size: 1.2rem; font-weight: 600; }
.hx-platform p { margin: 0; font-size: 0.93rem; line-height: 1.65; color: var(--hx-text-2); }
.hx-platform .hx-links, .hx-platform .hx-link { margin-top: auto; }
.hx-tag { font-size: 0.7rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--section-label-color) !important; }
.hx-links { display: flex; gap: 1.25rem; flex-wrap: wrap; padding-top: 0.4rem; }
.hx-link { font-size: 0.85rem; font-weight: 600; color: var(--cyan); text-decoration: none; padding-top: 0.4rem; }
.hx-link:hover { text-decoration: underline; }
.hx-center { text-align: center; margin: clamp(2rem, 4vw, 2.75rem) 0 0; }

/* Approach -------------------------------------------------------------------- */
.hx-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hx-gap); }
.hx-caps article { padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--hx-line); background: var(--bg-panel); }
.hx-caps h3 { font-size: 1.05rem; font-weight: 600; }
.hx-caps p { margin: 0.6rem 0 0; font-size: 0.92rem; line-height: 1.65; color: var(--hx-text-2); }

.hx-steps {
  list-style: none; counter-reset: step; margin: clamp(2rem, 4vw, 2.75rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hx-gap);
}
.hx-steps li { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--border); }
.hx-steps li::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--cyan); }
.hx-steps b { display: block; margin-top: 0.4rem; font-size: 1rem; color: var(--text); }
.hx-steps span { display: block; margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); }

/* Contact --------------------------------------------------------------------- */
.home .contact { margin-top: clamp(3rem, 7vw, 5rem); }
.hx-form { display: flex; flex-direction: column; gap: 0.9rem; }
.hx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.hx-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--text-muted); }
.hx-form input, .hx-form select, .hx-form textarea {
  width: 100%; box-sizing: border-box; padding: 0.75rem 0.9rem;
  font: inherit; font-size: 0.95rem; letter-spacing: 0; color: var(--text);
  background: rgba(5, 5, 10, 0.6); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
}
.hx-form input:focus, .hx-form select:focus, .hx-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15); }
.hx-form select option { background: #0b0b14; }
.hx-form .btn { align-self: flex-start; }
.hx-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.hx-form__status { margin: 0; min-height: 1.2em; font-size: 0.88rem; color: var(--hx-text-2); }
.hx-form__status.is-ok { color: #46e3a0; }
.hx-form__status.is-error { color: #ff7a8a; }
.hx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }


/* Responsive ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hx-hero__main { grid-template-columns: 1fr; } /* laptop moves above the copy, as before */
  .hx-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hx-header-cta { display: none; } /* the nav toggle takes over; Contact stays in the menu */
}
@media (max-width: 760px) {
  .hx-features, .hx-platforms, .hx-caps { grid-template-columns: 1fr; }
  .hx-form__row { grid-template-columns: 1fr; }
  .hx-hero__title { max-width: none; }
  .hx-hero__actions .btn { flex: 1 1 100%; }
  .hx-shot__bar span { display: none; }
  .hx-shot figcaption { position: static; display: block; border: 0; border-radius: 0; background: transparent; padding: 8px 12px; }
}
@media (max-width: 420px) {
  .hx-proof, .hx-steps { grid-template-columns: 1fr; }
}

/* keep the floating screens of the laptop visual clear of the headline */
@media (min-width: 1025px) {
  .hx-hero__main .hero__image { width: min(106%, 600px); margin-right: 0; }
}

/* even line lengths in the headline (no lone last word) */
.hx-hero__title, .hx-h2 { text-wrap: balance; }
.hx-nowrap { white-space: nowrap; }

/* SYNCROWN: device render + feature rows (copy above, the zoomed panel full width below) */
.hx-devices { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.hx-devices img { display: block; width: 100%; height: auto; border-radius: var(--frame-radius); border: 1px solid var(--hx-line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

.hx-rows { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 4.5rem); }
.hx-row { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.hx-row__copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas: "num ." "title list" "text list";
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.hx-row__num { grid-area: num; margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--section-label-color); }
.hx-row h3 { grid-area: title; margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 700; color: var(--text); text-wrap: balance; }
.hx-row__copy > p:not(.hx-row__num) { grid-area: text; margin: 0.75rem 0 0; font-size: 0.98rem; line-height: 1.7; color: var(--hx-text-2); max-width: 58ch; }
.hx-row ul { grid-area: list; list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.hx-row li { position: relative; padding: 0.15rem 0 0.15rem 1.6rem; font-size: 0.92rem; line-height: 1.5; color: var(--text); }
.hx-row li::before { content: ""; position: absolute; left: 0; top: 0.45rem; width: 0.85rem; height: 0.45rem; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.hx-row__shot img { aspect-ratio: auto; object-fit: fill; }

@media (max-width: 760px) {
  .hx-row__copy { grid-template-columns: 1fr; grid-template-areas: "num" "title" "text" "list"; }
  .hx-row ul { margin-top: 1rem; }
  /* dense terminal panels: bigger and swipeable instead of shrunk to unreadable */
  .hx-row__shot { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .hx-row__shot img { max-width: none; width: 700px; }
  .hx-row:nth-child(2) .hx-row__shot img { width: 620px; }
  .hx-row:nth-child(3) .hx-row__shot img { width: 980px; }
  .hx-row:nth-child(4) .hx-row__shot img { width: 880px; }
  .hx-row::after { content: "Swipe to explore the panel →"; margin-top: -0.6rem; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-muted); }
}

.hx-legal { display: block; margin-top: 0.35rem; font-size: 0.7rem; color: var(--text-muted); }

/* Proof strip: each figure in its own outlined box (no fill) */
.hx-proof { border-top: 0; padding-top: 0; }
.hx-proof li {
  padding: 1.25rem 1.4rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: transparent;
  transition: border-color 0.25s var(--ease);
}
.hx-proof li:hover { border-color: var(--border); }
@media (max-width: 420px) {
  .hx-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .hx-proof li { padding: 1rem 1rem 1.1rem; }
  .hx-proof b { font-size: 1.25rem; }
  .hx-proof span { font-size: 0.78rem; }
}
