/* ==========================================================================
   BorgTech — styles.css
   Tokens, base styles and component classes. Link this one file.
   Source: BorgTech brand guidelines v1.0, September 2026.
   ========================================================================== */

/* --- Type -----------------------------------------------------------------
   Red Hat Display for headings, Red Hat Text for everything else.
   Both open source, both served from Google Fonts. */
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@700&family=Red+Hat+Text:wght@400;500;700&display=swap");

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Blue ramp. One hue; depth does the work a second colour would do. */
  --blue-50:  #F0F9FF;
  --blue-100: #E0F2FE;
  --blue-200: #BAE6FD;
  --blue-300: #7DD3FC;
  --blue-400: #38BDF8;
  --blue-500: #0EA5E9;
  --blue-600: #0284C7;
  --blue-700: #0369A1;
  --blue-800: #075985;
  --blue-900: #0C4A6E;
  --blue-950: #082F49;

  /* Neutrals */
  --neutral-50:  #F4F8FB;
  --neutral-200: #E0EAF2;
  --neutral-600: #4A6378;
  --white:       #FFFFFF;

  /* Roles */
  --ground:       var(--white);       /* white is the ground */
  --surface:      var(--neutral-50);  /* neutral 50 groups things */
  --line:         var(--neutral-200); /* a 1px edge comes first */
  --text:         var(--blue-950);    /* text is blue 950, never black */
  --text-muted:   var(--neutral-600);
  --action:       var(--blue-700);    /* actions and links */
  --action-hover: var(--blue-800);
  --tint:         var(--blue-100);    /* tints, hover and selected states */
  --dark:         var(--blue-950);    /* hero band and footer only */
  --dark-text:    var(--white);
  --dark-muted:   var(--blue-200);
  --dark-accent:  var(--blue-300);

  /* Products. The three depths mean products, nothing else. */
  --product-sites:     var(--blue-950); /* Managed Site Platform */
  --product-psa:       var(--blue-700); /* PSA */
  --product-marketing: var(--blue-300); /* Marketing Command Center */

  /* Typefaces */
  --font-display: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;
  --font-text:    "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout: 1200px container, 40px gutters, 64px header */
  --container: 1200px;
  --gutter: 40px;
  --header: 64px;

  /* Spacing, 4px base */
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Corners */
  --r-control: 6px;
  --r-card: 8px;
  --r-panel: 12px;
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 16px/1.55 var(--font-text);
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--action); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--action-hover); }

:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.band-dark :focus-visible { outline-color: var(--dark-accent); }

svg { display: block; }

/* --- Type scale ----------------------------------------------------------- */
h1, h2, h3, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
}
.display   { font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; }
h1, .h1    { font-size: 48px; line-height: 1.05; letter-spacing: -0.025em; }
h2, .h2    { font-size: 32px; line-height: 1.1;  letter-spacing: -0.02em; }
h3, .h3    { font-size: 24px; line-height: 1.2;  letter-spacing: -0.015em; }
.lead      { font-size: 18px; line-height: 1.5; } /* body × 1.125, for hero and page intros */
.ui        { font-size: 14px; line-height: 1.4; font-weight: 500; }
.label     { font-size: 12px; line-height: 1.2; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.muted     { color: var(--text-muted); }
.measure   { max-width: 60ch; } /* body copy runs 50–65 characters per line */

@media (max-width: 720px) {
  .display { font-size: 40px; }
  h1, .h1  { font-size: 36px; }
  h2, .h2  { font-size: 28px; }
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { padding: var(--s-24) 0; }
.band-surface { background: var(--surface); }
.band-dark { background: var(--dark); color: var(--dark-text); }
.band-dark .lead, .band-dark .muted { color: var(--dark-muted); }
.band-dark a { color: var(--dark-accent); }

@media (max-width: 720px) {
  .band { padding: var(--s-16) 0; }
}

/* --- Header --------------------------------------------------------------- */
.header {
  height: var(--header);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Lockup: mark plus wordmark in Red Hat Display Bold at 0.75× the mark height */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo .mark { height: 32px; width: auto; }
.wordmark { font: 700 24px/1 var(--font-display); letter-spacing: -0.02em; }

/* --- Mark ----------------------------------------------------------------- */
/* Three tiles stepping from light to deep. Each tile is one product's depth. */
.mark .tile-light { fill: var(--product-marketing); }
.mark .tile-mid   { fill: var(--product-psa); }
.mark .tile-deep  { fill: var(--product-sites); }

/* On blue 950 the ramp shifts up so all three depths still read */
.mark-on-dark .tile-light { fill: var(--blue-300); }
.mark-on-dark .tile-mid   { fill: var(--blue-500); }
.mark-on-dark .tile-deep  { fill: var(--blue-700); }

/* Product marks: one tile lit, the others tinted */
.product-mark .tile { fill: var(--tint); }
.product-mark.product-mark-sites .tile-deep      { fill: var(--product-sites); }
.product-mark.product-mark-psa .tile-mid         { fill: var(--product-psa); }
.product-mark.product-mark-marketing .tile-light { fill: var(--product-marketing); }

/* The guide defines three depths. A product without one carries the full mark. */
.product-mark.product-mark-all .tile-light { fill: var(--product-marketing); }
.product-mark.product-mark-all .tile-mid   { fill: var(--product-psa); }
.product-mark.product-mark-all .tile-deep  { fill: var(--product-sites); }

/* --- Buttons: a verb and an object ---------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: 700 14px/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button-primary { background: var(--action); color: var(--white); }
.button-primary:hover { background: var(--action-hover); color: var(--white); }
.button-secondary { background: var(--ground); color: var(--action); border-color: var(--line); }
.button-secondary:hover { background: var(--tint); color: var(--action); }

.band-dark .button-primary { background: var(--dark-accent); color: var(--dark); }
.band-dark .button-primary:hover { background: var(--blue-200); color: var(--dark); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-10);
  align-items: center;
}
.hero .display { max-width: 12ch; }
.hero .lead { margin-top: var(--s-6); max-width: 44ch; }
.hero-mark { justify-self: end; }
.hero-mark .mark { height: 224px; width: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; margin-top: var(--s-6); }
  .hero-mark .mark { height: 112px; }
}

/* --- Page intro ----------------------------------------------------------- */
.intro { padding: var(--s-16) 0 var(--s-12); }
.intro .lead { margin-top: var(--s-4); max-width: 52ch; color: var(--text-muted); }

/* --- Notice (splash status block) ----------------------------------------- */
.notice { max-width: 52ch; }
.notice p { margin-top: var(--s-3); color: var(--text-muted); }
.notice .button { margin-top: var(--s-8); }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-6);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product { display: flex; flex-direction: column; }
.product .product-mark { height: 40px; width: auto; align-self: flex-start; margin-bottom: var(--s-6); }
.product .brand-tile   { width: 56px; height: 56px; align-self: flex-start; margin-bottom: var(--s-6); } /* each product's own icon */
.product h2 { margin-bottom: var(--s-2); }
.product p { color: var(--text-muted); max-width: 46ch; margin-bottom: var(--s-6); }
.product .button { margin-top: auto; align-self: flex-start; }

/* --- Footer --------------------------------------------------------------- */
.footer { padding: var(--s-8) 0; }
.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-6);
}
.footer p { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--dark-muted); }
