/* Diggibyte — content-led website (draft)
   Brand palette taken from the current diggibyte.com build. */
:root {
  --navy-900: #000131;
  --navy-800: #040619;
  --navy-700: #0d1240;
  --navy-600: #2d487c;
  --red: #eb1600;
  --orange: #ff934f;
  --ink: #1b1d2b;
  --muted: #5f6475;
  --line: #e4e6f0;
  --bg: #ffffff;
  --bg-soft: #f6f7fd;
  --bg-warm: #f9f7f4;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 1, 49, 0.08);
  --max: 1200px;
  --grad: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--navy-800); color: #c9cbe0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.section--dark .lead { color: #aeb1cc; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(235, 22, 0, .28); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.link-arrow { font-weight: 600; color: var(--red); text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(4, 6, 25, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.logo-text { color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.logo-text span { color: var(--orange); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  color: #d5d7ea; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.07); }
.nav-links .btn { padding: 10px 20px; margin-left: 10px; color: #fff; }
.nav-links .btn:hover { background: var(--grad); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #c9cbe0;
  background: radial-gradient(1000px 500px at 85% 10%, rgba(235,22,0,.22), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, rgba(45,72,124,.45), transparent 60%),
              var(--navy-800);
  padding: 110px 0 90px;
}
.hero h1 { color: #fff; max-width: 900px; }
.hero h1 .grad, .page-hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: #b8bbd6; font-size: 1.2rem; }
.hero p.sub { max-width: 720px; color: #9ea2c2; }

.proof-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 64px;
  background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden;
}
.proof-strip div { background: rgba(4,6,25,.85); padding: 22px 18px; text-align: center; }
.proof-strip strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 700; }
.proof-strip span { font-size: .82rem; color: #9ea2c2; }
.proof-note { margin-top: 18px; font-size: .95rem; color: #9ea2c2; font-style: italic; }

/* Page hero (inner pages) */
.page-hero {
  background: radial-gradient(900px 400px at 90% 0%, rgba(235,22,0,.2), transparent 60%), var(--navy-800);
  color: #b8bbd6; padding: 90px 0 70px;
}
.page-hero h1 { color: #fff; max-width: 880px; }
.page-hero .lead { color: #b8bbd6; }
.breadcrumb { font-size: .85rem; color: #8a8eb0; margin-bottom: 18px; }
.breadcrumb a { color: #b8bbd6; text-decoration: none; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: box-shadow .2s, transform .2s, border-color .2s; position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .link-arrow { display: inline-block; margin-top: 16px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(235,22,0,.1), rgba(255,147,79,.15));
  color: var(--red); font-size: 1.35rem; margin-bottom: 18px;
}
.section--dark .card { background: var(--navy-700); border-color: rgba(255,255,255,.07); }
.section--dark .card p { color: #aeb1cc; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--navy-600); margin-bottom: 14px;
}
.tag--hot { background: rgba(235,22,0,.1); color: var(--red); }

/* Case study cards */
.story {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 28px;
}
.story-body { padding: 40px; }
.story-body h3 { font-size: 1.45rem; }
.story-steps { display: grid; gap: 14px; margin: 20px 0; }
.story-steps div { padding-left: 16px; border-left: 3px solid var(--line); }
.story-steps b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-600); }
.story-steps p { color: var(--muted); margin: 4px 0 0; }
.story-results { background: var(--navy-800); color: #c9cbe0; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.story-results h4 { color: var(--orange); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.metric { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.metric:last-of-type { border-bottom: 0; }
.metric strong { font-size: 2.4rem; color: #fff; font-weight: 700; display: block; line-height: 1.1; }
.metric span { font-size: .92rem; color: #aeb1cc; }
.results-list { list-style: none; padding: 0; margin: 0; }
.results-list li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
.results-list li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* Pillars / layers */
.pillars { counter-reset: p; }
.pillar { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pillar::before {
  counter-increment: p; content: "0" counter(p); display: block; font-weight: 700;
  font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; margin-bottom: 10px;
}
.pillar p { color: var(--muted); margin: 0; }

/* Split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 34px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700;
}
.panel { background: var(--bg-soft); border-radius: var(--radius); padding: 36px; }
.panel--dark { background: var(--navy-800); color: #c9cbe0; }
.panel--dark h3 { color: #fff; }
.quote {
  font-size: 1.35rem; font-weight: 500; color: var(--navy-900); line-height: 1.5;
  border-left: 4px solid var(--red); padding-left: 24px; margin: 0;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: grid; place-items: center; font-weight: 700;
  font-size: .9rem; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* FAQ / notice */
.notice {
  border: 1px solid #f3d3b8; background: #fff8f2; border-radius: var(--radius); padding: 28px 32px;
}
.notice h3 { margin-bottom: .4em; }
.notice p { margin: 0; color: #6b5444; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--red); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Article */
.article { max-width: 760px; margin: 0 auto; font-size: 1.07rem; }
.article p { color: #3a3e52; }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.author { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; color: #b8bbd6; font-size: .92rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; }

/* Industry rows */
.industry { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); }
.industry:last-child { border-bottom: 0; }
.industry h2 { font-size: 1.7rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { font-size: .85rem; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); color: var(--navy-600); font-weight: 500; }
.proof-box { margin-top: 20px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--bg-warm); border-left: 4px solid var(--orange); }
.proof-box b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 4px; }
.proof-box p { margin: 0; color: var(--muted); }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius-sm); background: #ecfbf1; color: #146c3a; font-weight: 500; }

/* CTA band */
.cta-band {
  background: radial-gradient(700px 300px at 100% 0%, rgba(255,147,79,.3), transparent 60%), var(--navy-900);
  border-radius: 22px; padding: 64px; color: #b8bbd6; text-align: center;
}
.cta-band h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 680px; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-800); color: #8a8eb0; padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aeb1cc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-tagline { margin-top: 16px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; background: var(--navy-800); padding: 12px 16px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .split, .story, .industry, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .section { padding: 72px 0; }
  .industry { gap: 12px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-4, .steps, .form { grid-template-columns: 1fr; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .story-body, .story-results, .cta-band { padding: 28px; }
  .hero { padding: 80px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
