/* ==========================================================================
   Cerevra Technologies — single page site
   Palette and typography per the Cerevra brand kit (v1.0, October 2025)
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1c2237;
  --navy-deep: #161b2c;
  --teal: #2fc4b2;
  --teal-bright: #45d6c4;
  --coral: #f08a7e;
  --silver: #e8e9eb;
  --muted: #a9b0be;
  --faint: #8d95a5;
  --hairline: rgba(255, 255, 255, 0.09);
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--navy);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--teal);
  color: #10182b;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: #10182b;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

a {
  color: var(--silver);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: #fff;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--navy);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand-link {
  display: inline-block;
  line-height: 0;
  border-radius: 2px;
}
.brand-link img {
  width: 200px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}
.site-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: 6px;
  transition: color 0.16s ease;
}
.site-nav a:hover {
  color: #fff;
}
.site-nav a.nav-contact {
  color: var(--teal);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding-block: clamp(72px, 12vh, 132px) clamp(64px, 11vh, 118px);
  border-bottom: 1px solid var(--hairline);
  background-image:
    radial-gradient(820px 820px at 88% -12%, rgba(47, 196, 178, 0.15) 0%, rgba(47, 196, 178, 0) 62%),
    radial-gradient(680px 680px at 2% 118%, rgba(240, 138, 126, 0.11) 0%, rgba(240, 138, 126, 0) 64%);
  background-repeat: no-repeat;
}

.eyebrow {
  margin: 0 0 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-rule {
  width: 76px;
  height: 2px;
  margin: 0 0 34px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--coral) 100%);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #fff;
}

.lede {
  margin: 30px 0 0;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.72;
  color: var(--muted);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  padding-block: 8px;
  border-bottom: 1px solid rgba(47, 196, 178, 0.35);
  transition: color 0.16s ease, border-color 0.16s ease;
}
.hero-link:hover {
  color: var(--teal-bright);
  border-bottom-color: var(--teal-bright);
}
.hero-link svg {
  flex: none;
}

/* ---------------------------------------------------------------- sections */
.section {
  padding-block: clamp(58px, 8.5vh, 92px);
  border-bottom: 1px solid var(--hairline);
}
.section:last-of-type {
  border-bottom: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
}

.label {
  margin: 0;
  padding-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
}

.section p {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--muted);
}
.section p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- product */
.product-block {
  position: relative;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(47, 196, 178, 0.4);
  border-radius: 2px;
  background: rgba(47, 196, 178, 0.07);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.status-chip .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.status-note {
  margin-top: 22px !important;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
  color: var(--faint) !important;
}

/* ---------------------------------------------------------------- contact */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 16px 30px;
  min-height: 52px;
  border-radius: 3px;
  background: var(--teal);
  color: #10182b;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.btn:hover {
  background: var(--teal-bright);
  color: #10182b;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  flex: none;
}

.contact-address {
  margin-top: 20px !important;
  font-size: 0.95rem;
  color: var(--faint) !important;
}
.contact-address a {
  color: var(--muted);
  text-decoration-color: rgba(169, 176, 190, 0.45);
}
.contact-address a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy-deep);
  padding-block: clamp(40px, 6vh, 60px) clamp(32px, 5vh, 48px);
  font-size: 13px;
  line-height: 1.7;
  color: var(--faint);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-company {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--silver);
}
.footer-line {
  margin: 0;
  color: var(--faint);
}

.footer-meta {
  text-align: right;
}
.footer-meta p {
  margin: 0 0 8px;
}
.footer-meta p:last-child {
  margin-bottom: 0;
}

.privacy {
  margin-top: 22px;
  max-width: 70ch;
}
.privacy summary {
  display: inline-block;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(169, 176, 190, 0.5);
}
.privacy summary::-webkit-details-marker {
  display: none;
}
.privacy summary:hover {
  color: #fff;
}
.privacy p {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.75;
  max-width: 74ch;
}

/* ---------------------------------------------------------------- 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.notfound .eyebrow {
  margin-bottom: 20px;
}
.notfound h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  max-width: 20ch;
}
.notfound p {
  margin: 26px 0 0;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .label {
    padding-top: 0;
  }
  .product-block {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .header-inner {
    padding-block: 14px;
  }
  .brand-link img {
    width: 146px;
  }
  .site-nav a:not(.nav-contact) {
    display: none;
  }
  .hero {
    padding-block: 64px 72px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .brand-link img {
    width: 132px;
  }
}

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