/* ============================================================
   Miradero Cybersecurity — landing page styles (v1)
   ============================================================ */
/* ------------------------------------------------------------ Brand fonts (self-hosted, latin subset, OFL) */
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("/assets/fonts/lato-900.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/encode-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/encode-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Encode Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/encode-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/cormorant-garamond-500-italic.woff2") format("woff2"); }

:root {
  --purple: #5d476c;
  --purple-deep: #3f2f4b;
  --purple-tint: #f4f1f6;
  --gold: #fdba4d;
  --gold-deep: #e6a12f;
  --green: #009a4a;
  --green-light: #45b975;
  --black: #0e0c10;
  --ink: #1c1a1f;
  --gray: #5f5a66;
  --line: #e6e2ea;
  --white: #ffffff;

  /* Brand type: Lato Black (headings) · Montserrat Medium (all-caps sub-heads) · Encode Sans Regular (body) */
  --font-heading: "Lato", "Encode Sans", system-ui, sans-serif;
  --font-sub: "Montserrat", "Encode Sans", system-ui, sans-serif;
  --font-body: "Encode Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --container: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(29, 20, 40, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--black); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type helpers */
.eyebrow {
  font-family: var(--font-sub); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,0.78); }
.eyebrow--gold { color: var(--gold); }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; color: var(--purple-deep); }
h2 em, .hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--gold-deep); font-size: 1.12em; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__head h2::after {
  content: ""; display: block; width: 72px; height: 3px; background: var(--gold);
  margin: 22px auto 0;
}
.section__lead { color: var(--gray); margin-top: 18px; max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: var(--radius);
  font-family: var(--font-sub); font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 13px; }

/* ------------------------------------------------------------ Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: background-color .25s, border-color .25s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.nav__brand img { height: 72px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 34px; font-family: var(--font-sub); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.nav__menu a:not(.btn) { color: var(--purple-deep); position: relative; }
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--purple-deep); margin: 5px 0; transition: transform .2s, opacity .2s; }
/* Transparent over the hero until scrolled (the .js class is set in <head>, so no-JS visitors keep the solid bar) */
.js .nav:not(.is-solid) { background: transparent; border-bottom-color: transparent; }
.js .nav:not(.is-solid) .nav__menu a:not(.btn) { color: var(--white); }
.js .nav:not(.is-solid) .nav__toggle span { background: var(--white); }

/* ------------------------------------------------------------ Hero */
.hero {
  position: relative; min-height: min(92vh, 820px); display: grid; place-items: center;
  color: var(--white); overflow: hidden; isolation: isolate; text-align: center;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,12,16,0.55) 0%, rgba(63,47,75,0.35) 45%, rgba(14,12,16,0.75) 100%);
}
.hero__content { padding: 120px 0 140px; max-width: 820px; }
.hero__title {
  font-size: clamp(38px, 6vw, 64px); font-weight: 900; letter-spacing: -0.01em;
  margin: 8px 0 22px; text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero__title em { color: var(--gold); }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.88); max-width: 56ch; margin-inline: auto; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.6); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0%,100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(12px); opacity: 0 } }

/* ------------------------------------------------------------ Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--purple-tint); }

.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 34px 28px 28px; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__num { font-size: 34px; font-weight: 300; color: var(--line); letter-spacing: -0.02em; line-height: 1; margin-bottom: 18px; }
.card h3 { font-size: 19px; color: var(--purple-deep); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.card p { color: var(--gray); font-size: 15px; flex: 1; }
.card__link { margin-top: 26px; font-family: var(--font-sub); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.card__link:hover { color: var(--purple); }

.principle { padding: 28px 22px 22px; border-top: 3px solid var(--gold); background: var(--white); border: 1px solid var(--line); border-top-width: 3px; border-top-color: var(--gold); border-radius: var(--radius); }
.principle__dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(69,185,117,0.18); margin-bottom: 16px; }
.principle h3 { font-size: 17px; font-weight: 700; color: var(--purple-deep); margin-bottom: 10px; }
.principle p { color: var(--gray); font-size: 14.5px; }

/* Industries */
.industries { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.industries__list li { padding: 20px 0 20px 26px; border-bottom: 1px solid var(--line); position: relative; }
.industries__list li:first-child { border-top: 1px solid var(--line); }
.industries__list li::before { content: ""; position: absolute; left: 0; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.industries__list strong { display: block; color: var(--purple-deep); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.industries__list span { color: var(--gray); font-size: 14.5px; }

/* ------------------------------------------------------------ CTA + form */
.cta { background: var(--purple); color: var(--white); padding: 88px 0; }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.cta__copy p:last-child { color: rgba(255,255,255,0.8); }

.form { display: grid; gap: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); padding: 28px; border-radius: var(--radius); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-family: var(--font-sub); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.form input, .form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid transparent; border-radius: 4px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253,186,77,0.35); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.ok { color: #9fe3bd; }
.form__status.err { color: #ffc9c9; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------ Footer */
.footer { background: var(--black); color: rgba(255,255,255,0.72); font-size: 13.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.wordmark {
  font-family: var(--font-heading); font-weight: 900; font-size: 26px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--white); line-height: 1;
}
.wordmark small { display: block; font-size: 10px; letter-spacing: 0.34em; color: var(--gold); margin-top: 8px; padding-left: 2px; }
.footer__tag { margin: 18px 0 6px; }
.footer__brand a { color: var(--gold); }
.footer__col h4 { font-family: var(--font-sub); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__col a { display: block; padding: 4px 0; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.5); }
.footer__legal a, .footer__legal button { margin-left: 18px; }
.footer__legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--gold); }

/* ------------------------------------------------------------ Legal pages */
.legal { padding: 156px 0 96px; }
.legal__inner { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); color: var(--purple-deep); }
.legal__meta { color: var(--gray); font-size: 14px; margin: 12px 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 22px; margin: 44px 0 14px; scroll-margin-top: 120px; }
.legal h3 { font-size: 16px; font-weight: 700; color: var(--purple-deep); margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal p[id] { scroll-margin-top: 120px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0 14px; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--gold-deep); }
.legal article a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.legal article a:hover { color: var(--purple); }
.legal__table { overflow-x: auto; margin: 16px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--font-sub); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple-deep); background: var(--purple-tint); }
.legal tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------ Cookie consent */
.btn--line { background: transparent; color: var(--purple-deep); border-color: var(--purple); }
.btn--line:hover { background: var(--purple-tint); }
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 1040px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(29, 20, 40, 0.22); padding: 22px 26px;
  transform: translateY(calc(100% + 32px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.cookie[hidden] { display: none; }
.cookie.is-visible { transform: none; }
.cookie__title { font-size: 17px; color: var(--purple-deep); margin-bottom: 6px; }
.cookie p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.cookie a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie__actions .btn { white-space: nowrap; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .industries, .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__inner { height: 80px; }
  .nav__brand img { height: 60px; }
  .nav__toggle { display: block; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 16px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 82vh; }
  .hero__bg img { object-position: 45% 45%; }
  .hero__content { padding: 90px 0 110px; }
  .br-desktop { display: none; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 32px; }
  .footer__legal a, .footer__legal button { margin: 0 14px 0 0; }
  .legal { padding: 120px 0 64px; }
  .cookie { grid-template-columns: 1fr; padding: 20px; left: 12px; right: 12px; bottom: 12px; }
  .cookie__actions { flex-direction: column; }
  .cookie__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
  .card, .btn, .cookie { transition: none; }
}
