:root {
  --bg: #111214;
  --bg2: #1b1d20;
  --paper: #f7f5ee;
  --paper2: #eeece3;
  --text: #f9f8f3;
  --muted: #b9b9b2;
  --ink: #141414;
  --soft: #585b55;
  --accent: #A9C447;
  --accent2: #7F9632;
  --accent-dark: #526617;
  --line: rgba(169, 196, 71, .28);
  --line2: rgba(20, 20, 20, .12);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .35);
  --max: 1540px;
  --header: 74px;
  --font: 'Geologica', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden
}

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

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

p {
  line-height: 1.65
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 84px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .10));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: transform .45s var(--ease), background .35s ease
}

.site-header.is-hidden {
  transform: translateY(-105%)
}

.brand img {
  width: 150px;
  height: auto
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  font-weight: 700
}

.linkedin-link svg {
  width: 17px;
  height: 17px;
  fill: #fff
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(169, 196, 71, .65)
}

.section {
  position: relative;
  padding: clamp(70px, 8vw, 118px) clamp(20px, 5vw, 84px)
}

.compact {
  padding-top: 80px
}

.section-dark {
  background: radial-gradient(circle at 15% 10%, rgba(169, 196, 71, .08), transparent 33%), var(--bg);
  color: var(--green)
}

.section-light {
  background: linear-gradient(180deg, var(--paper), #fff);
  color: var(--ink)
}

.section-head {
  max-width: 920px;
  margin: 0 auto 38px
}

.section-head p {
  max-width: 820px
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 18px
}

.section-light .section-kicker {
  color: #5e7e16
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -.055em;
  line-height: .95
}

h1 {
  font-size: clamp(54px, 8.8vw, 128px);
  max-width: 920px
}

h2 {
  font-size: clamp(38px, 5.8vw, 82px);
  max-width: 980px
}

h3 {
  font-size: 28px
}

.lead {
  font-size: clamp(18px, 2vw, 25px);
  max-width: 760px;
  color: #e5e5df
}

.section-light p {
  color: #3e403b
}

.section-dark p {
  color: #d6d6cf
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 10px;
  font-weight: 800;
  transition: .35s var(--ease)
}

.btn-primary {
  background: var(--accent);
  color: #050505;
  box-shadow: 0 16px 50px rgba(169, 196, 71, .24)
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04)
}

.btn:hover {
  transform: translateY(-3px)
}

.hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .66) 42%, rgba(0, 0, 0, .05) 100%), url('assets/images/hero-wine-dashboard-clean.webp') center/cover no-repeat;
  filter: saturate(1.1) contrast(1.05)
}

.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 48%, rgba(169, 196, 71, .18), transparent 25%), linear-gradient(180deg, transparent 70%, var(--bg) 100%)
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  padding: calc(var(--header) + 50px) clamp(22px, 3vw, 40px) 90px
}

.hero-copy {
  padding-top: 20px
}

.hero-copy h1 strong {
  color: var(--accent)
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px
}

.hero-meta {
  margin-top: 34px;
  display: grid;
  gap: 6px;
  color: #fff
}

.hero-meta span {
  color: #c7c7be
}

.hero-visual {
  margin: 0;
  align-self: end;
  border: 1px solid rgba(169, 196, 71, .25);
  background: rgba(9, 10, 10, .55);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-radius: 18px;
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg)
}

.hero-visual img {
  height: 560px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.1) saturate(1.08)
}

.hero-visual figcaption {
  padding: 16px 18px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800
}

.connect-grid,
.feature-matrix,
.crm-grid,
.role-grid,
.tool-grid{

  display:grid;

  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));

  gap:1rem;

}

.tool-card{

  min-height:120px;

  display:flex;

  flex-direction:column;

  justify-content:center;

  align-items:center;

  text-align:center;

  background:#fff;

  border:1px solid rgba(0,0,0,.08);

  border-radius:18px;

  transition:.25s ease;

}

