/* ============================================================
   TUATECH Prototype Styles
   Extends the live-site visual language; adds product + tweaks.
   ============================================================ */

:root{
  /* base tokens from styles.css */
  --bg: #0b0f14;
  --bg2:#0f1620;
  --card:#101824;
  --text:#e6edf7;
  --muted:#a9b5c7;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --brand:#4c8bd6;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;

  /* product accent — runtime-switchable */
  --product: #a78bfa;       /* violet (default) */
  --product-soft: rgba(167,139,250,.18);
  --product-line: rgba(167,139,250,.40);

  /* status colors */
  --ok: #4ade80;
  --ok-soft: rgba(74,222,128,.14);
  --warn: #f5b454;
  --warn-soft: rgba(245,180,84,.14);
}

body[data-product-accent="blue"]{
  --product: #4c8bd6;
  --product-soft: rgba(76,139,214,.18);
  --product-line: rgba(76,139,214,.40);
}
body[data-product-accent="green"]{
  --product: #3ecf8e;
  --product-soft: rgba(62,207,142,.18);
  --product-line: rgba(62,207,142,.40);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(76,139,214,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(76,139,214,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

/* ===== Header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.55);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.brand-logo{
  height:34px;
  width:auto;
  display:block;
}
.nav{
  display:flex;
  align-items:center;
  gap:6px;
}
.nav-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}
.nav-link:hover{
  color:var(--text);
  background: rgba(255,255,255,.04);
  opacity:1;
}
.nav-link.is-active{
  color:var(--text);
  background: rgba(255,255,255,.04);
}
.nav-cta{
  color:var(--text);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  margin-left:6px;
}
.nav-products .caret{
  transition: transform .18s ease;
}
.nav-products:hover .caret{
  transform: rotate(180deg);
}
/* Transparent bridge fills the gap between trigger and dropdown
   so moving the mouse down doesn't lose the hover zone */
.nav-products::after{
  content:"";
  position:absolute;
  top:100%;
  left:-10px;
  right:-10px;
  height:14px;
}

/* dropdown */
.dropdown{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:260px;
  padding:8px;
  background: rgba(15,22,32,.96);
  border:1px solid var(--line-strong);
  border-radius:14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(14px);
  display:flex;
  flex-direction:column;
  gap:2px;
  opacity:0;
  transform: translateY(-4px);
  pointer-events:none;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-products:hover .dropdown,
.nav-products:focus-within .dropdown{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.dropdown-item{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 12px;
  border-radius:10px;
  color:var(--text);
}
.dropdown-item:hover:not(.is-disabled){
  background: rgba(255,255,255,.05);
  opacity:1;
}
.dropdown-item.is-disabled{
  cursor:default;
  opacity:.5;
}
.dd-title{
  font-size:14px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.dd-sub{
  font-size:12px;
  color:var(--muted);
}

/* Mobile menu */
.nav-toggle{
  display:none;
  width:44px;
  height:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background: rgba(230,237,247,.9);
  border-radius:99px;
}
.mobile-nav{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  padding:14px 22px 22px;
  background: linear-gradient(180deg, rgba(11,15,20,.98), rgba(11,15,20,.94));
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  animation: menuDrop .18s ease-out;
}
.mobile-nav[hidden]{display:none !important}
@keyframes menuDrop{
  from{opacity:0; transform: translateY(-6px)}
  to{opacity:1; transform: translateY(0)}
}
.mobile-link{
  display:block;
  padding:14px 4px;
  font-size:16px;
  color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,.04);
}
.mobile-link:last-child{border-bottom:none}
.mobile-link:hover{color:var(--text)}
.mobile-group{
  border-bottom:1px solid rgba(255,255,255,.04);
  padding-bottom:6px;
}
.mobile-group-title{
  padding:14px 4px 6px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.mobile-sublink{
  padding-left:14px;
  font-size:15px;
}
.mobile-sublink.is-disabled{
  color: rgba(169,181,199,.4);
  display:flex;
  align-items:center;
  gap:8px;
}
.mobile-cta{
  margin-top:14px;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:600;
  display:inline-block;
}

/* ===== Hero (home) ===== */
.hero{padding:54px 0 20px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:center;
}
.eyebrow{
  margin:0 0 10px;
  color:var(--muted);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:12px;
}
h1{
  margin:0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height:1.08;
  letter-spacing:-.01em;
  text-wrap: balance;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width:56ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid var(--line);
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  cursor:pointer;
}
.btn-primary{
  border-color: rgba(76,139,214,.4);
  background: rgba(76,139,214,.18);
}
.btn-primary:hover{
  background: rgba(76,139,214,.28);
  opacity:1;
}
.btn-product{
  border-color: var(--product-line);
  background: var(--product-soft);
}
.btn-product:hover{
  background: color-mix(in oklab, var(--product) 28%, transparent);
  opacity:1;
}
.btn-ghost{
  background: rgba(255,255,255,.02);
  color:var(--text);
}
.btn-ghost:hover{background: rgba(255,255,255,.06); opacity:1}
.micro{
  margin:0;
  color: rgba(169,181,199,.85);
  font-size:13px;
}

/* hero blueprint visual (kept) */
.hero-image{
  position: relative;
  height: 320px;
  border: none;
  box-shadow: none;
  background: none;
  overflow: hidden;
}
.hero-image::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    repeating-linear-gradient(
      125deg,
      rgba(230,237,247,.10) 0px,
      rgba(230,237,247,.10) 1px,
      transparent 1px,
      transparent 26px
    );
  transform: skewX(-14deg);
  opacity: .35;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,.65) 35%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%);
  pointer-events:none;
}
.hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(520px 380px at 85% 50%, rgba(76,139,214,.22), transparent 60%);
  pointer-events:none;
}

/* ===== Sections ===== */
.section{padding:54px 0}
.section-alt{
  background: rgba(255,255,255,.02);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:22px;
}
.section-head h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.01em;
}
.section-head p{
  margin:0;
  color: rgba(169,181,199,.78);
  max-width:62ch;
  line-height:1.45;
  font-size:13px;
  font-style: italic;
  letter-spacing:.01em;
}

/* ===== Cards (What we do) ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.card h3{
  margin:0 0 8px;
  font-size:16px;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

/* ===== Tiles (How we work) ===== */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.tile{
  border:1px solid var(--line);
  background: rgba(16,24,36,.45);
  border-radius: var(--radius);
  padding:18px;
}
.tile h3{margin:0 0 8px; font-size:16px}
.tile p{margin:0; color:var(--muted); font-size:14px; line-height:1.55}

/* ===== Pills (Where it fits) ===== */
.pills{display:flex; flex-wrap:wrap; gap:10px}
.pill{
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: rgba(230,237,247,.92);
  font-size:14px;
}

/* ===== Partners ===== */
.partners{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.partner{
  position:relative;
  border:1px solid rgba(255,255,255,.05);
  border-radius: 18px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:130px;
  padding:22px 28px;
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  background:
    radial-gradient(140% 90% at 18% 0%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(76,139,214,.18), rgba(76,139,214,0) 55%),
    linear-gradient(155deg, #eef2f7 0%, #dde3ec 55%, #c9d2de 100%);
  box-shadow:
    0 10px 28px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -1px 0 rgba(0,0,0,.05);
}
.partner::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.30) 0px,
      rgba(255,255,255,.30) 1px,
      transparent 1px,
      transparent 16px
    );
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,.45), transparent 60%);
  pointer-events:none;
  opacity:.55;
}
.partner:hover{
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(0,0,0,.05);
  opacity:1;
}
.partner img{
  position:relative;
  max-height: 70px;
  height:auto;
  width:auto;
  max-width:85%;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

/* ===== Contact ===== */
.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:center;
}
.contact h2{margin:0 0 10px; font-size:26px}
.contact p{margin:0 0 16px; color:var(--muted); line-height:1.6}
.contact-items{display:flex; flex-wrap:wrap; gap:10px}
.contact-item{
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: rgba(230,237,247,.92);
  font-size:14px;
}
.contact-pattern{height:140px; overflow:hidden; filter: saturate(0.75) brightness(0.9)}
.contact-pattern svg{width:100%; height:100%; display:block}

