/* Cyclos marketing site — warm-paper / clinical brand
   Palette + type mirror the Cyclos app (IBM Plex + Newsreader, teal/sage accent). */

:root {
  --paper:        oklch(0.985 0.008 85);
  --surface:      oklch(0.995 0.005 85);
  --surface-sunk: oklch(0.965 0.011 85);
  --border:       oklch(0.905 0.013 85);
  --ink:          oklch(0.30 0.018 60);
  --ink-soft:     oklch(0.48 0.018 60);
  --ink-faint:    oklch(0.62 0.016 60);
  --accent:       oklch(0.55 0.072 175);
  --accent-deep:  oklch(0.44 0.070 175);
  --accent-wash:  oklch(0.95 0.022 175);

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 72rem;
  --radius: 14px;
  --shadow: 0 1px 2px oklch(0.3 0.02 60 / 0.04), 0 8px 28px oklch(0.3 0.02 60 / 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: oklch(0.985 0.008 85 / 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}
.nav a { color: var(--ink-soft); transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }
.nav-cta {
  color: var(--accent-deep) !important;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-wash); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: oklch(0.99 0.01 175);
}
.btn.primary:hover { background: var(--accent-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 78% -10%, var(--accent-wash), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--paper));
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  max-width: 56rem;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}
.eyebrow.center { text-align: center; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-alt { background: var(--surface-sunk); border-block: 1px solid var(--border); }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 2.5rem;
  max-width: 36rem;
}
#features .section-title, #contact .section-title { margin-inline: auto; text-align: center; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.feature h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 0.55rem;
}
.feature h3::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 0.9rem;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Screenshots ---------- */
.shots { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); }
.shot {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.shot:nth-child(even) .shot-copy { order: 2; }
.shot-copy h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
.shot-copy p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.shot-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding-top: 2.1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2.1rem;
  background: var(--surface-sunk);
  border-bottom: 1px solid var(--border);
}
.shot-dots { position: absolute; top: 0.8rem; left: 0.95rem; display: flex; gap: 0.4rem; z-index: 1; }
.shot-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--border); }
.shot-frame img { display: block; width: 100%; height: auto; }

/* ---------- About ---------- */
.about-inner { max-width: 44rem; }
.about-body { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
.about-affil {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.about-affil strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; }
.contact-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: -1.4rem auto 2.5rem;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 16rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-value {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent-deep);
}

/* ---------- Footer (compliance) ---------- */
.site-foot {
  background: var(--ink);
  color: oklch(0.86 0.012 85);
  padding-block: 3rem;
}
.foot-inner { max-width: 48rem; }
.foot-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: oklch(0.97 0.01 85);
  margin: 0 0 1rem;
}
.foot-disclaimer {
  font-size: 0.85rem;
  line-height: 1.65;
  color: oklch(0.74 0.012 85);
  margin: 0 0 1.25rem;
  max-width: 44rem;
}
.foot-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: oklch(0.66 0.012 85);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .shot { grid-template-columns: 1fr; }
  .shot:nth-child(even) .shot-copy { order: 0; }
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 540px) {
  .wordmark-sub { display: none; }
  .nav { gap: 1.1rem; font-size: 0.9rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
