/* =========================================================
   Nyrentha — nyrentha.com
   Mobile-first. Visual direction locked by NCL-OPS-002-A3:
   white / pearl / soft-silver, spacious, elegant, premium,
   human-centered. Avoids dark-navy/neon-cyan AI-template look.
   ========================================================= */

:root {
  /* Approved brand colors (NCL-OPS-002-A2) */
  --deep-navy: #0A1F3D;
  --horizon-blue: #2D8CFF;
  --link-blue: #1560C4; /* darkened for AA text contrast; --horizon-blue stays for icons/accents/gradients */
  --silver-dark: #8F9BA8;
  --silver-light: #E6ECF3;
  --white: #FFFFFF;

  /* Derived surface tones (not brand-locked, tuned for the pearl/soft-silver direction) */
  --pearl: #FAFBFC;
  --pearl-deep: #F3F5F8;
  --hairline: #E3E8EE;
  --text-body: #3C4652;
  --text-muted: #5C6773; /* darkened from initial #6B7684 to clear 4.5:1 AA on pearl backgrounds, not just white */

  --font-display: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-soft: 0 20px 60px -25px rgba(10, 31, 61, 0.18);
  --shadow-card: 0 12px 30px -18px rgba(10, 31, 61, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--horizon-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.eyebrow {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.section {
  padding: 64px 0;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--deep-navy);
  margin: 0;
  line-height: 1.12;
}
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--deep-navy);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-secondary {
  background: transparent;
  color: var(--deep-navy);
  border-color: var(--hairline);
}
.btn-secondary:hover { border-color: var(--silver-dark); background: var(--pearl-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-lockup { height: 29px; width: auto; display: block; }
.nav-links {
  display: none;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--link-blue); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-actions .btn-primary { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--deep-navy);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-body);
}
.mobile-nav .btn-primary { margin-top: 12px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pearl) 0%, var(--white) 60%);
}

/* Shared text styling used by both the mobile and desktop hero headings/ledes/CTAs */
.hero-mobile .eyebrow,
.hero-copy-desktop .eyebrow { margin-bottom: 14px; display: inline-block; }
.hero-heading-mobile,
.hero-copy-desktop h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--deep-navy);
  margin: 0;
}
.hero-mobile .lede,
.hero-copy-desktop .lede {
  color: var(--text-muted);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ----- Mobile hero (< 768px): eyebrow -> media-with-headline-overlay -> lede -> CTAs ----- */
.hero-desktop { display: none; }
.hero-mobile {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 20px 0;
}
.hero-media-mobile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pearl-deep);
}
.hero-media-mobile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.hero-fade-mobile {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(250,251,252,0.97) 0%, rgba(250,251,252,0.8) 34%, rgba(250,251,252,0) 62%);
}
.hero-overlay-mobile {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 14px 14px 0;
  max-width: 88%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-heading-mobile {
  font-size: clamp(1.4rem, 6.3vw, 1.75rem); /* re-tuned per A11: overlay moved higher into open sky, so both size and line-height are tightened to clear the hairline boundary measured directly from the source photo */
  line-height: 1.08;
}
.hero-eyebrow-mobile { margin: 0; font-size: clamp(0.52rem, 2.3vw, 0.6rem); letter-spacing: 0.08em; white-space: nowrap; }
.hero-mobile .hero-ctas { margin-top: 4px; }

/* ----- Tablet / Desktop hero (>= 768px): one integrated cinematic composition ----- */
@media (min-width: 768px) {
  .hero-mobile { display: none; }
  .hero-desktop { display: block; }

  .hero-desktop-stage {
    position: relative;
    height: 560px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 40px;
  }
  .hero-desktop-stage > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
  }
  .hero-fade-desktop {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(250,251,252,1) 0%, rgba(250,251,252,0.94) 34%, rgba(250,251,252,0.45) 60%, rgba(250,251,252,0) 80%);
  }
  .hero-copy-desktop {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    max-width: 56%;
    padding: 0 0 0 40px;
  }
  .hero-copy-desktop h1 { font-size: clamp(2.4rem, 4vw, 3rem); }
  .hero-copy-desktop .lede { font-size: 1.1rem; }
}

@media (min-width: 1024px) {
  .hero-desktop-stage { height: 640px; margin-top: 56px; }
  .hero-copy-desktop { max-width: 48%; padding-left: 56px; }
  .hero-copy-desktop h1 { font-size: 3.4rem; }
}