.tool-card:hover{

  transform:translateY(-4px);

  border-color:rgba(164,191,59,.45);

}

.tool-card strong{

  font-size:1.2rem;

  font-weight:800;

  color:#0b0d12;

  margin-bottom:.5rem;

}

.tool-card span{

  font-size:.72rem;

  font-weight:800;

  letter-spacing:.14em;

  text-transform:uppercase;

  color:#8aa62f;

}

.connect-grid {
  grid-template-columns: repeat(6, 1fr)
}

.pulse-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  overflow: hidden;
  transition: .35s var(--ease)
}

.pulse-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent, transparent 62%, var(--accent), transparent) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0
}

.pulse-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(169, 196, 71, .07), rgba(255, 255, 255, .025))
}

.pulse-card:hover:before {
  opacity: 1;
  animation: spin 1s linear 1
}

.pulse-card span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px
}

.pulse-card p {
  font-size: 14px;
  margin: 0
}

.split {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: end
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.kpi-card {
  padding: 34px 24px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
  transition: .35s var(--ease)
}

.kpi-card:hover {
  transform: translateY(-7px)
}

.kpi-card strong {
  display: block;
  font-size: 34px;
  color: #5e7e16;
  margin-bottom: 10px;
  letter-spacing: -.05em
}

.kpi-card span {
  color: #43443f;
  line-height: 1.5
}

.image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  max-width: none
}

.image-section.reverse .image-panel {
  order: 2
}

.image-panel {
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(169, 196, 71, .20);
  box-shadow: var(--shadow);
  background: #050505
}

.section-light .image-panel {
  border-color: var(--line2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16)
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(1.05)
}

.text-panel {
  max-width: 680px
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 24px
}

.mini-list p {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent2);
  background: rgba(255, 255, 255, .055)
}

.mini-list.light p {
  background: #fff;
  border-color: #5e7e16;
  color: #333
}

.profile-wrap {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 44px;
  align-items: center
}

.role-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px
}

.role-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04)
}

.role-grid b {
  display: block;
  color: var(--accent);
  margin-bottom: 8px
}

.role-grid span {
  color: #dadad2;
  line-height: 1.45
}

.profile-card {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow)
}

.profile-card img {

  border-radius: 12px;

  aspect-ratio: 4/5;

  object-fit: cover;

  max-height: 520px;

  width: 100%;

}
.profile-card {

  max-width: 420px;

  justify-self: end;

}
@media(max-width:900px) {

  .profile-card {

    max-width: 340px;

    justify-self: center;

  }

  .profile-card img {

    max-height: 420px;

  }

}

.profile-card span {
  display: block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--accent)
}

.system-board {
  position: relative;
  max-width: 1100px;
  height: 650px;
  margin: 0 auto;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: radial-gradient(circle at center, rgba(169, 196, 71, .22), transparent 22%), linear-gradient(180deg, #fff, #f3f1e8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .11);
  overflow: hidden
}

.system-board:before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(94, 126, 22, .35);
  border-radius: 50%;
  animation: slowRotate 22s linear infinite
}

.system-center {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #111214;
  color: #fff;
  border: 1px solid #A9C447;
  font-weight: 800;
  font-size: 28px;
  box-shadow: 0 0 70px rgba(169, 196, 71, .35)
}

.system-center span {
  font-size: 14px;
  color: #A9C447
}

.system-item {
  position: absolute;
  width: 250px;
  padding: 18px;
  border: 1px solid rgba(94, 126, 22, .25);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  transition: .35s var(--ease)
}

.system-item:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12)
}

.system-item b {
  display: block;
  color: #4f7014;
  margin-bottom: 8px
}

.system-item small {
  line-height: 1.45;
  color: #333
}

.i1 {
  left: 7%;
  top: 10%
}

.i2 {
  right: 7%;
  top: 10%
}

