/* ============================================================
   Layman Systems — landing page styles
   Self-contained, no external fonts/assets required.
   ============================================================ */

:root {
  --bg:        #0b0f17;
  --bg-2:      #0f1522;
  --panel:     #131a2a;
  --panel-2:   #172033;
  --border:    #23304a;
  --border-2:  #2c3a58;
  --text:      #e7ecf5;
  --text-dim:  #9fb0c9;
  --text-mut:  #6c7c99;
  --accent:    #4f9cff;
  --accent-2:  #7c6cff;
  --accent-3:  #33d6b5;
  --ok:        #3ad29f;
  --warn:      #f5b451;
  --off:       #6c7c99;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1120px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.7);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124,108,255,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(79,156,255,.14), transparent 55%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(255,255,255,.06);
  padding: .12em .4em;
  border-radius: 5px;
  color: #cde0ff;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .95rem;
  padding: .7rem 1.15rem; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), #3d7fe0);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(79,156,255,.7);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(79,156,255,.85); }
.btn-outline { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--accent); background: rgba(79,156,255,.08); }
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }
.btn-icon { display: inline-flex; width: 18px; height: 18px; }
.btn-icon svg { width: 100%; height: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,23,.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-name { letter-spacing: -.01em; }
.brand-dim { color: var(--text-mut); }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; }
.brand-mark span {
  width: 6px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.brand-mark span:nth-child(2) { height: 18px; background: linear-gradient(180deg, var(--accent-3), var(--accent)); }
.brand-mark span:nth-child(3) { height: 11px; }
.brand-mark.small span { height: 10px; width: 5px; }
.brand-mark.small span:nth-child(2){ height: 13px; }
.brand-mark.small span:nth-child(3){ height: 8px; }
.nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav a { color: var(--text-dim); font-size: .94rem; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; }

/* ===== Hero ===== */
.hero { padding: 84px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(79,156,255,.1); border: 1px solid rgba(79,156,255,.25);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.accent { background: linear-gradient(120deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-sub { margin-top: 16px; color: var(--text-mut); font-size: .9rem; }

/* Strata visual */
.hero-visual { display: flex; justify-content: center; }
.strata { width: 100%; max-width: 360px; perspective: 1000px; display: grid; gap: 14px; }
.strata-layer {
  border: 1px solid var(--border-2); border-radius: 12px;
  padding: 16px 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow); transform: rotateX(6deg);
  display: flex; flex-direction: column;
}
.strata-layer span { font-weight: 650; }
.strata-layer small { color: var(--text-mut); font-size: .78rem; }
.strata-layer.l1 { border-color: rgba(124,108,255,.5); box-shadow: 0 16px 40px -18px rgba(124,108,255,.6); }
.strata-layer.l3 { border-color: rgba(79,156,255,.5); box-shadow: 0 16px 40px -18px rgba(79,156,255,.5); }
.strata-layer.l4 { border-color: rgba(51,214,181,.4); }

/* ===== Trust strip ===== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 24px; }
.strip-inner div { display: flex; flex-direction: column; gap: 2px; }
.strip-inner strong { font-size: .98rem; }
.strip-inner span { color: var(--text-mut); font-size: .84rem; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker { display: inline-block; color: var(--accent-3); font-weight: 650; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2, .section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 12px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--text-dim); }

/* Two-column feature blocks */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* Let grid items shrink so wide children (terminal/console) scroll internally
   instead of forcing horizontal page overflow. */
.two-col > *, .hero-inner > * { min-width: 0; }
.terminal, .console-card { max-width: 100%; }
/* Alternate layout: console section puts copy on the right, visual on the left. */
.two-col.reverse .col-copy { order: 2; }
.two-col .col-copy h2 { margin-top: 6px; }
.two-col p { color: var(--text-dim); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent-3), var(--accent));
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 3px;
  border-left: 2px solid #06121f; border-bottom: 2px solid #06121f; transform: rotate(-45deg);
}
.inline-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal */
.terminal { background: #0a0e16; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #33405e; }
.terminal-bar span:nth-child(1){ background: #ff5f57; }
.terminal-bar span:nth-child(2){ background: #febc2e; }
.terminal-bar span:nth-child(3){ background: #28c840; }
.terminal pre { margin: 0; padding: 20px; overflow-x: auto; }
.terminal code { background: none; padding: 0; font-family: var(--mono); font-size: .86rem; line-height: 1.7; color: #cbd8ee; }
.c-dim { color: var(--text-mut); }
.c-prompt { color: var(--accent-3); }
.c-flag { color: var(--accent); }
.c-ok { color: var(--ok); }

/* Console card */
.console-card { background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.console-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; }
.console-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
.console-top .pill { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--ok); background: rgba(58,210,159,.12); border: 1px solid rgba(58,210,159,.3); padding: .2rem .6rem; border-radius: 999px; }
.console-rows { padding: 8px 8px 12px; }
.crow { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; font-size: .92rem; }
.crow:hover { background: rgba(255,255,255,.03); }
.crow em { color: var(--text-mut); font-style: normal; margin-left: auto; margin-right: 14px; font-size: .84rem; }
.crow b { font-weight: 600; font-size: .8rem; color: var(--text-dim); min-width: 66px; text-align: right; }
.cstatus { width: 9px; height: 9px; border-radius: 50%; }
.cstatus.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(58,210,159,.16); }
.cstatus.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,180,81,.16); }
.cstatus.off { background: var(--off); }

/* ===== Download grid ===== */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease, transform .12s ease, box-shadow .2s ease;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.dl-card.recommended { border-color: rgba(79,156,255,.5); box-shadow: 0 18px 44px -22px rgba(79,156,255,.6); }
.dl-badge { position: absolute; top: 16px; right: 16px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: rgba(79,156,255,.12); border: 1px solid rgba(79,156,255,.3); padding: .22rem .55rem; border-radius: 999px; }
.dl-os-icon { width: 34px; height: 34px; color: var(--text); margin-bottom: 8px; }
.dl-os-icon svg { width: 100%; height: 100%; }
.dl-card h3 { margin: 0; font-size: 1.25rem; }
.dl-card .dl-sub { color: var(--text-mut); font-size: .85rem; margin: 0 0 16px; }
.dl-card .btn { margin-top: auto; width: 100%; justify-content: center; }
.download-foot { text-align: center; color: var(--text-mut); margin-top: 28px; font-size: .92rem; }
.download-foot a { color: var(--accent); }

/* ===== CTA ===== */
.cta { padding: 92px 0; text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(124,108,255,.18), transparent 60%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; letter-spacing: -.02em; }
.cta-inner p { color: var(--text-dim); font-size: 1.1rem; margin: 0 0 26px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 52px 24px 32px; }
.footer-brand .brand-name { display: inline-flex; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand-mark { margin-bottom: 4px; }
.footer-brand .muted { color: var(--text-mut); margin: 4px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer-cols h4 { margin: 0 0 12px; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); }
.footer-cols a { display: block; color: var(--text-dim); padding: 5px 0; font-size: .93rem; }
.footer-cols a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; padding: 18px 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-dim); }
.muted { color: var(--text-mut); }

/* ===== Responsive ===== */

/* --- Tablet & down: collapse to one column --- */
@media (max-width: 900px) {
  .nav { display: none; }

  /* Hero: copy FIRST (headline + CTAs above the fold), visual below. */
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .lede { margin-left: auto; margin-right: auto; }

  /* Feature blocks stack; copy always leads on small screens. */
  .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 32px; }
  .two-col .col-copy, .two-col.reverse .col-copy { order: 1; }
  .two-col .col-visual, .two-col.reverse .col-visual { order: 2; }

  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Phone --- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 58px; gap: 12px; }

  .hero { padding: 40px 0 36px; }
  .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .lede { font-size: 1.05rem; margin-bottom: 24px; }

  /* Full-width, tappable CTAs. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Flatten the 3D tilt and shrink the strata visual on phones. */
  .strata { max-width: 100%; gap: 10px; }
  .strata-layer { transform: none; padding: 14px 16px; }

  .strip-inner { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .download-grid { grid-template-columns: 1fr; }
  .inline-actions .btn, .cta .btn { width: 100%; justify-content: center; }
  .cta { padding: 64px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* --- Very small phones --- */
@media (max-width: 380px) {
  .header-cta { display: none; }        /* hero CTAs are right below anyway */
  .brand-name { font-size: .98rem; }
}

/* --- Large desktops: let the layout breathe --- */
@media (min-width: 1400px) {
  :root { --maxw: 1200px; }
  .hero { padding: 104px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .btn:hover, .dl-card:hover { transform: none; }
}
