/* Min-IT mockup site — inspired by Marrambi Estate layout */

:root {
  --red: #c01818;
  --red-dark: #8f0e0e;
  --ink: #15181c;
  --ink-soft: #2a2f36;
  --paper: #fbfaf7;
  --paper-warm: #f4efe8;
  --paper-dark: #e8e3da;
  --muted: #6a6f78;
  --line: #d9d4cc;

  --ff-serif: 'Fraunces', Georgia, serif;
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* === TYPOGRAPHY === */
.h-display {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}

.h-display em { font-style: italic; color: var(--red); font-weight: 400; }

.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1rem;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav--scrolled {
  padding: 0.75rem 0;
  background: rgba(251, 250, 247, 0.97);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__logo { height: 42px; width: auto; display: block; }
.nav--scrolled .nav__logo { height: 34px; transition: height 0.3s ease; }

.nav__wordmark {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--red); }

.nav__login {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
  color: var(--muted);
}

.nav__cta {
  background: var(--red);
  color: var(--paper) !important;
  padding: 0.65rem 1.3rem;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--red-dark); color: var(--paper) !important; }

.nav__toggle { display: none; }

/* === HERO === */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.35) 50%, rgba(10,12,16,0.85) 100%),
    linear-gradient(90deg, rgba(10,12,16,0.7) 0%, rgba(10,12,16,0.25) 60%, transparent 100%),
    radial-gradient(1000px 500px at 80% 20%, rgba(192, 24, 24, 0.25), transparent 60%);
}

.hero__content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff8a8a;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  color: var(--paper);
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero__title em { font-style: italic; color: #ff8a8a; font-weight: 400; }

.hero__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 60ch;
  margin-bottom: 2.25rem;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.hero__lede strong { color: var(--paper); font-weight: 600; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
}

.hero__stat { display: flex; flex-direction: column; gap: 0.25rem; }
.hero__stat-num { font-family: var(--ff-serif); font-size: clamp(1.75rem, 3vw, 2.5rem); color: #ff8a8a; font-weight: 500; }
.hero__stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary { background: var(--red); color: var(--paper); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); }

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

.hero .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,0.8); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn--large { padding: 1.15rem 2.5rem; font-size: 1rem; }

/* === CRM EYEBROW STRIP === */
.eyebrow-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 0;
  border-bottom: 2px solid var(--red);
}
.eyebrow-strip__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.eyebrow-strip__badge {
  background: var(--red);
  color: var(--paper);
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
}
.eyebrow-strip p { font-size: 0.95rem; margin: 0; flex: 1; min-width: 200px; }
.eyebrow-strip__link { color: var(--red); font-weight: 600; white-space: nowrap; }
.eyebrow-strip__link:hover { color: var(--paper); }

/* === INTRO === */
.intro {
  padding: 7rem 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}

.intro__body p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* === CHAPTERS === */
.chapter { padding: 7rem 0; }

.chapter--light { background: var(--paper); }
.chapter--dark { background: var(--ink); color: var(--paper); }
.chapter--dark .eyebrow, .chapter--dark .chapter__label { color: #ff7878; }
.chapter--dark .h-display { color: var(--paper); }
.chapter--dark .h-display em { color: #ff7878; }

.chapter--crm {
  background: linear-gradient(135deg, #1a1d22 0%, #2a1214 100%);
  color: var(--paper);
}
.chapter--crm .chapter__label, .chapter--crm .eyebrow { color: #ff7878; }
.chapter--crm .h-display { color: var(--paper); }
.chapter--crm .h-display em { color: #ff7878; }

.chapter__number {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  opacity: 0.5;
  margin-bottom: 0.4rem;
}

.chapter__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.chapter__title {
  margin-bottom: 4rem;
  max-width: 26ch;
}

/* === PROBLEM / SOLUTION === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.problem-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 2px;
  transition: transform 0.3s, border-color 0.3s;
}
.problem-card:hover { transform: translateY(-4px); border-color: #ff7878; }

.problem-card__challenge {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--paper);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.problem-card__answer {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* === TIMELINE === */
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  counter-reset: step;
  margin-bottom: 5rem;
  position: relative;
}

.timeline__step {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.timeline__step:last-child { border-right: none; }

.timeline__num {
  display: inline-block;
  font-family: var(--ff-serif);
  font-size: 2rem;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline__title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.timeline__meta {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.compliance-sub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.compliance-sub__block h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--red);
}
.compliance-sub__block p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }

/* === MODULES === */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 2px;
  transition: all 0.3s;
}
.module-card:hover {
  border-color: var(--red);
  background: rgba(192, 24, 24, 0.08);
}

.module-card--featured {
  background: linear-gradient(145deg, rgba(192,24,24,0.15), rgba(192,24,24,0.05));
  border-color: var(--red);
  grid-column: span 2;
}
@media (max-width: 640px) { .module-card--featured { grid-column: span 1; } }

.module-card h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--paper);
}
.module-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === FEATURE LIST === */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.feature-list dt {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--red);
  font-size: 1rem;
}
.feature-list dd { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }
.feature-list code { background: var(--paper-warm); padding: 0.1rem 0.4rem; border-radius: 2px; font-size: 0.9em; color: var(--red); }

/* === AUDIENCE === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.audience-card {
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  transition: all 0.3s;
}
.audience-card:hover { border-color: #ff7878; transform: translateY(-3px); }
.audience-card h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--paper);
}
.audience-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.55; }

/* === CRM GRID === */
.crm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.crm-grid__text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.crm-grid__text strong { color: var(--paper); }
.crm-grid__text .btn { margin-top: 1rem; }

.crm-grid__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.crm-feature {
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.crm-feature strong {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1rem;
  color: #ff9090;
}
.crm-feature span { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.45; }

/* === DEMO === */
.demo {
  padding: 7rem 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
}
.demo .container { max-width: 780px; }
.demo .h-display { max-width: none; margin-bottom: 1.25rem; }
.demo__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.demo-form { display: flex; flex-direction: column; gap: 1.25rem; }
.demo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.demo-form input, .demo-form select, .demo-form textarea {
  font-family: var(--ff-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.demo-form textarea { resize: vertical; font-family: var(--ff-sans); }
.demo-form__note { font-size: 0.88rem; color: var(--muted); text-align: center; }
.demo-form__note a { color: var(--red); font-weight: 500; }

/* === FOOTER === */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer__logo { height: 56px; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__meta { font-size: 0.8rem; opacity: 0.6; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer__cols h5 {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer__cols ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__cols a { font-size: 0.92rem; transition: color 0.2s; }
.footer__cols a:hover { color: #ff7878; }

.footer__legal {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--line);
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
  }
  .nav__login { border-left: none; padding-left: 0; }

  .intro__grid { grid-template-columns: 1fr; gap: 2rem; }
  .crm-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .crm-grid__features { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .demo-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 7rem; min-height: auto; }
  .hero__stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__cols { grid-template-columns: 1fr; }
  .timeline__step { border-right: none; }
  .feature-list > div { grid-template-columns: 1fr; gap: 0.3rem; }
}