.i3 {
  right: 3%;
  top: 42%
}

.i4 {
  right: 13%;
  bottom: 10%
}

.i5 {
  left: 13%;
  bottom: 10%
}

.i6 {
  left: 3%;
  top: 42%
}

.journey-line {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px
}

.journey-line div {
  position: relative;
  min-height: 210px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  transition: .35s var(--ease)
}

.journey-line div:hover {
  transform: translateY(-9px);
  border-color: var(--accent)
}

.journey-line b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  margin-bottom: 18px;
  color: #fff
}

.journey-line span {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px
}

.journey-line small {
  color: #d7d7cf;
  line-height: 1.45
}

.feature-matrix {
  grid-template-columns: repeat(3, 1fr)
}

.feature-matrix div,
.crm-grid article {
  padding: 24px;
  border: 1px solid var(--line2);
  background: #fff;
  border-radius: 12px;
  transition: .35s var(--ease)
}

.feature-matrix div:hover,
.crm-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .10)
}

.feature-matrix b,
.crm-grid b {
  display: block;
  color: #5e7e16;
  margin-bottom: 10px;
  font-size: 20px
}

.feature-matrix span,
.crm-grid p {
  color: #383a35
}

.checkout-card {
  padding: 32px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .14);
  max-width: 530px
}

.checkout-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800
}

.checkout-top strong {
  font-size: 36px;
  color: #5e7e16;
  letter-spacing: -.04em
}

.progress {
  height: 9px;
  background: #e8e8de;
  border-radius: 99px;
  margin: 28px 0 12px;
  overflow: hidden
}

.progress i {
  display: block;
  height: 100%;
  background: #5e7e16;
  border-radius: 99px
}

.checkout-card button {
  width: 100%;
  border: 0;
  background: #5e7e16;
  color: #fff;
  font-weight: 800;
  padding: 17px;
  border-radius: 9px;
  text-transform: uppercase;
  letter-spacing: .08em
}

.checkout-card li {
  margin: 12px 0
}

.crm-grid {
  grid-template-columns: repeat(3, 1fr)
}

.hover-gallery {
  max-width: var(--max);
  height: 480px;
  margin: auto;
  display: flex;
  gap: 14px
}

.gallery-item {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(.58);
  transition: flex .7s var(--ease), filter .5s ease, transform .5s ease, box-shadow .5s ease
}

.gallery-item:hover {
  flex: 3.4;
  filter: grayscale(0) brightness(1);
  transform: translateY(-6px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .4)
}

.gallery-item span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(169, 196, 71, .35);
  border-radius: 999px;
  padding: 9px 13px;
  color: #fff;
  font-weight: 800
}

.workflow {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center
}

.workflow div {
  min-height: 150px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--line2);
  background: #fff;
  border-radius: 12px
}

.workflow div b {
  color: #5e7e16;
  text-transform: uppercase;
  letter-spacing: .08em
}

.workflow div span {
  margin-top: 8px;
  color: #333
}

.workflow i {
  height: 2px;
  background: #5e7e16;
  position: relative
}

.workflow i:after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #5e7e16;
  border-right: 2px solid #5e7e16;
  transform: rotate(45deg)
}

.tool-grid {
  grid-template-columns: repeat(8, 1fr)
}

.tool-grid div {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 130px;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 12px;
  font-weight: 800;
  transition: .35s var(--ease)
}

.tool-grid div:hover {
  transform: translateY(-8px)
}

.tool-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain
}

.roadmap-gallery {
  max-width: var(--max);
  margin: auto;
  display: flex;
  gap: 18px
}

.roadmap-gallery article {
  flex: 1;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  transition: flex .7s var(--ease), transform .45s var(--ease), background .45s ease
}

.roadmap-gallery article:hover {
  flex: 1.6;
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(169, 196, 71, .12), rgba(255, 255, 255, .03))
}

.roadmap-gallery span {
  color: var(--accent);
  font-weight: 800
}

