/* Keramas, Inc. landing page — production stylesheet
   Source of truth: design-handoff/README.md (high-fidelity, copy and tokens final). */

:root {
  --navy-deep: #0D1A2A;
  --navy-mid: #15293F;
  --navy-grad: #1F3A5C;
  --blue-strong: #2E75B6;
  --blue: #7FB0DC;
  --blue-light: #9BC4E8;
  --blue-sub: #A9C6E4;
  --white: #FFFFFF;
  --card-ink: #F4F6F9;
  --text: #DCE7F2;
  --muted: #8FA6BC;
  --hair-22: rgba(127,176,220,.22);
  --hair-32: rgba(127,176,220,.32);
  --hair-50: rgba(127,176,220,.5);
  --hair-55: rgba(127,176,220,.55);
  --pad-x: clamp(20px, 6.5vw, 100px);
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

html, body { margin: 0; padding: 0; }
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-sans);
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }
button { font: inherit; }

/* ---------- Page shell + background ---------- */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(120% 120% at 20% 100%, #1f3a5c 0%, #15293f 55%, #0d1a2a 100%);
}
.bloom {
  position: absolute;
  top: -30%; right: -24%;
  width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,196,232,.26) 0%, rgba(127,176,220,.10) 34%, rgba(127,176,220,0) 64%);
  pointer-events: none;
}
.graph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 72%);
          mask-image: linear-gradient(100deg, transparent 18%, #000 72%);
}

/* ---------- Header ---------- */
.header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 28px var(--pad-x) 12px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-chip {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.92); overflow: hidden;
}
.brand-chip img { width: 31px; height: 31px; object-fit: contain; display: block; }
.brand-name {
  font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  color: var(--white); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 32px; }
.btn-email {
  padding: 11px 18px;
  border: 1px solid var(--hair-55);
  border-radius: 3px 3px 10px 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em;
  color: var(--text);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.btn-email:hover { border-color: var(--blue-light); color: var(--white); background: rgba(127,176,220,.08); }

@media (max-width: 759px) {
  .header { padding-top: 16px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 17px; }
  .btn-email { padding: 10px 12px; font-size: 12px; letter-spacing: .02em; }
}
@media (max-width: 359px) {
  .brand-name { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) var(--pad-x) clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: center;
  gap: clamp(36px, 4.5vw, 64px);
}
.hero-text { min-width: 0; display: flex; flex-direction: column; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 15px); font-weight: 600; line-height: 1; letter-spacing: .24em;
  color: var(--blue);
  margin-bottom: clamp(20px, 2.2vw, 30px);
}
h1 {
  margin: 0; max-width: 1180px;
  font-size: clamp(34px, 5.6vw, 78px);
  line-height: 1.06; font-weight: 700; letter-spacing: -.03em;
  color: var(--white);
  text-wrap: pretty;
}
.subhead {
  margin: clamp(20px, 2.4vw, 34px) 0 0; max-width: 960px;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.34; font-weight: 400;
  color: var(--blue-sub);
  text-wrap: pretty;
}

.cards {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.card {
  display: flex; flex-direction: column;
  gap: clamp(14px, 1.3vw, 18px);
  padding: clamp(22px, 2.2vw, 32px) clamp(22px, 2.3vw, 34px);
  background: var(--navy-mid);
  border: 1px solid var(--hair-50);
  border-top: 4px solid var(--blue);
  border-radius: 4px 4px 18px 18px;
  box-shadow: 0 28px 56px rgba(5,12,20,.42);
}
.card-label {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.05vw, 15px); font-weight: 700; line-height: 1; letter-spacing: .12em;
  color: var(--blue);
}
.card p {
  margin: 0;
  font-size: clamp(17px, 2.1vw, 25px);
  line-height: 1.34;
  color: var(--card-ink);
  text-wrap: pretty;
}

/* Tablet: 760–1079px — cards side by side under the headline */
@media (min-width: 760px) and (max-width: 1079px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop: >= 1080px — two-column hero */
@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 4.5vw, 80px);
  }
  h1 { font-size: clamp(40px, 4.3vw, 66px); }
  .subhead { font-size: clamp(19px, 1.75vw, 27px); }
  .card p { font-size: clamp(18px, 1.5vw, 23px); }
}

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--hair-22); }
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(20px, 2vw, 28px) var(--pad-x) clamp(24px, 2vw, 28px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
}
.contact { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: var(--text); }
.contact a { color: var(--blue); }
.contact a:hover { color: var(--blue-light); }
.copyright {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- Entrance motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.rise {
  animation: rise 720ms cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(80ms + var(--i, 0) * 120ms);
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .btn-email { transition: none; }
}
