/* ============================================================
   Diski Software — software.diski.xyz
   Quiet umbrella-brand site. Neutral graphite; each product
   carries its own accent via --accent on its list item.
   ============================================================ */

:root {
  /* Surfaces */
  --bg-0: #0b0c0e;
  --bg-1: #101114;
  --bg-2: #16171b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-1: #f4f4f6;
  --text-2: #a9adb6;
  --text-3: #71757f;

  /* The umbrella brand's own "accent" is deliberately quiet */
  --bone: #e9e6dd;

  /* Product accents (referenced by the product list + logo mark) */
  --c-diski: #d672e6;
  --c-timesheets: #5865f2;
  --c-adminrust: #ff5c29;

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1140px;
  --radius: 14px;

  color-scheme: dark;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* The <symbol> sprite is a definitions-only element — never rendered itself. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-1);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
::selection { background: rgba(233, 230, 221, 0.22); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* Mono micro-label used as section eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-2);
}

/* ---------- Atmosphere: soft product-colored glows + grain ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 380px at 12% -6%, rgba(214, 114, 230, 0.07), transparent 70%),
    radial-gradient(560px 420px at 88% 4%, rgba(88, 101, 242, 0.07), transparent 70%),
    radial-gradient(640px 480px at 50% 108%, rgba(255, 92, 41, 0.05), transparent 70%);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.06rem;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
/* The parent-brand mark is the Diski chevron in flat white — currentColor drives it. */
.brand .mark { width: 25px; height: 25px; flex: none; color: #fff; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.site-nav a { transition: color 0.15s ease; }
.site-nav a:hover { color: var(--text-1); }

/* ---------- Hero ---------- */
.hero { padding: clamp(84px, 12vw, 150px) 0 clamp(64px, 9vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 48px;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.1rem);
  font-weight: 640;
}
.hero h1 em {
  font-style: normal;
  color: var(--bone);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 2px;
  background: linear-gradient(90deg, var(--c-diski), var(--c-timesheets), var(--c-adminrust));
  border-radius: 2px;
  opacity: 0.85;
}
.hero .lede {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
}
.hero .lede strong { color: var(--text-1); font-weight: 600; }
.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.btn:hover { border-color: var(--bone); background: rgba(233, 230, 221, 0.06); transform: translateY(-1px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* The umbrella diagram: one company, three products, each with its real mark.
   Built in HTML rather than SVG so the product logos can be dropped straight in. */
.tree { padding-top: 4px; }
.tree-root {
  width: max-content;
  margin: 0 auto;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(233, 230, 221, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--bone);
}
.tree-leaves {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 46px;
}
/* trunk down from the root */
.tree-root::after {
  content: "";
  display: block;
  width: 1px;
  height: 24px;
  margin: 0 auto;
  margin-bottom: -24px;
  background: var(--line-2);
}
/* the crossbar, spanning branch centres */
.tree-leaves::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: var(--line-2);
}
.tree-leaves li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
/* drop from the crossbar to each product */
.tree-leaves li::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: var(--line-2);
}
.tree-logo { width: 30px; height: 30px; }
.tree-leaves b {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.tree-leaves em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Motion is progressive enhancement: the hidden start states are scoped to
   html.js (set by an inline script). With JS off, everything renders visible. */

/* Load-in stagger (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *,
  .js .hero-figure {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
  }
  .js .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .js .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .js .hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
  .js .hero-copy > *:nth-child(4) { animation-delay: 0.38s; }
  .js .hero-figure { animation-delay: 0.5s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.9, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 620; }
.section-head p { margin-top: 16px; }

/* ---------- Product cards ----------
   To add a product: add a <symbol> to the sprite, copy one <li class="product-card">
   block in index.html, and set --accent to the product's brand color.
   Every accent below — name, chip hover, stat value, rule, arrow — derives from it. */
.products { border-top: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.9, 0.3, 1);
}
/* accent rule along the top edge, drawn in on hover */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.product-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product-card:hover::before { transform: scaleX(1); }
/* a very faint wash of the product's own color, so each card feels like itself */
.product-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  filter: blur(30px);
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.card-logo { width: 44px; height: 44px; flex: none; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.platform-glyph { width: 13px; height: 13px; flex: none; }

.card-name {
  font-size: 1.65rem;
  font-weight: 640;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.card-tagline {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.35;
}
.card-desc {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--text-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.chips li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.product-card:hover .chips li { border-color: var(--line-2); }

/* stats sit at the bottom of every card regardless of copy length */
.card-stats {
  display: flex;
  gap: 26px;
  margin: 0;
  margin-top: auto;
  padding-top: 20px;
}
.card-stats div { display: flex; flex-direction: column; gap: 3px; }
.card-stats dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 640;
  color: var(--text-1);
}
.card-stats dd small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-3);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.card-link:hover { color: var(--text-1); }
.card-link .arrow { color: var(--accent); transition: transform 0.2s ease; }
.card-link:hover .arrow { transform: translateX(4px); }

.products-footnote {
  margin-top: 26px;
  font-size: 0.92rem;
  color: var(--text-3);
}

/* ---------- Company / umbrella section ---------- */
.company { border-top: 1px solid var(--line); background: var(--bg-1); }
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.company-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.company-card h3 { font-size: 1.05rem; font-weight: 620; margin-bottom: 10px; }
.company-card p { font-size: 0.95rem; color: var(--text-2); }
.statement-note {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-2);
}
.statement-note .tick { color: var(--bone); flex: none; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--bg-1);
}
.contact-card h3 { font-size: 1.1rem; font-weight: 620; margin-bottom: 12px; }
.contact-card p { font-size: 0.97rem; }
.contact-card .mail {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--bone);
  border-bottom: 1px solid rgba(233, 230, 221, 0.35);
  transition: border-color 0.15s ease;
}
.contact-card .mail:hover { border-color: var(--bone); }
.contact-card .contact-fine { margin-top: 16px; font-size: 0.86rem; color: var(--text-3); }
.support-list { margin: 18px 0 0; padding: 0; list-style: none; }
.support-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
}
.support-list li:first-child { border-top: 0; }
.support-logo { width: 22px; height: 22px; flex: none; }
.support-list b { color: var(--text-1); font-weight: 600; }
.support-list a { color: var(--text-1); border-bottom: 1px solid var(--line-2); transition: border-color 0.15s ease; }
.support-list a:hover { border-color: var(--text-1); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 40px 0 34px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-nav a { transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--text-1); }
.footer-copy {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.footer-tm {
  margin-top: 14px;
  max-width: 78ch;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--text-3);
  opacity: 0.75;
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: clamp(64px, 9vw, 110px) 0; }
/* Reading column is narrow, but its left edge stays flush with the header brand. */
.legal .wrap > * { max-width: 72ch; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 640; margin: 18px 0 10px; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal h2 { font-size: 1.25rem; font-weight: 620; margin: 44px 0 12px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--bone); border-bottom: 1px solid rgba(233, 230, 221, 0.35); transition: border-color 0.15s ease; }
.legal a:hover { border-color: var(--bone); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  /* Three cards get cramped before this; two read better than three squeezed. */
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  /* The diagram needs room to stay legible — below this it says nothing the copy doesn't. */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
}
@media (max-width: 860px) {
  .company-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav { gap: 16px; font-size: 0.7rem; }
  .site-nav .hide-sm { display: none; }
  .card-stats { gap: 20px; }
  .card-top { align-items: flex-start; }
}