.roadmap-gallery h3 {
  margin: 16px 0
}

.closing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(17, 18, 20, .72), var(--bg)), url('assets/images/hero-wine-dashboard-clean.webp') center/cover
}

.closing-card {
  max-width: 900px;
  text-align: center
}

.closing-card h2 {
  margin: auto
}

.legal-footer {
  padding: 32px clamp(20px, 5vw, 84px);
  background: #070707;
  color: #cfcfc8;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between
}

.legal-footer p {
  max-width: 1050px;
  font-size: 13px;
  margin: 0
}

.legal-footer button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 10px 12px
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  background: #111;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow)
}

.cookie-banner p {
  margin: 0;
  font-size: 13px
}

.cookie-banner button {
  margin-left: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease)
}

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

@keyframes spin {
  to {
    --angle: 360deg
  }
}

@keyframes slowRotate {
  to {
    transform: rotate(360deg)
  }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false
}

@media(max-width:1100px) {

  .hero-inner,
  .split,
  .image-section,
  .profile-wrap {
    grid-template-columns: 1fr
  }

  .connect-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .journey-line {
    grid-template-columns: repeat(4, 1fr)
  }

  .tool-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .image-section.reverse .image-panel {
    order: 0
  }

  .system-board {
    height: auto;
    display: grid;
    gap: 12px;
    padding: 24px
  }

  .system-board:before,
  .system-center {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    translate: none;
    margin: auto
  }

  .system-item {
    position: relative;
    inset: auto !important;
    width: auto
  }

  .workflow {
    grid-template-columns: 1fr
  }

  .workflow i {
    height: 34px;
    width: 2px;
    margin: auto
  }

  .workflow i:after {
    right: -4px;
    top: 22px;
    transform: rotate(135deg)
  }
}