/* ===== Footer ===== */
.site-footer{
  border-top:1px solid var(--line);
  padding:22px 0;
  background: rgba(0,0,0,.12);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.footer-logo{height:28px; width:auto; display:block}
.footer-meta{margin-top:6px; color:var(--muted); font-size:11px; opacity:.55}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{color:var(--muted); font-size:14px}
.footer-links a:hover{color:var(--text); opacity:1}

/* ============================================================
   NEW — Product cards on home
   ============================================================ */
.product-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:22px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background:
    radial-gradient(600px 300px at 100% 0%, var(--product-soft), transparent 55%),
    rgba(255,255,255,.02);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  overflow:hidden;
}
.product-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(230,237,247,.05) 0px,
      rgba(230,237,247,.05) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity:.3;
  mask-image: linear-gradient(to bottom right, transparent 30%, rgba(0,0,0,.6));
}
.product-card--available:hover{
  border-color: var(--product-line);
  transform: translateY(-2px);
  opacity:1;
}
.product-card--soon{
  background:
    rgba(255,255,255,.015);
  border-style: dashed;
}
.product-card-top{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.product-arrow{
  color:var(--product);
  opacity:.7;
  transition: transform .25s ease, opacity .2s ease;
}
.product-card--available:hover .product-arrow{
  transform: translateX(4px);
  opacity:1;
}
.product-name{
  position:relative;
  margin:0;
  font-size: 36px;
  font-weight: 600;
  letter-spacing:-.015em;
  line-height:1;
}
.product-card--soon .product-name{
  color: rgba(230,237,247,.6);
}
.product-desc{
  position:relative;
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
  max-width: 44ch;
}
.product-meta{
  position:relative;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:auto;
}
.product-tag{
  font-size:11px;
  padding:5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  color: var(--muted);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.product-tag--ghost{
  visibility:hidden;
}
.product-card-foot{
  position:relative;
  margin-top:8px;
  font-size:14px;
  font-weight:600;
  color: var(--product);
}
.product-card-foot--muted{
  color:var(--muted);
  opacity:.5;
  font-weight:400;
}
.product-card--green{
  --product: #3ecf8e;
  --product-soft: rgba(62,207,142,.18);
  --product-line: rgba(62,207,142,.40);
}

/* ============================================================
   Kelpie screenshot gallery
   ============================================================ */
.kelpie-shots{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
}
.kelpie-shot-main{
  grid-column: 1 / -1;
}
.kelpie-shot figcaption{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.kelpie-shot-title{
  font-size:15px;
  font-weight:600;
  color:var(--text);
}
.kelpie-shot-desc{
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
}

/* ============================================================
   Badges
   ============================================================ */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius: 999px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid transparent;
}
.badge .dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background: currentColor;
}
.badge-available{
  color: var(--ok);
  background: var(--ok-soft);
  border-color: rgba(74,222,128,.25);
}
.badge-current{
  color: var(--product);
  background: var(--product-soft);
  border-color: var(--product-line);
}
.badge-planned{
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border-color: var(--line);
}
.badge-soon{
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(245,180,84,.25);
}

/* ============================================================
   Shadowfax page
   ============================================================ */

/* breadcrumb */
.breadcrumb{
  position:relative;
  padding: 22px 0 28px;
  font-size:13px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px;
  width:min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  z-index: 1;
}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--text); opacity:1}
.bc-sep{opacity:.5}
.bc-current{color:var(--text)}

