/* Digibyte Kraft IT Solutions — Design System */
:root {
  --navy: #0f1b3d;
  --navy-700: #1e3a5f;
  --navy-50: #e8edf3;
  --orange: #3b6fa0;        /* accent (kept name to minimize diff) */
  --orange-600: #2f5a85;
  --off: #f4f6fa;
  --ink: #0f1b3d;
  --muted: #5a6b80;
  --line: #d6dde6;
  --white: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 6px 18px rgba(15,27,61,0.06);
  --shadow-lg: 0 18px 48px rgba(15,27,61,0.14);
  --container: 1200px;
  --display: "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-600); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-tight { padding: 56px 0; }
.section.dark { background: var(--navy); color: var(--white); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark p { color: rgba(255,255,255,0.82); }
.section.tinted { background: var(--off); }

.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .18em; color: var(--orange); text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 6px; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .02em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; border: none; text-transform: none; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 4px 12px rgba(15,27,61,0.18); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-arrow::after { content: "→"; }
.btn-lg { padding: 13px 22px; font-size: .9rem; }

/* Header */
.topbar { background: var(--navy); color: var(--white); font-size: .78rem; padding: 5px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--orange); }

.header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; gap: 20px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; background: var(--navy); border-radius: 6px; display: grid; place-items: center; color: white; font-weight: 700; font-size: .85rem; }
.brand small { display: block; font-size: .58rem; letter-spacing: .14em; color: var(--muted); font-weight: 500; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; list-style: none; }
.nav-list { display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-family: var(--display); font-weight: 500; font-size: .82rem; color: var(--navy); border-radius: 6px; cursor: pointer; letter-spacing: 0; }
.nav-link:hover, .nav-item:hover .nav-link { background: var(--navy-50); color: var(--navy); }
.nav-link .caret { font-size: .6rem; opacity: .6; }

.mega { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px; min-width: 560px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: block; padding: 8px 10px; color: var(--ink); border-radius: 6px; font-size: .85rem; font-weight: 500; }
.mega a:hover { background: var(--off); color: var(--navy); }
.mega .mega-title { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; font-size: .68rem; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; padding: 0 10px 6px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: 0; font-size: 1.25rem; color: var(--navy); cursor: pointer; padding: 4px 8px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 90vw); background: var(--white); transform: translateX(100%); transition: transform .25s ease; z-index: 200; box-shadow: var(--shadow-lg); overflow-y: auto; padding: 24px; }
.drawer.open { transform: translateX(0); }
.drawer-back { position: fixed; inset: 0; background: rgba(15,27,61,0.5); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 150; }
.drawer-back.open { opacity: 1; visibility: visible; }
.drawer details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.drawer summary { font-family: var(--display); font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.drawer summary::after { content: "+"; color: var(--orange); font-size: 1.2rem; }
.drawer details[open] summary::after { content: "−"; }
.drawer a { display: block; padding: 8px 0; color: var(--ink); font-size: .9rem; }
.drawer .top-links a { padding: 12px 0; font-family: var(--display); font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: var(--white); padding: 100px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(59,111,160,0.22), transparent 70%); border-radius: 50%; }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,0.8); }
.hero .eyebrow { color: var(--orange); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.hero-stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 18px; border-radius: 12px; backdrop-filter: blur(8px); }
.hero-stat strong { font-family: var(--display); font-size: 1.8rem; color: var(--orange); display: block; line-height: 1.1; }
.hero-stat span { font-size: .82rem; color: rgba(255,255,255,0.75); }
.hero-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.hero-card h3 { color: var(--navy); margin-bottom: 18px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Page hero (smaller, for interior pages) */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 50%; bottom: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(59,111,160,0.18), transparent 70%); border-radius: 50%; transform: translateX(-50%); }
.page-hero h1 { color: var(--white); position: relative; z-index: 1; max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,0.82); position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; position: relative; z-index: 1; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--orange); }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-50); color: var(--orange); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px; font-weight: 800; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 14px; }
.card a.more { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--orange); text-transform: uppercase; letter-spacing: .05em; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-row .stat strong { display: block; font-family: var(--display); font-size: 2.6rem; color: var(--orange); font-weight: 800; line-height: 1; }
.stat-row .stat span { color: var(--muted); font-size: .9rem; }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: center; opacity: .7; }
.logo-strip .logo { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.1rem; letter-spacing: .04em; padding: 8px 14px; border: 1px dashed var(--line); border-radius: 6px; }

/* Testimonials */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.testimonial p { font-size: 1.05rem; color: var(--ink); font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--navy)); color: white; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.testimonial .who strong { display: block; color: var(--navy); font-family: var(--display); }
.testimonial .who span { color: var(--muted); font-size: .85rem; }
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: 12px; }

/* Case studies */
.case-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card .case-img { height: 180px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); position: relative; display: grid; place-items: center; color: white; font-family: var(--display); font-weight: 700; font-size: 1.25rem; padding: 20px; text-align: center; }
.case-card .case-body { padding: 24px; }
.case-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.case-card .metric { font-family: var(--display); font-weight: 800; color: var(--orange); font-size: 1.6rem; margin: 6px 0; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.process .step { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); position: relative; }
.process .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 800; color: var(--orange); font-size: 1.6rem; margin-bottom: 10px; }
.process .step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process .step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 14px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: white; border-radius: var(--radius); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: white; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.cta-band .btn-primary:hover { background: var(--off); color: var(--navy); }

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--display); font-weight: 600; color: var(--navy); font-size: .85rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--body); font-size: .95rem; color: var(--ink); background: var(--white); transition: border-color .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { min-height: 140px; resize: vertical; }
.form-success { display: none; padding: 20px; background: #e8f5e9; border-radius: var(--radius-sm); color: #1b5e20; font-weight: 600; margin-bottom: 16px; }
.form-success.show { display: block; }
.field-error input, .field-error select, .field-error textarea { border-color: #d32f2f; }
.field-error small { color: #d32f2f; font-size: .8rem; display: block; margin-top: 4px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: repeat(2, 1fr); } }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); font-weight: 500; cursor: pointer; }
.check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }

/* Two column with image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual { background: linear-gradient(135deg, var(--navy-50), var(--off)); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 1.4rem; padding: 24px; text-align: center; position: relative; overflow: hidden; }
.split-visual::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 30% 30%, rgba(255,90,31,0.18), transparent 60%); }
.split-visual span { position: relative; z-index: 1; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 10px 0 10px 32px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; background: var(--orange); color: white; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 72px 0 24px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: white; font-family: var(--display); font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.footer a { color: rgba(255,255,255,0.7); display: block; padding: 5px 0; font-size: .9rem; }
.footer a:hover { color: var(--orange); }
.footer .brand { color: white; margin-bottom: 16px; }
.footer .brand small { color: rgba(255,255,255,0.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 50%; display: grid; place-items: center; padding: 0; color: white; }
.socials a:hover { background: var(--orange); color: white; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: white; font-family: var(--body); }
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button { padding: 12px 20px; border-radius: 999px; border: 0; background: var(--orange); color: white; font-family: var(--display); font-weight: 700; cursor: pointer; }

/* Misc */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; } .mb-56 { margin-bottom: 56px; }
.divider { height: 1px; background: var(--line); margin: 56px 0; }

/* Mobile */
@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4, .process { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .footer .container:has(> div:nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .nav-list { display: none; }
  .hamburger { display: block; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .grid-4, .process { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; flex-direction: column; align-items: flex-start; text-align: left; }
  .footer .container { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; }
}