@media(max-width:720px) {
  :root {
    --header: 64px
  }

  .brand img {
    width: 118px
  }

  .avatar {
    width: 34px;
    height: 34px
  }

  .linkedin-link span {
    display: none
  }

  .hero-inner {
    padding-top: 110px
  }

  .hero-visual {
    transform: none
  }

  .hero-visual img {
    height: 340px
  }

  .connect-grid,
  .kpi-row,
  .feature-matrix,
  .crm-grid,
  .role-grid {
    grid-template-columns: 1fr
  }

  .journey-line {
    grid-template-columns: 1fr
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hover-gallery,
  .roadmap-gallery {
    overflow-x: auto
  }

  .hover-gallery {
    height: 360px
  }

  .gallery-item,
  .roadmap-gallery article {
    min-width: 240px
  }

  .legal-footer,
  .cookie-banner {
    display: grid
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px
  }

  .section {
    padding: 64px 18px
  }

  h1 {
    font-size: 52px
  }

  .image-panel,
  .image-panel img {
    min-height: 340px
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important
  }

  html,
  body {
    background: #fff
  }

  .site-header,
  .cookie-banner {
    display: none !important
  }

  .section {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 26mm 14mm
  }

  .hero {
    min-height: 100vh;
    break-after: page
  }

  .section-dark {
    background: #111214 !important;
    color: #fff
  }

  .section-light {
    background: #f7f5ee !important
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important
  }

  .image-panel,
  .hero-visual,
  .checkout-card,
  .system-board {
    box-shadow: none
  }

  .legal-footer {
    break-before: page
  }

  .btn {
    border: 1px solid #222
  }

  .hover-gallery,
  .roadmap-gallery {
    height: auto
  }

  .gallery-item {
    min-height: 260px
  }
}

/* ===============================
   V5 FIXES — preserve V3 animations/integrations
   =============================== */
:root {
  --max: 1540px;
  --accent: #A9C447;
  --accent2: #7F9632;
  --accent-dark: #526617;
  --line: rgba(169, 196, 71, .28);
}

.site-header {
  position: fixed !important;
  transform: none !important;
  height: 82px;
  background: #050605 !important;
  border-bottom: 1px solid rgba(169, 196, 71, .18) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.site-header.is-hidden {
  transform: none !important;
}

.brand img {
  width: 176px !important;
}

.section {
  padding-inline: clamp(22px, 4vw, 72px);
}

.section-head,
.connect-grid,
.feature-matrix,
.crm-grid,
.role-grid,
.tool-grid,
.split,
.profile-wrap,
.journey-line,
.checkout-wrap,
.roadmap-gallery,
.closing-card,
.legal-footer {
  max-width: var(--max) !important;
}

.section-head {
  margin-left: auto;
  margin-right: auto;
}

.image-section {
  width: min(100%, var(--max));
  max-width: var(--max) !important;
  margin-left: auto;
  margin-right: auto;
}

.hero-inner {
  max-width: var(--max) !important;
}

.pulse-card,
.feature-matrix div,
.crm-grid article,
.journey-line div,
.roadmap-gallery article,
.tool-card,
.stack-card,
.automation-flow div {
  border-radius: 10px !important;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: auto;
  z-index: 300;
  width: min(540px, calc(100% - 44px));
  padding: 16px;
  background: #080908;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  color: #efefe8;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-banner button {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-banner [data-accept-cookies] {
  background: var(--accent);
  color: #080908;
  border-color: var(--accent);
}

.cookie-banner [data-reject-cookies] {
  background: transparent;
}

@media(max-width:900px) {
  .site-header {
    height: 70px
  }

  .brand img {
    width: 150px !important
  }

  .section {
    padding-inline: 18px
  }

  .connect-grid {
    grid-template-columns: 1fr 1fr
  }

  .journey-line {
    grid-template-columns: 1fr 1fr
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
    align-items: flex-start;
    flex-direction: column
  }
}

@media print {

  .site-header,
  .cookie-banner {
    display: none !important
  }

  .section {
    max-width: 100% !important;
    padding-left: 12mm !important;
    padding-right: 12mm !important
  }
}

/* === V6 ajustes finos solicitados === */
:root {
  --accent: #8FB42E;
  --accent2: #6F8F22;
  --accent-dark: #4E6618;
  --line: rgba(143, 180, 46, .30);
  --max: 1680px;
  --font: 'Geologica', Roboto, Arial, sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font) !important;
}

.site-header {
  height: 88px !important;
  background: #050505 !important;
  padding-inline: clamp(22px, 4vw, 70px) !important;
}

.brand img {
  width: 210px !important;
  max-height: 58px;
  object-fit: contain;
}

.linkedin-link {
  background: rgba(255, 255, 255, .04) !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

.avatar {
  width: 46px !important;
  height: 46px !important;
  border-color: rgba(143, 180, 46, .72) !important;
}

.section {
  padding: clamp(58px, 6.4vw, 96px) clamp(18px, 3vw, 56px) !important;
}

.section-head,
.connect-grid,
.feature-matrix,
.crm-grid,
.role-grid,
.tool-grid,
.split,
.profile-wrap,
.journey-line,
.checkout-wrap,
.roadmap-gallery,
.workflow,
.wide-image-placeholder,
.closing-card {
  width: 100% !important;
  max-width: var(--max) !important;
}

.image-section {
  width: 100% !important;
  max-width: 100% !important;
  padding-inline: clamp(18px, 3vw, 56px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.image-section>* {
  max-width: 100%;
}

.text-panel {
  max-width: 760px;
}

.image-section.reverse .text-panel {
  justify-self: end;
}

.image-panel {
  border-radius: 12px !important;
}

.image-panel img {
  border-radius: 0 !important;
}

.hero {
  min-height: 100vh !important;
  padding-top: var(--header) !important;
}

.hero-bg {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, .04) 100%), url('assets/images/hero-wine-dashboard-clean.webp') !important;
  filter: none !important;
  background-position: center right !important;
}

.hero-bg:after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 72%, var(--bg) 100%) !important;
}