/* product hero */
.product-hero{
  padding: 0 0 30px;
  position:relative;
  overflow:hidden;
}
.product-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 80% 10%, var(--product-soft), transparent 60%);
  pointer-events:none;
}
.product-hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:36px;
  align-items:center;
}
.eyebrow-product{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.eyebrow-product .dot-sep{
  width:3px;
  height:3px;
  background: rgba(169,181,199,.6);
  border-radius:50%;
}
.eyebrow-product .badge{
  text-transform: uppercase;
  letter-spacing:.06em;
}
.product-h1{
  margin:0 0 6px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight:600;
  line-height: 1;
  letter-spacing:-.02em;
  background: linear-gradient(180deg, var(--text), color-mix(in oklab, var(--text) 70%, var(--product)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-tagline{
  margin:0 0 18px;
  font-size: 19px;
  color: var(--text);
  line-height:1.4;
  max-width: 38ch;
}

/* dashboard frame */
.dashboard-frame{
  position:relative;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(8,12,18,.95);
  border:1px solid var(--line-strong);
  box-shadow:
    0 20px 60px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.02),
    0 0 80px -20px var(--product-soft);
}
.dashboard-frame-bar{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.window-dot{
  width:10px;
  height:10px;
  border-radius:50%;
}
.window-dot--red{background:#ff5f57}
.window-dot--yellow{background:#febc2e}
.window-dot--green{background:#28c840}
.dashboard-frame-url{
  margin-left:12px;
  font-size:11px;
  color:var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing:.02em;
}
.dashboard-image{
  display:block;
  width:100%;
  height:auto;
  filter: contrast(1.02) saturate(1.05);
}

/* How it works — steps */
.steps{
  display:grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap:14px;
  align-items:stretch;
}
.step{
  position:relative;
  padding: 22px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 600px at 0% 0%, var(--product-soft), transparent 80%),
    rgba(255,255,255,.02);
  overflow:hidden;
}
.step::before{
  content:none;
}
.step-num{
  position:relative;
  display:inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:12px;
  color: var(--product);
  letter-spacing:.15em;
  margin-bottom:10px;
}
.step h3{
  position:relative;
  margin:0 0 8px;
  font-size:20px;
  font-weight:600;
  letter-spacing:-.01em;
}
.step p{
  position:relative;
  margin:0;
  font-size:14px;
  line-height:1.55;
  color: var(--muted);
}
.step-arrow{
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(167,139,250,.45);
}
body[data-product-accent="blue"] .step-arrow{
  color: rgba(76,139,214,.45);
}

/* Features grid */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.feature{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  transition: border-color .2s ease, background .2s ease;
}
.feature:hover{
  border-color: var(--product-line);
  background: rgba(255,255,255,.04);
}
.feature--lead{
  background:
    radial-gradient(420px 240px at 0% 0%, var(--product-soft), transparent 60%),
    rgba(255,255,255,.025);
  border-color: var(--product-line);
  position:relative;
  overflow:hidden;
}
.feature--lead::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(
      125deg,
      rgba(167,139,250,.10) 0px,
      rgba(167,139,250,.10) 1px,
      transparent 1px,
      transparent 22px
    );
  mask-image: linear-gradient(to top right, transparent 50%, rgba(0,0,0,.7));
  pointer-events:none;
}
.feature--lead .feature-icon{
  width:42px;
  height:42px;
  background: var(--product-soft);
  border-color: var(--product-line);
}
.feature--lead .feature-icon svg{ width:22px; height:22px; }
.feature--lead h3{
  position:relative;
  font-size:17px;
}
.feature--lead p{
  position:relative;
  font-size:14px;
  color: rgba(230,237,247,.85);
}
body[data-product-accent="blue"] .feature--lead::before{
  background:
    repeating-linear-gradient(
      125deg,
      rgba(76,139,214,.10) 0px,
      rgba(76,139,214,.10) 1px,
      transparent 1px,
      transparent 22px
    );
}
.feature-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background: var(--product-soft);
  border:1px solid var(--product-line);
  color: var(--product);
}
.feature-icon svg{width:18px; height:18px; display:block}
.feature h3{
  margin:0;
  font-size:15px;
  font-weight:600;
}
.feature p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color: var(--muted);
}

/* Key facts */
.facts{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:12px;
}
.fact{
  padding:22px 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.fact-mark{
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing:-.02em;
  line-height:1;
  color: var(--product);
  margin-bottom:10px;
}
.fact-label{
  font-size:13px;
  font-weight:600;
  color: var(--text);
  line-height:1.3;
  margin-bottom:6px;
}
.fact-sub{
  font-size:12px;
  color: var(--muted);
  line-height:1.5;
}

/* Roadmap timeline */
.roadmap{
  list-style:none;
  margin:0;
  padding:0;
  position:relative;
  max-width: 760px;
}
.roadmap::before{
  content:"";
  position:absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width:1px;
  background: var(--line-strong);
}
.roadmap-item{
  position:relative;
  display:grid;
  grid-template-columns: 32px 1fr;
  gap:18px;
  padding: 10px 0 18px;
}
.roadmap-item:last-child{padding-bottom:0}
.roadmap-marker{
  position:relative;
  z-index:1;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background: var(--bg2);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
}
.roadmap-marker svg{width:14px; height:14px}
.roadmap-item--done .roadmap-marker{
  background: color-mix(in oklab, var(--ok) 16%, var(--bg2));
  border-color: rgba(74,222,128,.4);
  color: var(--ok);
}
.roadmap-item--current .roadmap-marker{
  background: color-mix(in oklab, var(--product) 16%, var(--bg2));
  border-color: var(--product-line);
  color: var(--product);
}
.roadmap-item--current .roadmap-marker::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid var(--product-line);
  opacity:.5;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%{transform:scale(.8); opacity:.6}
  100%{transform:scale(1.3); opacity:0}
}
.roadmap-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:4px;
}
.roadmap-version{
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:14px;
  font-weight:600;
  color: var(--text);
  letter-spacing:.02em;
}
.roadmap-content p{
  margin:0;
  font-size:14px;
  color: var(--muted);
  line-height:1.5;
}

/* product bottom CTA */
.product-cta{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  align-items:center;
  gap:24px;
  padding: 32px;
  border-radius: var(--radius2);
  border:1px solid var(--product-line);
  background:
    radial-gradient(600px 300px at 0% 100%, var(--product-soft), transparent 60%),
    rgba(255,255,255,.02);
}
.product-cta h2{margin:0 0 10px; font-size:24px; letter-spacing:-.01em}
.product-cta p{margin:0; color:var(--muted); line-height:1.5; font-size:14px}
.product-cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ============================================================
   Tweaks panel
   ============================================================ */
#tweaks-panel{
  position:fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-height: calc(100vh - 40px);
  overflow-y:auto;
  background: rgba(15,22,32,.96);
  border:1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(14px);
  z-index: 100;
  font-size:13px;
}
.tweaks-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom:1px solid var(--line);
}
.tweaks-title{
  font-weight:600;
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.tweaks-close{
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid var(--line);
  background: transparent;
  color:var(--text);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.tweaks-close:hover{background: rgba(255,255,255,.06)}
.tweaks-body{padding: 14px 16px 18px}
.tweak-section{margin-bottom: 18px}
.tweak-section:last-child{margin-bottom:0}
.tweak-section-title{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom: 10px;
}
.tweak-radio{
  display:grid;
  grid-template-columns: 16px 1fr;
  gap:10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  margin-bottom: 4px;
  border:1px solid transparent;
  align-items: start;
}
.tweak-radio:hover{background: rgba(255,255,255,.03)}
.tweak-radio input[type="radio"]{
  margin-top:3px;
  accent-color: var(--product);
}
.tweak-radio input[type="radio"]:checked + div .tweak-radio-name{
  color: var(--text);
}
.tweak-radio:has(input:checked){
  background: rgba(255,255,255,.03);
  border-color: var(--line);
}
.tweak-radio-name{
  font-weight:600;
  font-size:12px;
  color:var(--muted);
  margin-bottom: 3px;
}
.tweak-radio-text{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.tweak-swatches{
  display:flex;
  gap:8px;
}
.tweak-swatch{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:10px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  cursor:pointer;
  position:relative;
}
.tweak-swatch:hover{background: rgba(255,255,255,.03)}
.tweak-swatch:has(input:checked){
  border-color: var(--text);
  background: rgba(255,255,255,.05);
}
.tweak-swatch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.swatch{
  width:24px;
  height:24px;
  border-radius:50%;
  display:block;
}
.swatch-label{
  font-size:11px;
  color:var(--text);
  letter-spacing:.04em;
}
.tweak-hint{
  margin: 10px 0 0;
  font-size:11px;
  color: var(--muted);
  line-height:1.5;
  font-style: italic;
}
.tweak-nav{
  display:flex;
  gap:8px;
}
.tweak-nav-btn{
  flex:1;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background: rgba(255,255,255,.02);
  color: var(--text);
  cursor:pointer;
  font-size:12px;
  font-weight:600;
}
.tweak-nav-btn:hover{background: rgba(255,255,255,.05)}

/* ============================================================
   NEW v2 — What we do (capability cards)
   ============================================================ */
.cap-cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.cap{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px 20px 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    rgba(255,255,255,.015);
  overflow:hidden;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.cap::before{
  content:"";
  position:absolute;
  top:-1px; right:-1px;
  width:120px;
  height:120px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(76,139,214,.10) 0px,
      rgba(76,139,214,.10) 1px,
      transparent 1px,
      transparent 12px
    );
  mask-image: linear-gradient(225deg, rgba(0,0,0,.9), transparent 60%);
  pointer-events:none;
  opacity: .55;
}
.cap:hover{
  border-color: rgba(76,139,214,.35);
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(76,139,214,.04), rgba(255,255,255,0)),
    rgba(255,255,255,.025);
}
.cap-num{
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing:.18em;
  color: var(--brand);
  opacity:.85;
}
.cap h3{
  margin:0;
  font-size:18px;
  font-weight:600;
  letter-spacing:-.01em;
}
.cap p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.cap-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
  padding-top:8px;
}
.cap-tag{
  font-size:11px;
  padding:4px 9px;
  border-radius:999px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color: rgba(230,237,247,.75);
  letter-spacing:.02em;
}

/* ============================================================
   NEW v2 — How we work (principles)
   ============================================================ */
.principles{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.principle{
  position:relative;
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 20px;
  padding:22px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,24,36,.45);
  overflow:hidden;
}
.principle::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(76,139,214,.08), transparent 60%);
  pointer-events:none;
}
.principle-mark{
  position:relative;
  grid-row: 1 / span 3;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background: rgba(76,139,214,.10);
  border:1px solid rgba(76,139,214,.30);
  color: var(--brand);
  flex-shrink:0;
}
.principle-mark svg{width:22px; height:22px}
.principle h3{
  position:relative;
  grid-column: 2;
  margin:0 0 6px;
  font-size:18px;
  font-weight:600;
  letter-spacing:-.01em;
  align-self: center;
}
.principle > p{
  position:relative;
  grid-column: 2;
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.principle-practice{
  position:relative;
  grid-column: 2;
  margin:0 !important;
  padding: 10px 14px;
  border-left:2px solid rgba(76,139,214,.45);
  background: rgba(76,139,214,.06);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230,237,247,.82) !important;
  font-style: italic;
}
.pp-label{
  display:inline-block;
  margin-right:6px;
  padding:1px 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:10px;
  font-style: normal;
  letter-spacing:.12em;
  text-transform: uppercase;
  background: rgba(76,139,214,.18);
  color: var(--brand);
  border-radius: 6px;
  vertical-align: 2px;
}