/* Four-value strip */
.value-strip {
  margin-top: 44px;
  border-top: 1px solid var(--hairline);
}
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 36px 0;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pearl-deep);
  color: var(--horizon-blue);
}
.value-icon svg { width: 22px; height: 22px; }
.value-item h3 {
  font-size: 1rem;
  font-weight: 600;
}
.value-item p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Focus Areas / Products ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-top: 10px;
}
.section-head .eyebrow { display: block; margin-bottom: 4px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--pearl);
  border: 1px solid var(--hairline);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-navy), var(--horizon-blue));
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.card p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--link-blue);
}
.card--flagship {
  background: linear-gradient(160deg, var(--white), var(--pearl-deep));
  border-color: #D7E4F2;
  box-shadow: var(--shadow-card);
}
.card--flagship:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* BluRaye spotlight — visually distinct from the focus-area cards below it */
.bluraye-spotlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--deep-navy) 0%, #123059 100%);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bluraye-spotlight:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.bluraye-spotlight-logo { width: 64px; height: 64px; border-radius: 14px; background: rgba(255,255,255,0.06); padding: 6px; }
.bluraye-spotlight-copy .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8FD0FF;
  margin-bottom: 10px;
}
.bluraye-spotlight-copy h3 { color: var(--white); font-size: 1.4rem; font-weight: 700; }
.bluraye-spotlight-copy p { margin-top: 8px; color: #C7D6E8; font-size: 0.98rem; max-width: 56ch; }
.bluraye-spotlight-cta { pointer-events: none; }

/* Kelyentha spotlight — Nyrentha security family (NCL-WM-005 Phase 1).
   Light treatment so it reads as a sibling of the BluRaye spotlight without
   stacking two dark-navy blocks; same structure, spacing, and breakpoints. */
.kelyentha-spotlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 20px;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--white), var(--pearl-deep));
  border: 1px solid #D7E4F2;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.kelyentha-spotlight:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.kelyentha-spotlight-logo { flex: none; width: 64px; height: 64px; border-radius: 14px; }
.kelyentha-spotlight-copy .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--link-blue);
  margin-bottom: 10px;
}
.kelyentha-spotlight-copy h3 { font-size: 1.4rem; font-weight: 700; }
.kelyentha-spotlight-copy p { margin-top: 8px; color: var(--text-muted); font-size: 0.98rem; max-width: 56ch; }
.kelyentha-spotlight-cta { pointer-events: none; }

.focus-areas-head { margin: 40px 0 20px; }
.focus-areas-head .eyebrow { display: block; }

/* ---------- Mission ---------- */
.mission {
  background: var(--pearl-deep);
  position: relative;
  overflow: hidden;
}
.mission-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mission h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 700;
  max-width: 16ch;
}
.mission .lede {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.mission blockquote {
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--horizon-blue);
  font-size: 1rem;
  font-style: normal;
  color: var(--deep-navy);
  font-weight: 500;
}
.mission-cta { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.contact h2 { font-size: clamp(1.7rem, 4.5vw, 2.2rem); font-weight: 700; }
.contact .lede { color: var(--text-muted); font-size: 1.02rem; }
.contact-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--link-blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 30px;
  background: var(--white);
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-brand { display: flex; align-items: flex-start; }
.footer-brand-lockup { height: 24px; width: auto; display: block; }
.footer-tagline {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--link-blue); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   Tablet — 768px+
   ========================================================= */
@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .wrap { padding: 0 32px; }

  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .bluraye-spotlight { flex-direction: row; align-items: center; padding: 36px 40px; }
  .bluraye-spotlight-copy { flex: 1; }
  .bluraye-spotlight-cta { margin-left: auto; flex: none; }

  .kelyentha-spotlight { flex-direction: row; align-items: center; padding: 36px 40px; }
  .kelyentha-spotlight-copy { flex: 1; }
  .kelyentha-spotlight-cta { margin-left: auto; flex: none; }

  .mission-inner { max-width: 640px; }

  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =========================================================
   Desktop — 1024px+
   ========================================================= */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions .btn-primary { display: inline-flex; }
  .menu-toggle { display: none; }

  .value-strip { margin-top: 60px; }
  .value-grid { grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 44px 0; }

  .mission-inner { max-width: 720px; }
}