.hero-inner {
  display: block !important;
  max-width: var(--max) !important;
  padding: clamp(70px, 8vw, 130px) clamp(22px, 4vw, 70px) clamp(70px, 8vw, 120px) !important;
}

.hero-copy {
  max-width: 850px !important;
  padding-top: 0 !important;
}

.hero-visual {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--font) !important;
}

.context-cards {
  align-items: stretch;
}

.context-cards .kpi-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 34px 26px !important;
}

.context-cards .kpi-card strong {
  font-size: clamp(32px, 3.2vw, 48px) !important;
  line-height: .95;
}

.context-cards .kpi-card span {
  font-size: 16px;
  line-height: 1.65;
}

#contexto-vino.section-light .text-panel .section-kicker,
#catalogo-ficha.section-light .text-panel .section-kicker {
  color: var(--accent-dark) !important;
}

#contexto-vino .text-panel h2,
#catalogo-ficha .text-panel h2 {
  color: var(--ink) !important;
}

#contexto-vino .text-panel p,
#catalogo-ficha .text-panel p {
  color: #333 !important;
}

#dashboard,
#umbral,
#automatizacion-crm,
#ia {
  padding-inline: clamp(18px, 3vw, 56px) !important;
}

#dashboard .image-panel,
#umbral .checkout-card,
#automatizacion-crm .image-panel,
#ia .image-panel {
  width: 100%;
}

.wide-image-placeholder {
  margin: 34px auto 0;
  border: 1px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
}

.wide-image-placeholder img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
}

.wide-image-placeholder figcaption {
  padding: 14px 18px;
  color: #4b4d47;
  font-size: 13px;
  background: #f3f1e8;
  border-top: 1px solid var(--line2);
}

.hover-gallery {
  filter: none !important;
}

.gallery-item {
  filter: none !important;
  opacity: 1 !important;
  border-radius: 10px !important;
}

.gallery-item:before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .38)) !important;
}

.gallery-item span {
  opacity: 1 !important;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .8);
  transform: none !important;
}

.gallery-item:hover {
  filter: none !important;
  opacity: 1 !important;
}

.workflow {
  gap: 0;
}

.workflow div {
  position: relative;
  overflow: hidden;
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}

.workflow div:before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform .55s var(--ease);
}

.workflow div:hover {
  transform: translateY(-8px);
  border-color: rgba(143, 180, 46, .55);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .14);
}

.workflow div:hover:before {
  transform: translateX(100%);
}

.workflow i {
  overflow: visible;
}

.workflow i:before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: flowDot 2.6s linear infinite;
}

@keyframes flowDot {
  0% {
    left: 0;
    opacity: 0
  }

  15% {
    opacity: 1
  }

  85% {
    opacity: 1
  }

  100% {
    left: 100%;
    opacity: 0
  }
}

.closing {
  min-height: auto !important;
  place-items: stretch !important;
  background: var(--bg) !important;
}

.closing-card {
  text-align: left !important;
  margin: 0 auto;
}

.closing-card h2 {
  margin: 0 !important;
}

.closing-card .lead {
  max-width: 980px;
  margin-top: 22px;
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.closing-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  transition: .35s var(--ease);
}

.closing-grid article:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.closing-grid b {
  display: block;
  color: var(--accent);
  margin-bottom: 10px;
}

.closing-grid span {
  display: block;
  color: #ddd;
  line-height: 1.55;
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .62);
  padding: 20px;
}

.cookie-modal__panel {
  position: relative;
  width: min(640px, 100%);
  background: #0b0c0b;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}

.cookie-modal__panel h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.cookie-modal__panel p {
  color: #deded7;
  margin-bottom: 18px;
}

.cookie-modal__panel label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-weight: 800;
}

