/* ==========================================================================
   Strix Technology, strixtechnology.com
   Single stylesheet. No framework, no build step.
   Tokens first, then layout, then components, in document order.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  color-scheme: light dark;

  /* Brand. --brand is the existing Strix teal; the rest is a scale built
     around it so tints stay in the same family. */
  --brand: #0b486b;
  --brand-strong: #08374f;
  --brand-mid: #1a7aa8;
  --brand-soft: #7cbcd9;
  --brand-wash: #e8f2f7;

  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-card: #ffffff;

  --border: #dde7ed;
  --border-strong: #c3d4de;

  --text: #102733;
  --text-mute: #52707f;
  --text-faint: #7891a0;
  --on-brand: #ffffff;

  --shadow-sm: 0 1px 2px rgb(9 40 56 / .06), 0 2px 8px rgb(9 40 56 / .04);
  --shadow-md: 0 2px 6px rgb(9 40 56 / .07), 0 12px 32px rgb(9 40 56 / .08);
  --shadow-lg: 0 8px 20px rgb(9 40 56 / .10), 0 28px 60px rgb(9 40 56 / .12);

  --radius: 14px;
  --radius-lg: 22px;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4ea3cf;
    --brand-strong: #7cc3e6;
    --brand-mid: #4ea3cf;
    --brand-soft: #2b6b8d;
    --brand-wash: #102a3a;

    --bg: #08161f;
    --bg-soft: #0c1e29;
    --bg-card: #0e2331;

    --border: #1c3948;
    --border-strong: #2a4d5f;

    --text: #e4eef3;
    --text-mute: #9fb8c4;
    --text-faint: #7695a5;
    --on-brand: #05161f;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 2px 6px rgb(0 0 0 / .45), 0 12px 32px rgb(0 0 0 / .35);
    --shadow-lg: 0 8px 20px rgb(0 0 0 / .5), 0 28px 60px rgb(0 0 0 / .45);
  }
}

/* --------------------------------------------------------------- resets -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header. */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.7vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: 1.0625rem; letter-spacing: -.01em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-mid); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--brand);
  color: var(--on-brand);
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------- layout -- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.lede {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-mute);
}

.hl {
  /* Underline that sits behind the descenders rather than through them. */
  background: linear-gradient(to top, var(--brand-wash) .32em, transparent .32em);
  padding-inline: .06em;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: saturate(1.6) blur(12px); }
}

/* .is-stuck is toggled from main.js once the page scrolls. */
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 130px; height: auto; }  /* 2.44:1 logo -> ~53px tall in a 72px header */

@media (prefers-color-scheme: dark) {
  /* The wordmark is dark teal on transparent; lift it so it stays
     readable on the dark header without shipping a second logo file. */
  .brand img { filter: brightness(1.9); }
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.4vw, 1.1rem);
}

