/* ─────────────────────────────────────────────
   Elinno Agent — coming soon
   Refined minimalism. Editorial typography.
   ───────────────────────────────────────────── */

:root {
  --bg:        #f4f1ec;
  --bg-deep:   #ebe6df;
  --ink:       #14130f;
  --ink-soft:  #4a463f;
  --ink-mute:  #8a8478;
  --rule:      #d9d3c8;
  --accent:    #b6502d;     /* warm terracotta */

  --display: "Fraunces", "Times New Roman", serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* subtle vignette */
  background:
    radial-gradient(120% 80% at 50% 0%, var(--bg) 0%, var(--bg-deep) 100%);
}

/* paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── layout ───────────────────────────────── */
.page {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(48px, 8vh, 96px);
}

/* ── top bar ──────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.mark svg {
  flex-shrink: 0;
  animation: spin-slow 24s linear infinite;
}
.mark-text {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(182, 80, 45, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ── hero ─────────────────────────────────── */
.hero {
  align-self: center;
  max-width: 820px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 24px;
}

h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "opsz" 144;
}

.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

/* ── footer ───────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sep { color: var(--rule); }
.copyright {
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ── reveal animation ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 80, 45, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(182, 80, 45, 0); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ── responsive ───────────────────────────── */
@media (max-width: 640px) {
  .page { gap: 56px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  h1 br { display: none; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .mark svg { animation: none; }
  .dot { animation: none; }
}