.cookie-modal__panel label span {
  grid-column: 2;
  color: #bdbdb6;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-modal__panel input {
  accent-color: var(--accent);
}

.cookie-modal__close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cookie-modal__actions button {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-modal__actions [data-save-cookie-settings] {
  background: var(--accent);
  border-color: var(--accent);
  color: #070807;
}

@media(max-width:1100px) {
  .image-section {
    grid-template-columns: 1fr !important;
  }

  .image-section.reverse .text-panel {
    justify-self: stretch;
  }

  .context-cards {
    grid-template-columns: 1fr !important;
  }

  .context-cards .kpi-card {
    min-height: auto;
  }

  .closing-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:720px) {
  .brand img {
    width: 160px !important;
  }

  .site-header {
    height: 76px !important;
  }

  .hero {
    padding-top: 76px !important;
  }
}

@media print {
  .cookie-modal {
    display: none !important;
  }

  .section,
  .image-section {
    padding-left: 10mm !important;
    padding-right: 10mm !important;
  }
}

/* === Report hero final integrated fix === */
.report-root {
  display: block;
  background: var(--bg);
}

.hero.section-dark.print-page {
  min-height: clamp(560px, 56vw, 820px) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.hero-bg {
  background-image: linear-gradient(90deg,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .68) 36%,
      rgba(0, 0, 0, .22) 68%,
      rgba(0, 0, 0, .10) 100%),
    url('assets/images/hero-wine-dashboard-clean.webp') !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
  filter: none !important;
}

.hero-bg::after {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 66%,
      var(--bg) 100%) !important;
}

.hero-inner {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: var(--max) !important;
  min-height: inherit !important;
  padding: clamp(54px, 6vw, 92px) clamp(22px, 4vw, 70px) !important;
}

.hero-copy {
  max-width: 720px !important;
  padding-top: 0 !important;
}

.hero h1 {
  max-width: 720px !important;
  font-size: clamp(68px, 8vw, 124px) !important;
  line-height: .88 !important;
  letter-spacing: -.075em !important;
}

.hero .lead {
  max-width: 760px !important;
  margin-top: 24px !important;
  font-size: clamp(22px, 2.2vw, 32px) !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, .92) !important;
}

.hero-support {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.62;
  font-weight: 500;
}

.hero-ctas,
.hero-meta,
.hero-visual {
  display: none !important;
}

@media (max-width: 720px) {
  .hero.section-dark.print-page {
    min-height: 480px !important;
    padding-top: 20px !important;
  }

  .hero-bg {
    background-position: 62% center !important;
  }

  .hero-inner {
    padding: 80px 20px 54px !important;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 82px) !important;
  }

  .hero .lead {
    font-size: 20px !important;
  }
}

/* === FINAL OVERRIDE · Hero informe compacto === */
.report-root .hero.section-dark.print-page {
  min-height: 500px !important;
  max-height: 540px !important;
  height: 52vh !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.report-root .hero.section-dark.print-page .hero-bg {
  background-image:
    linear-gradient(90deg,
      rgba(0, 0, 0, .94) 0%,
      rgba(0, 0, 0, .82) 34%,
      rgba(0, 0, 0, .34) 66%,
      rgba(0, 0, 0, .08) 100%),
    url('assets/images/hero-wine-dashboard-clean.webp') !important;
  background-size: cover !important;
  background-position: center 34% !important;
  background-repeat: no-repeat !important;
}

.report-root .hero.section-dark.print-page .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(143, 180, 46, .14), transparent 25%),
    linear-gradient(180deg,
      rgba(17, 18, 20, 0) 0%,
      rgba(17, 18, 20, 0) 58%,
      rgba(17, 18, 20, .72) 82%,
      var(--bg) 100%) !important;
}

.report-root .hero.section-dark.print-page .hero-inner {
  min-height: 100% !important;
  padding: calc(var(--header) + 8px) clamp(22px, 4vw, 70px) 18px !important;
  align-items: center !important;
}