.nav a {
  display: block;
  padding: .5rem .7rem;
  border-radius: 8px;
  color: var(--text-mute);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav a:hover { color: var(--text); background: var(--bg-soft); }

/* .is-current is maintained by the IntersectionObserver in main.js. */
.nav a.is-current { color: var(--brand); background: var(--brand-wash); }

.nav .nav-cta {
  margin-left: .35rem;
  padding-inline: 1.05rem;
  background: var(--brand);
  color: var(--on-brand);
}
.nav .nav-cta:hover { background: var(--brand-strong); color: var(--on-brand); }
.nav .nav-cta.is-current { background: var(--brand-strong); color: var(--on-brand); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(90ch 50ch at 82% -12%, var(--brand-wash), transparent 62%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 34rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero-art img {
  display: block;
  width: min(100%, 26rem);
  margin-inline: auto;
  filter: drop-shadow(0 24px 44px rgb(9 40 56 / .13));
}

@media (prefers-color-scheme: dark) {
  .hero-art img { filter: drop-shadow(0 24px 44px rgb(0 0 0 / .5)); }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease),
              color .18s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------- products -- */

.product { padding-block: var(--section-y); }
.product.alt { background: var(--bg-soft); }

.product-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

/* Visual on the right for alternating sections. */
.product-inner.flip .product-visual { order: 2; }

.product-copy { min-width: 0; }

.product-copy h2 { margin-bottom: .35em; }
.product-copy .lede { margin-bottom: 1.15em; }
.product-copy > p { color: var(--text-mute); }

.product-actions { margin-top: 2rem; }

/* ---- feature list ---- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.25rem;
}

.features li { display: flex; gap: .9rem; }

.features h3 { margin-bottom: .15em; color: var(--text); }

.features p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--text-mute);
}

.icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: .1rem;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- product artwork ---- */

.product-visual { display: flex; justify-content: center; min-width: 0; }

/* Artwork that ships with its own device frame, like the Fishbowl header. */
.product-art { width: min(100%, 27rem); }
.product-art-narrow { width: min(100%, 22rem); }

/* ---- line-art diagram (LLM Hangar): your cloud account and its parts ---- */

.ill { width: min(100%, 30rem); height: auto; }

.lineart .lbl,
.lineart .lbl-c {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--text-mute);
}
.lineart .lbl-c { text-anchor: middle; fill: var(--text); }
.lineart .lbl-acc { fill: var(--brand-mid); }

.lineart .dash {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.lineart .line {
  fill: var(--bg-card);
  stroke: var(--brand);
  stroke-width: 1.5;
}

.lineart rect.acc {
  fill: var(--brand-wash);
  stroke: var(--brand-mid);
  stroke-width: 1.5;
}
.lineart circle.acc,
.lineart path.acc {
  fill: none;
  stroke: var(--brand-mid);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.lineart .fill-acc { fill: var(--brand-mid); }

.lineart .dim {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.lineart .badge {
  fill: var(--bg-card);
  stroke: var(--border-strong);
  stroke-width: 1;
}

/* ---------------------------------------------------------------- about -- */

.about {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
}

.about-inner { max-width: 62rem; }

.about-inner > h2 { margin-bottom: 1.75rem; max-width: 20ch; }

/* Two text columns rather than text beside an image: the section reads as a
   change of rhythm after three image-led product blocks. */
.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
}

.about-cols p { color: var(--text-mute); }

/* -------------------------------------------------------------- contact -- */

.contact {
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  text-align: center;
}

.contact-mail {
  margin-top: 2rem;
  font-size: clamp(1.15rem, 1rem + 1.1vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.contact-mail a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-soft);
  padding-bottom: .1em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.contact-mail a:hover { color: var(--brand-strong); border-color: var(--brand); }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  padding-block: 2.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: .9rem;
  color: var(--text-faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.35rem; }

.footer-links a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-links a:hover { color: var(--brand); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 60rem) {
  .hero-inner,
  .product-inner {
    /* minmax(0,1fr), not 1fr: a bare 1fr track is minmax(auto,1fr) and will
       not shrink below its content's min-content width, which can let wide
       content push the whole page wider than the viewport. */
    grid-template-columns: minmax(0, 1fr);
  }

  /* Visual first on narrow screens, whichever side it sits on when wide. */
  .hero-art { order: -1; }
  /* min() so this never exceeds the viewport; a bare max-width would
     override the img{max-width:100%} reset and overflow small screens. */
  .hero-art img { width: min(100%, 24rem); margin-inline: auto; }

  .product-inner .product-visual,
  .product-inner.flip .product-visual { order: -1; }

  .hero-copy, .product-copy, .about-copy { text-align: left; }
}

@media (max-width: 52rem) {
  .nav-toggle { display: grid; place-items: center; }

  .nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: .6rem var(--gutter) 1.1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-md);
  }

  /* .is-open is toggled from main.js alongside aria-expanded. */
  .nav.is-open { display: block; }

  .nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }

  .nav a { padding: .8rem .9rem; font-size: 1rem; }

  .nav .nav-cta {
    margin-left: 0;
    margin-top: .5rem;
    text-align: center;
  }
}

@media (max-width: 34rem) {
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------- motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------------------------------------------------------- print -- */

@media print {
  .site-header, .nav-toggle, .hero-actions, .product-actions { display: none; }
  body { color: #000; background: #fff; }
}
