/* ==========================================================================
   HemRang — Design System
   Tokens transcribed directly from the "Hemrang | Redesign" Figma document
   (1440px canvas). Values are exact unless noted.
   ========================================================================== */

:root {
  /* ---- Brand ---------------------------------------------------------- */
  --indigo:        #6155f5;  /* section eyebrows, nav links */
  --blue:          #376ff2;  /* primary gradient start, "Learn more" */
  --violet:        #7c3aed;  /* primary gradient end */
  --link-blue:     #2563eb;  /* inline links */

  /* ---- Surfaces ------------------------------------------------------- */
  --navy-why:      #062b5b;  /* "Why Hemrang" band */
  --navy-footer:   #082b5c;  /* footer band */
  --footer-card-a: #0663c0;
  --footer-card-b: #05498d;
  --badge-navy:    #0a2a66;
  --white:         #ffffff;

  /* ---- Ink ------------------------------------------------------------ */
  --ink:           #000000;
  --ink-82:        rgba(0, 0, 0, .82);
  --ink-72:        rgba(0, 0, 0, .72);
  --ink-60:        rgba(0, 0, 0, .60);
  --muted:         #a0aec0;  /* card body copy, footer copy */
  --slate:         #64748b;  /* copyright */
  --hairline:      rgba(0, 0, 0, .30);

  /* ---- Gradients ------------------------------------------------------ */
  --grad-primary:  linear-gradient(102deg, var(--blue) 0%, var(--violet) 64%);
  --grad-hero-cta: linear-gradient(131deg, var(--blue) 0%, var(--violet) 86%);
  --grad-navbar:   linear-gradient(180deg, #d4e3f6 0%, #eaf1fc 45%, #b1cdee 100%);
  --grad-footer:   linear-gradient(90deg, var(--footer-card-a) 0%, var(--footer-card-b) 50%, var(--footer-card-a) 100%);

  /* hexagon fills, in the order they appear left-to-right */
  --hex-purple: linear-gradient(180deg, #B08BF1 0%, #6441A0 100%);
  --hex-teal: linear-gradient(180deg, #4AE6D5 0%, #178F82 100%);
  --hex-orange: linear-gradient(180deg, #F97316 0%, #A54300 100%);
  --hex-green: linear-gradient(180deg, #92E17E 0%, #15A31E 100%);
  --hex-indigo: linear-gradient(180deg, #776FFF 0%, #5821B5 100%);
  --hex-green-alt: linear-gradient(180deg, #45d022 0%, #478f04 100%);
  --hex-orange-alt:linear-gradient(180deg, #ff6a00 0%, #a54300 100%);
  --hex-green-deep:linear-gradient(180deg, #92e17e 0%, #00950a 100%);

  /* ---- Elevation ------------------------------------------------------ */
  --shadow-navbar: 0 0 40px rgba(0, 0, 0, .25);
  --shadow-cta:    0 0 30px rgba(0, 0, 0, .25);
  --shadow-card:   0 8px 30px rgba(0, 0, 0, .25);
  --shadow-tile:   0 0 25px 4px rgba(0, 0, 0, .25);
  --shadow-why:    0 0 40px 2px rgba(0, 0, 0, .15);
  --shadow-hero-t: 0 4px 20px rgba(0, 0, 0, .25);

  /* ---- Radii ---------------------------------------------------------- */
  --r-pill:  999px;
  --r-navbar: 30px;
  --r-card:   29px;
  --r-why:    20px;
  --r-panel:  24px;
  --r-btn:    12px;
  --r-tile:    8px;

  /* ---- Type ----------------------------------------------------------- */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ---- Layout --------------------------------------------------------- */
  --canvas:     1440px;  /* the Figma artboard width */
  --container:  1294px;  /* content runs x:73 → x:1367 */
  --gutter:       73px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Section eyebrow — Inter Bold 32px, indigo. Sits above every section title. */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--indigo);
}

/* Section title — Sora Bold 48/60 */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -.01em;
  color: var(--ink);
}

.section-lede {
  font-weight: 300;
  font-size: 20px;
  line-height: 30px;
  color: var(--ink-82);
}

/* Hexagon — the design's recurring icon holder (a rotated regular polygon). */
.hex {
  display: grid;
  place-items: center;
  flex: none;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
.hex img { width: 45%; height: auto; }

.hex--purple     { background: var(--hex-purple); }
.hex--teal       { background: var(--hex-teal); }
.hex--orange     { background: var(--hex-orange); }
.hex--green      { background: var(--hex-green); }
.hex--indigo     { background: var(--hex-indigo); }
.hex--green-alt  { background: var(--hex-green-alt); }
.hex--orange-alt { background: var(--hex-orange-alt); }
.hex--green-deep { background: var(--hex-green-deep); }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--r-btn);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn--primary {
  background: var(--grad-hero-cta);
  border: 1px solid rgba(255, 255, 255, .19);
  color: var(--white);
  font-size: 18px;
  line-height: 22px;
  width: 294px;
  height: 56px;
}

.btn--ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  line-height: 22px;
  width: 294px;
  height: 57px;
}
.btn--ghost:hover { background: rgba(17, 75, 233, .06); }

.btn--primary:hover,
.btn--nav:hover { transform: translateY(-2px); box-shadow: var(--shadow-cta); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-btn) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