.report-root .hero.section-dark.print-page .hero-copy {
  max-width: 700px !important;
  transform: translateY(-80px);
}

.report-root .hero.section-dark.print-page .hero-copy h1 {
  font-size: clamp(4rem, 7.4vw, 7.8rem) !important;
  line-height: .86 !important;
  margin-bottom: 14px !important;
}

.report-root .hero.section-dark.print-page .lead {
  margin-top: 18px !important;
  font-size: clamp(20px, 1.9vw, 28px) !important;
}

.report-root .hero.section-dark.print-page .hero-support {
  margin-top: 18px !important;
  max-width: 660px !important;
}

#resumen.section.section-dark.compact {
  padding-top: 26px !important;
}

@media(max-width:900px) {
  .report-root .hero.section-dark.print-page {
    min-height: 520px !important;
    max-height: none !important;
    height: auto !important;
  }

  .report-root .hero.section-dark.print-page .hero-inner {
    padding: calc(var(--header) + 24px) 20px 36px !important;
  }
}

@media(max-width:720px) {
  .report-root .hero.section-dark.print-page {
    min-height: 500px !important;
  }

  .report-root .hero.section-dark.print-page .hero-bg {
    background-position: 62% center !important;
  }

  #resumen.section.section-dark.compact {
    padding-top: 22px !important;
  }
}

/* === Header sincronizado con home V3 === */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--header-h) !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 max(24px, calc((100vw - 1560px)/2)) !important;
  background: linear-gradient(180deg, rgba(5, 6, 7, .92), rgba(5, 6, 7, .62)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.site-header.is-hidden {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.site-header .brand img,
.brand img {
  width: 312px !important;
  max-width: 34vw !important;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
}

.site-header .nav,
.site-header .nav a,
.nav {
  color: #fff !important;
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.linkedin-pill,
.profile-mini {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid rgba(255, 255, 255, .15) !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, .06) !important;
}

.linkedin-pill svg {
  width: 19px !important;
}

.profile-mini {
  overflow: hidden !important;
}

.profile-mini img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.project-intro {
  padding-top: calc(var(--header-h) + 18px) !important;
}

section[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 1100px) {
  .site-header .brand img,
  .brand img {
    width: 248px !important;
    max-width: 54vw !important;
  }

  .nav.is-open {
    position: fixed !important;
    top: calc(var(--header-h) + 10px) !important;
    left: 14px !important;
    right: 14px !important;
    z-index: 1001 !important;
    display: grid !important;
    gap: 10px !important;
    padding: 18px !important;
    background: rgba(5, 6, 7, .96) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42) !important;
    backdrop-filter: blur(18px) !important;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    height: var(--header-h) !important;
    padding: 0 14px !important;
  }

  .site-header .brand {
    position: static !important;
    left: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: flex-start !important;
  }

  .site-header .brand img,
  .brand img {
    width: 192px !important;
    max-width: 68vw !important;
  }

  .site-header .header-actions {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 1002 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .06) !important;
  }

  .menu-toggle span {
    width: 18px !important;
    height: 2px !important;
    margin: 3px 0 !important;
    background: #fff !important;
  }

  .project-intro {
    padding-top: calc(var(--header-h) + 12px) !important;
  }
}

/* === Mobile reading order refinement · cheap selectors === */
@media (max-width: 720px) {
  .image-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
  }

  .image-section .text-panel {
    order: 1 !important;
  }

  .image-section .image-panel,
  .image-section .checkout-card {
    order: 2 !important;
  }

  .image-section .mobile-widget-summary {
    margin-top: 0 !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pulse-card:hover,
  .kpi-card:hover,
  .feature-matrix div:hover,
  .crm-grid article:hover,
  .journey-line div:hover,
  .roadmap-gallery article:hover,
  .workflow div:hover,
  .tool-card:hover,
  .btn:hover {
    transform: none !important;
  }
}
