/* ------------------------------------------------------------------
   Marlo Solutions — monochrome, quiet, built to last
------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --surface: #f6f6f7;
  --ink: #0a0a0b;
  --ink-soft: #3f3f44;
  --muted: #6f6f76;
  --faint: #a9a9b0;
  --border: rgba(10, 10, 11, 0.08);
  --border-strong: rgba(10, 10, 11, 0.14);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "cv11" 1;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow { max-width: 760px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 550;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-brand img { border-radius: 50%; }

.nav-brand-sub { color: var(--muted); font-weight: 450; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 480;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #26262b;
  box-shadow: 0 4px 16px rgba(10, 10, 11, 0.16);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

/* ---------- Hero ---------- */

.hero { padding: 180px 0 0; }

.hero-title {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.032em;
  max-width: 15ch;
}

.hero-copy {
  margin-top: 32px;
  max-width: 620px;
}

.hero-copy p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-copy p + p { margin-top: 16px; }

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Animated visual beneath the hero — geometry drawn from the mark */

.hero-visual {
  display: block;
  margin-top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 440px;
  transition: border-color 0.3s var(--ease);
}

.hero-visual:hover { border-color: var(--border-strong); }

.hero-visual-parallax {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.055;
}

.drift line { vector-effect: non-scaling-stroke; }

.drift-a { animation: drift 46s linear infinite alternate; }
.drift-b { animation: drift 46s linear infinite alternate-reverse; }

@keyframes drift {
  from { transform: translateX(-28px); }
  to   { transform: translateX(28px); }
}

.hero-screens {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding-top: 64px;
}

.hs {
  width: 210px;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: #f7f8fa;
  box-shadow: 0 28px 56px -24px rgba(10, 10, 11, 0.28);
}

.hs-main { width: 240px; }

.hs-side { margin-top: 48px; }

.hero-visual-caption {
  position: absolute;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.caption-arrow {
  transition: transform 0.25s var(--ease);
}

.hero-visual:hover .caption-arrow { transform: translateX(4px); }

/* ---------- Sections ---------- */

.section { padding: 140px 0; }

.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section + .section { border-top: 1px solid var(--border); }
.section-surface + .section { border-top: none; }

.eyebrow {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 56px;
}

.subheading {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 72px 0 24px;
}

/* ---------- Products ---------- */

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 64px;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clinote-icon {
  border-radius: 11px;
  flex: none;
}

.product-copy h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.product-tagline {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.product-copy > p:not(.product-tagline) {
  margin-top: 16px;
  color: var(--muted);
  max-width: 52ch;
}

.product-copy .btn { margin-top: 32px; }

/* Clinote app screenshots, staggered */

.product-visual {
  display: flex;
  justify-content: center;
}

.screens {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.screen {
  width: 240px;
  max-width: 72%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 48px -24px rgba(10, 10, 11, 0.22);
  background: #f7f8fa;
}

/* Future product placeholders */

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.future-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.3s var(--ease);
}

.future-card:hover { border-color: var(--border-strong); }

.future-card img { opacity: 0.22; }

.future-card p {
  font-size: 16px;
  color: var(--faint);
  font-weight: 450;
}

/* ---------- Philosophy ---------- */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.philosophy-item {
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
}

.philosophy-index {
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.philosophy-item h3 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.philosophy-item p {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- About ---------- */

#about .section-title { margin-bottom: 40px; }

.about-copy p {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.012em;
}

.about-copy p + p { margin-top: 24px; }

.about-emphasis { font-weight: 550; color: var(--ink); }

/* ---------- Contact ---------- */

#contact .section-title { margin-bottom: 36px; }

.contact-label {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-email {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 550;
  letter-spacing: -0.022em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.contact-email:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 88px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img { margin-bottom: 20px; }

.footer-brand p { font-size: 15px; font-weight: 500; }

.footer-heading {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-muted {
  font-size: 14.5px;
  font-weight: 400 !important;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 6px;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ---------- Legal pages ---------- */

.nav-solid {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.legal {
  padding: 160px 0 140px;
}

.legal-updated {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 20px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.legal-lede {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
}

.legal-body { margin-top: 56px; }

.legal-body section + section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.legal-body p {
  margin-top: 14px;
  color: var(--ink-soft);
}

.legal-body ul {
  margin-top: 14px;
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}

.legal-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
  transition: text-decoration-color 0.2s var(--ease);
}

.legal-body a:hover { text-decoration-color: var(--ink); }

address { font-style: normal; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease) var(--d, 0s),
              transform 0.8s var(--ease) var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 44px 36px;
  }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .nav-links { display: none; }
  .hero { padding-top: 140px; }
  .hero-visual { height: 320px; margin-top: 64px; }
  .hero-screens { padding-top: 72px; }
  .hs-side { display: none; }
  .hs-main { width: 200px; }
  .hero-visual-caption { top: 18px; left: 20px; }
  .section { padding: 96px 0; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }
  .future-grid { grid-template-columns: 1fr; }
  .future-card { padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .drift-a, .drift-b { animation: none; }
  .hero-visual-parallax { transform: none !important; }
}