/* ============================================================
   NEW v2 — Where it fits (grouped clusters)
   ============================================================ */
.fit-groups{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.fit-group{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  position:relative;
  overflow:hidden;
}
.fit-group::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:2px;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
  opacity:.55;
}
.fit-group-head{
  display:flex;
  align-items:center;
  gap:10px;
}
.fit-group-num{
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  border:1px solid rgba(76,139,214,.30);
  background: rgba(76,139,214,.10);
  color: var(--brand);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size:11px;
  font-weight:600;
  letter-spacing:.04em;
}
.fit-group-title{
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  color: var(--text);
}
.fit-pills{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fit-pills .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  font-size:13px;
  width:fit-content;
  max-width:100%;
  white-space:nowrap;
}
.fit-pills .pill::before{
  content:"";
  width:4px; height:4px;
  background: rgba(230,237,247,.4);
  border-radius:50%;
  flex-shrink:0;
}

/* ============================================================
   Product tour (Shadowfax) — tabbed viewer
   ============================================================ */
.tour{
  display:flex;
  flex-direction:column;
  gap:18px;
  max-width: 900px;
  margin: 0 auto;
}
.tour-stage{
  position:relative;
  transition: opacity .18s ease;
}
.tour-stage img{
  display:block;
  width:100%;
  height:auto;
}
.tour-stage.is-loading img{
  opacity:.4;
}
.tour-caption{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding: 0 2px;
}
.tour-label{
  font-size:15px;
  font-weight:600;
  color: var(--text);
  letter-spacing:-.005em;
}
.tour-desc{
  font-size:13px;
  color: var(--muted);
  line-height:1.5;
}

