/* ===========================================================
   DataBox Business Intelligence — dark/red theme
   Matches approved design mockup
   =========================================================== */

:root{
  --black:      #0A0A0A;
  --panel:      #131313;
  --panel-2:    #1A1A1A;
  --line:       #2B2B2B;
  --white:      #FFFFFF;
  --grey:       #B7B7B7;
  --grey-dim:   #7C7C7C;
  --red:        #C10E15;
  --red-dark:   #8C0A10;
  --red-glow:   rgba(193,14,21,0.35);

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1,h2,h3,h4{
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1{ font-size: clamp(2.1rem, 4.3vw, 3.1rem); }
h2{ font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3{ font-size: 1.1rem; }

p{ margin: 0 0 1em; color: var(--grey); }

.icon{
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-bottom: 0.7em;
}

/* ---------- red icon badge (signature element) ---------- */

.icon-badge{
  width: 56px; height: 56px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 1.5rem;
  flex-shrink: 0;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
}
.icon-badge.filled{
  background: var(--red);
  color: var(--white);
}
.icon-badge.sm{ width: 42px; height: 42px; font-size: 1.15rem; }

/* ---------- header ---------- */

.site-header{
  background: var(--black);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{
  width: 42px; height: 42px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text{ line-height: 1.15; }
.brand-text .name{ font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--white); letter-spacing: 0.01em; }
.brand-text .name .box{ color: var(--red); }
.brand-text .sub{ font-size: 0.62rem; letter-spacing: 0.18em; color: var(--grey-dim); text-transform: uppercase; }
.brand-text .tag{ font-size: 0.68rem; color: var(--grey-dim); margin-top: 2px; }
.brand-text .tag em{ color: var(--red); font-style: normal; }

nav.main-nav{ display: flex; align-items: center; gap: 30px; }
nav.main-nav a{
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--grey-dim); font-weight: 600;
  padding-bottom: 6px; border-bottom: 2px solid transparent;
}
nav.main-nav a .icon{ font-size: 1.15rem; }
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--red); border-color: var(--red); }

.nav-cta{
  background: var(--red);
  color: #fff !important;
  padding: 12px 20px !important;
  border-radius: 3px;
  font-size: 0.78rem !important;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  flex-direction: row !important;
  border-bottom: none !important;
}
.nav-cta:hover{ background: var(--red-dark); border-color: transparent !important; }

.nav-toggle{
  display: none;
  background: none; border: 1px solid var(--line); color: var(--white);
  width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; border-radius: 3px;
}

/* ---------- buttons ---------- */

.btn{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 15px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:hover{ background: var(--red-dark); }
.btn-outline{ background: transparent; border-color: var(--line); color: var(--white); }
.btn-outline:hover{ border-color: var(--red); color: var(--red); }
.btn-block{ display: flex; justify-content: center; width: 100%; }

/* ---------- hero ---------- */

.hero{
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(193,14,21,0.10) 0%, transparent 55%),
    var(--black);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-grid{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero h1{ margin-bottom: 0.3em; }
.hero h1 .accent{ color: var(--red); display: block; }
.hero-lede{ max-width: 50ch; font-size: 1.03rem; margin-top: 1em; }

.stat-row{ display: flex; gap: 30px; margin-top: 1.8em; flex-wrap: wrap; }
.stat-row .stat{ display: flex; align-items: center; gap: 12px; }
.stat-row .icon-badge{ width: 40px; height: 40px; font-size: 1.05rem; }
.stat-row .stat strong{ display: block; color: var(--white); font-size: 0.88rem; font-family: var(--font-head); }
.stat-row .stat span{ font-size: 0.78rem; color: var(--grey-dim); }

/* cube graphic replacement — geometric CSS construction */
.cube-visual{
  position: relative;
  aspect-ratio: 1 / 0.95;
  display: grid;
  place-items: center;
}
.cube-visual .cube{
  width: 46%;
  aspect-ratio: 1;
  position: relative;
  transform: rotate(45deg);
  border: 2px solid var(--red);
  background: linear-gradient(135deg, rgba(193,14,21,0.18), transparent 70%);
  box-shadow: 0 0 50px var(--red-glow);
}
.cube-visual .cube::before{
  content: "";
  position: absolute; inset: 18%;
  border: 1px solid var(--red-dark);
  transform: rotate(45deg);
}
.cube-visual .callout{
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.03em;
  max-width: 130px; line-height: 1.25;
}
.cube-visual .callout .icon-badge{ width: 44px; height: 44px; font-size: 1.15rem; }
.cube-visual .c1{ top: 2%; left: 0%; }
.cube-visual .c2{ top: 2%; right: 0%; text-align: right; flex-direction: row-reverse; }
.cube-visual .c3{ bottom: 2%; left: 0%; }
.cube-visual .c4{ bottom: 2%; right: 0%; text-align: right; flex-direction: row-reverse; }

/* ---------- sections ---------- */

section{ padding: 60px 0; }
section.tight{ padding: 40px 0; }
section.panel{ background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.on-black{ background: var(--black); }

.section-head{ max-width: 64ch; margin-bottom: 2.2em; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- two column ---------- */

.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.two-col.alt-ratio{ grid-template-columns: 1.3fr 1fr; }
.two-col.align-start{ align-items: start; }

.check-list{ list-style: none; margin: 1.2em 0; padding: 0; }
.check-list li{ display: flex; gap: 10px; padding: 8px 0; font-size: 0.95rem; color: var(--white); font-weight: 500; }
.check-list li .icon{ color: var(--red); flex-shrink: 0; margin-top: 3px; }

.callout-box{
  background: var(--panel);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 20px 22px;
  margin-top: 1.6em;
}
.callout-box p{ font-size: 0.9rem; margin-bottom: 0.6em; }
.callout-box p:last-child{ margin-bottom: 0; }
.callout-box strong{ color: var(--white); }

/* ---------- icon card grid ---------- */

.icon-card-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 26px; }
.icon-card-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.icon-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 24px;
  text-align: left;
}
.icon-card .icon-badge{ margin-bottom: 18px; }
.icon-card h3{ margin-bottom: 10px; }
.icon-card p{ font-size: 0.9rem; margin-bottom: 0; }
.icon-card ul{ margin: 0.8em 0 0; padding-left: 1.1em; font-size: 0.88rem; }
.icon-card ul li{ margin-bottom: 6px; }
.icon-card.center{ text-align: center; }
.icon-card.center .icon-badge{ margin-left: auto; margin-right: auto; }

/* ---------- how it works / step flow ---------- */

.step-flow{ display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; position: relative; }
.step-flow .step{ text-align: center; }
.step-flow .step .icon-badge{ margin: 0 auto 14px; }
.step-flow .step .num{ font-family: var(--font-head); color: var(--red); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; display: block; margin-bottom: 6px; }
.step-flow .step h4{ color: var(--white); font-family: var(--font-head); font-size: 0.88rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.step-flow .step p{ font-size: 0.78rem; margin: 0; }

.secure-box{
  border: 1px solid var(--red-dark);
  border-radius: 6px;
  padding: 22px;
  text-align: center;
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(193,14,21,0.06), transparent);
}
.secure-box .icon-badge{ margin: 0 auto 12px; }
.secure-box h4{ color: var(--white); font-family: var(--font-head); font-size: 0.9rem; margin-bottom: 6px; }
.secure-box p{ font-size: 0.82rem; margin: 0; }

/* ---------- why grid (6 across) ---------- */

.why-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 24px; text-align: center; }
.why-grid .item .icon-badge{ margin: 0 auto 14px; }
.why-grid .item h4{ color: var(--white); font-family: var(--font-head); font-size: 0.86rem; text-transform: uppercase; margin: 0 0 8px; letter-spacing: 0.02em; }
.why-grid .item p{ font-size: 0.8rem; margin: 0; }

/* ---------- three box row (role / addons / need more) ---------- */

.trio-row{ display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; align-items: stretch; }
.trio-row .box{ background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.trio-row .box.outline-red{ border-color: var(--red-dark); }
.trio-row h4{ color: var(--white); font-family: var(--font-head); font-size: 0.92rem; text-transform: uppercase; margin-bottom: 12px; }
.addon-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.addon-grid .addon{ text-align: center; }
.addon-grid .icon-badge{ margin: 0 auto 8px; }
.addon-grid .addon strong{ display: block; font-size: 0.78rem; color: var(--white); font-family: var(--font-head); text-transform: uppercase; margin-bottom: 4px; }
.addon-grid .addon span{ font-size: 0.74rem; color: var(--grey-dim); }

/* ---------- CTA bar ---------- */

.cta-bar{
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.cta-bar .wrap{ display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-bar .msg{ display: flex; align-items: center; gap: 16px; }
.cta-bar .msg h4{ color: var(--white); font-family: var(--font-head); font-size: 1rem; margin: 0 0 2px; }
.cta-bar .msg p{ margin: 0; font-size: 0.85rem; }

/* ---------- steps generic (services how-we-work / contact next-steps) ---------- */

.dot-steps{ display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; }
.dot-steps .step{ position: relative; padding-left: 8px; }
.dot-steps .num-circle{
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  margin-bottom: 12px;
}
.dot-steps h4{ color: var(--white); font-family: var(--font-head); font-size: 0.9rem; margin-bottom: 6px; }
.dot-steps p{ font-size: 0.84rem; margin: 0; }

/* ---------- pricing ---------- */

.price-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; }
.price-card{ background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-align: center; }
.price-card .head{ background: var(--red); padding: 20px; color: #fff; }
.price-card .head .icon-badge{ background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; margin: 0 auto 10px; }
.price-card .head h3{ color: #fff; text-transform: uppercase; font-size: 0.95rem; margin: 0; letter-spacing: 0.04em; }
.price-card .body{ padding: 26px 20px; }
.price-card .cap{ font-size: 0.82rem; color: var(--grey-dim); margin-bottom: 4px; }
.price-card .count{ font-family: var(--font-head); font-size: 1.9rem; color: var(--white); font-weight: 700; margin-bottom: 14px; }
.price-card .price{ font-family: var(--font-head); font-size: 2.1rem; color: var(--red); font-weight: 800; }
.price-card .price .vat{ font-size: 0.9rem; color: var(--grey-dim); font-weight: 500; display: block; }
.price-card.enterprise .price{ font-size: 1.3rem; color: var(--white); }

.info-strip{
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px 24px; margin-top: 26px;
}
.info-strip .lbl{ display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.info-strip ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.info-strip li{ display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.info-strip li .icon{ color: var(--red); }

.promise-quote{
  text-align: center; max-width: 70ch; margin: 0 auto;
  font-family: var(--font-head); color: var(--white); font-size: 1.15rem; font-weight: 500;
  padding: 40px 0 10px;
}
.promise-quote .mark{ color: var(--red); font-size: 2rem; line-height: 0; vertical-align: -6px; }
.promise-quote .highlight{ color: var(--red); }

/* ---------- form ---------- */

.form-panel{ background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 34px; }
.field{ margin-bottom: 18px; }
.field label{ display: block; font-size: 0.8rem; color: var(--grey); margin-bottom: 7px; }
.field input, .field textarea, .field select{
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline: none; border-color: var(--red); }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-check{ display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; margin-bottom: 20px; }
.field-check a{ color: var(--red); text-decoration: underline; }
.field-check input{ margin-top: 3px; }
.form-note{ display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--grey-dim); margin-top: 14px; justify-content: center; }

.contact-info-list{ list-style: none; margin: 0; padding: 0; }
.contact-info-list li{ display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-list li:last-child{ border-bottom: none; }
.contact-info-list h4{ color: var(--white); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; margin: 0 0 4px; }
.contact-info-list p{ margin: 0; font-size: 0.88rem; }

.no-free-box{
  border: 1px solid var(--red-dark); border-radius: 6px; padding: 18px 20px; margin-top: 20px;
  display: flex; gap: 14px;
  background: linear-gradient(180deg, rgba(193,14,21,0.06), transparent);
}
.no-free-box h4{ color: var(--red); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; margin: 0 0 6px; }
.no-free-box p{ font-size: 0.82rem; margin: 0; }

/* ---------- FAQ ---------- */

.faq-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 26px; }
.faq-grid h4{ color: var(--red); font-family: var(--font-head); font-size: 0.92rem; margin-bottom: 8px; }
.faq-grid p{ font-size: 0.85rem; margin: 0; }

.faq details{ border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary{ cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary .icon{ color: var(--red); flex-shrink: 0; margin-left: 16px; }
.faq details p{ margin-top: 12px; font-size: 0.9rem; }

/* ---------- footer ---------- */

.site-footer{ background: var(--panel); border-top: 1px solid var(--line); padding: 44px 0 24px; }
.footer-top{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-top .brand-text .sub{ margin-bottom: 10px; }
.footer-top p{ font-size: 0.85rem; }
.footer-col h5{ color: var(--white); font-family: var(--font-head); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ font-size: 0.88rem; color: var(--grey); }
.footer-col a:hover{ color: var(--red); }
.footer-social{ display: flex; align-items: center; gap: 10px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 4px; justify-content: center; color: var(--white); }
.footer-fine{ border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.78rem; color: var(--grey-dim); }

/* ---------- utility ---------- */

.center{ text-align: center; }
.mt-lg{ margin-top: 2.2em; }
.text-white{ color: var(--white); }

/* ---------- responsive ---------- */

@media (max-width: 980px){
  .hero-grid, .two-col, .two-col.alt-ratio{ grid-template-columns: 1fr; }
  .step-flow{ grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
  .trio-row{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .cube-visual{ margin-top: 20px; }
  .icon-card-grid.cols-3{ grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
}

@media (max-width: 860px){
  nav.main-nav{
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 16px 28px 24px; gap: 18px;
    display: none;
  }
  nav.main-nav.open{ display: flex; }
  nav.main-nav a{ flex-direction: row; gap: 10px; border-bottom: none; }
  .nav-toggle{ display: block; }
  .field-row{ grid-template-columns: 1fr; }
  .info-strip{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .form-panel{ padding: 22px; }
  .footer-top{ grid-template-columns: 1fr; }
}
