/* ==========================================================================
   HeroApps Design System — Colors & Type
   Apple-inspired. Soft neutrals, generous whitespace, restrained accent.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Open Sans"; font-weight: 300; font-style: normal; src: url("./fonts/OpenSans-Light.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; src: url("./fonts/OpenSans-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 500; font-style: normal; src: url("./fonts/OpenSans-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; src: url("./fonts/OpenSans-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; src: url("./fonts/OpenSans-Bold.ttf") format("truetype"); font-display: swap; }


@font-face { font-family: "Open Sans SemiCondensed"; font-weight: 500; font-style: normal; src: url("./fonts/OpenSans_SemiCondensed-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans SemiCondensed"; font-weight: 600; font-style: normal; src: url("./fonts/OpenSans_SemiCondensed-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Open Sans SemiCondensed"; font-weight: 700; font-style: normal; src: url("./fonts/OpenSans_SemiCondensed-Bold.ttf") format("truetype"); font-display: swap; }

@font-face { font-family: "Marcellus"; font-weight: 400; font-style: normal; src: url("./fonts/Marcellus-Regular.ttf") format("truetype"); font-display: swap; }

@font-face { font-family: "Courier Prime"; font-weight: 400; font-style: normal; src: url("./fonts/CourierPrime-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-style: normal; src: url("./fonts/CourierPrime-Bold.ttf") format("truetype"); font-display: swap; }


/* ---------- Color tokens ---------- */
:root {
  /* Brand */
  --ha-ink:        #444444;   /* primary brand color, used as deep text */
  --ha-ink-2:      #1d1d1f;   /* near-black, Apple style */
  --ha-ink-3:      #6e6e73;   /* secondary copy */
  --ha-ink-4:      #86868b;   /* tertiary / captions */
  --ha-line:       #d2d2d7;   /* hairline borders */
  --ha-line-soft:  #e8e8ed;
  --ha-mist:       #f5f5f7;   /* Apple-page background */
  --ha-paper:      #ffffff;
  --ha-onyx:       #161617;   /* full-bleed dark backdrops */

  /* Accent — kept rare, Apple-restraint */
  --ha-accent:     #0071e3;   /* link / primary action blue */
  --ha-accent-h:   #0077ed;
  --ha-accent-p:   #006edb;

  /* Semantic */
  --ha-success:    #1f8a4d;
  --ha-warning:    #b76e00;
  --ha-danger:     #bf2d2d;
  --ha-info:       #0071e3;

  /* Foreground / background semantic */
  --fg-1: var(--ha-ink-2);
  --fg-2: var(--ha-ink-3);
  --fg-3: var(--ha-ink-4);
  --fg-on-dark: #f5f5f7;
  --fg-on-dark-2: #a1a1a6;

  --bg-1: var(--ha-paper);
  --bg-2: var(--ha-mist);
  --bg-dark: var(--ha-onyx);

  --border-1: var(--ha-line);
  --border-2: var(--ha-line-soft);

  /* Type families
     ──────────────────────────────────────────────────────
     Marcellus    → Hero / signature display moments. The voice of HeroApps.
     Courier Prime → Technical / software expression — specs, code, badges,
                     in‑product chrome, eyebrow tags. We are a software firm,
                     so mono is part of the BRAND, not just a fallback.
     Open Sans    → Body copy, paragraphs, UI labels. The workhorse.
     Open Sans SemiCondensed → Sub‑display only when Marcellus would be
                     too editorial (e.g. dense product‑grid headlines).
     ────────────────────────────────────────────────────── */
  --font-display: "Marcellus", "Times New Roman", Georgia, serif;
  --font-body:    "Open Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-tech:    "Courier Prime", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-mono:    "Courier Prime", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-sub:     "Open Sans SemiCondensed", "Open Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-condensed: "Open Sans Condensed", "Open Sans", system-ui, sans-serif;
  --font-serif:   "Marcellus", "Times New Roman", Georgia, serif;

  /* Type scale — Apple-style large-display ramp */
  --fs-hero:  clamp(48px, 7vw, 96px);
  --fs-h1:    clamp(40px, 5.5vw, 72px);
  --fs-h2:    clamp(32px, 4vw, 56px);
  --fs-h3:    clamp(24px, 2.5vw, 32px);
  --fs-h4:    21px;
  --fs-eyebrow: 17px;
  --fs-body:  17px;     /* Apple's default body */
  --fs-small: 14px;
  --fs-caption: 12px;

  --lh-tight: 1.05;
  --lh-snug:  1.18;
  --lh-body:  1.47;
  --lh-loose: 1.6;

  --tracking-tight:   -0.022em;
  --tracking-display: -0.015em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-eyebrow: 0.02em;

  /* Spacing — 4-pt base */
  --sp-0:  0;
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* Radii — Apple uses gentle, generous corners */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 980px;     /* Apple's button capsule */

  /* Shadows — used sparingly on Apple */
  --sh-1: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --sh-2: 0 4px 12px rgba(0,0,0,0.06);
  --sh-3: 0 12px 32px rgba(0,0,0,0.08);
  --sh-card: 0 4px 16px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);

  /* Easing & motion */
  --ease-apple: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:   140ms;
  --dur-base:   240ms;
  --dur-slow:   480ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 4vw, 40px);
}


/* ---------- Base / element styles ---------- */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-1);
  letter-spacing: var(--tracking-normal);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--fg-1); }

/* h1/h2 are SIGNATURE — Marcellus serif. Hero moments only. */
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
/* h3/h4 are sub‑display — Open Sans SemiCondensed bold for crisp UI titles. */
h3 {
  font-family: var(--font-sub);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
}
h4 {
  font-family: var(--font-sub);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
}

p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--fg-1); }

.eyebrow {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  text-transform: uppercase;  /* the ONE place we go uppercase — tech eyebrow */
}
.eyebrow-sentence {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg-1);
}

.lede {
  font-size: 21px;
  line-height: 1.38;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: -0.012em;
}

.caption { font-size: var(--fs-caption); color: var(--fg-3); line-height: 1.4; }

.mono, code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Apple-style anchor links */
a {
  color: var(--ha-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Utility: hero display text — Marcellus signature */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
/* Tech expression — Courier eyebrow / chip / version tag */
.tech-tag {
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--r-pill);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: #fff;
}

/* Containers */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--gutter); }