.tour-thumbs{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:8px;
  margin-top: 4px;
}
.tour-thumb{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  padding: 12px 12px 11px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
  cursor:pointer;
  text-align:left;
  font-family: inherit;
  color: var(--muted);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
  position:relative;
  overflow:hidden;
}
.tour-thumb::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:2px;
  background: var(--product);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.tour-thumb:hover{
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.tour-thumb.is-active{
  background: var(--product-soft);
  border-color: var(--product-line);
  color: var(--text);
}
.tour-thumb.is-active::before{
  transform: scaleX(1);
}
.tour-thumb-name{
  font-size:13px;
  font-weight:600;
  color: inherit;
  letter-spacing:-.005em;
}
.tour-thumb-sub{
  font-size:11px;
  color: var(--muted);
  letter-spacing:.02em;
}

/* ============================================================
   Responsive — new sections
   ============================================================ */
@media (max-width: 1000px){
  .cap-cards{grid-template-columns: repeat(2, 1fr)}
  .principles{grid-template-columns: 1fr}
  .fit-groups{grid-template-columns: 1fr}
  .tour-thumbs{grid-template-columns: repeat(3, 1fr)}
  .hero-grid{grid-template-columns: 1fr}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .grid-3{grid-template-columns: 1fr}
  .contact{grid-template-columns: 1fr}
  .partners{grid-template-columns: repeat(2, 1fr)}
  .section-head{flex-direction:column; align-items:flex-start}
  .section-head p{max-width: 70ch}
  .product-cards{grid-template-columns: 1fr}
  .product-hero-grid{grid-template-columns: 1fr; gap:24px}
  .steps{grid-template-columns: 1fr; gap: 18px}
  .step-arrow{display: none}
  .feature-grid{grid-template-columns: repeat(2, 1fr)}
  .facts{grid-template-columns: repeat(2, 1fr)}
  .product-cta{grid-template-columns: 1fr; padding: 24px}
  .product-cta-actions{justify-content:flex-start}
  #how-it-works{padding-bottom: 60px}
}

@media (max-width: 760px){
  .cap-cards{grid-template-columns: 1fr}
  .nav{display:none}
  .nav-toggle{display:block}
  .container{width:min(var(--max), calc(100% - 28px))}
  .cards{grid-template-columns: 1fr}
  .feature-grid{grid-template-columns: 1fr}
  .facts{grid-template-columns: 1fr}
  .footer-links{text-align:right}
  .footer-links a{display:block}
  .hero-image{display:none}
  #tweaks-panel{
    width: calc(100% - 24px);
    right:12px;
    bottom:12px;
  }
}

/* ============================================================
   Legal pages (Terms, Privacy Policy)
   ============================================================ */
.legal-text{
  color: var(--muted);
  line-height: 1.8;
}
.legal-text p{
  margin: 0 0 1.1em;
}
.legal-text h3{
  margin: 2.2em 0 .6em;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.4;
}
.legal-text h3:first-child{
  margin-top: .4em;
}
.legal-text a{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-text a:hover{
  opacity: .8;
}
