/* ==========================================================================
   d-shellcreator — styles
   ========================================================================== */

:root {
  --ink: #101c29;
  --ink-2: #182a3a;
  --muted: #596574;
  --orange: #f47837;
  --orange-deep: #b94d18;
  --paper: #f5f6f5;
  --line: #dce1e4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, Arial, sans-serif;
  color: var(--ink);
  background: white;
}

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

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: auto; padding: 0 5%; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: white;
  border-bottom: 1px solid #ffffff24;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.6px;
  white-space: nowrap;
}

.brand b { color: var(--orange); }

.navlinks { display: flex; gap: 28px; font-size: 14px; }

.navlinks a { opacity: .85; transition: opacity .15s; }
.navlinks a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid #ffffff44;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 750;
  border: 0;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: filter .15s;
}

.btn:hover { filter: brightness(1.07); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { background: var(--ink); color: white; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  min-height: 570px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
}

h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -3px;
  margin: 22px 0;
}

h1 em { color: var(--orange); font-style: normal; }

p { margin: 0 0 20px; }

.hero p { color: #bdc7d1; max-width: 490px; font-size: 18px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.visual { position: relative; min-width: 0; }

.visual svg { width: 100%; height: auto; display: block; }

.visual .tag {
  position: absolute;
  bottom: 4%;
  left: 0;
  background: var(--ink-2);
  border: 1px solid #344b5d;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 12px;
  color: #d5e1ea;
}

.tag strong { display: block; color: white; font-size: 16px; }

/* ==========================================================================
   Solution detail pages (shown via the hash router in js/main.js)
   ========================================================================== */

.detail-page { display: none; padding: 0; }
.detail-page.active { display: block; }

.detail-hero {
  background: var(--ink);
  color: white;
  padding: 52px 0 65px;
}

.detail-back {
  display: inline-block;
  color: #c5d0da;
  font-size: 13px;
  margin-bottom: 24px;
}

.detail-back:hover { color: var(--orange); }

.detail-hero h1 { font-size: clamp(42px, 5vw, 66px); margin: 14px 0; }

.detail-hero .tagline {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.7px;
  margin: 0 0 16px;
}

.detail-hero p { color: #bdc7d1; max-width: 720px; font-size: 18px; }

.detail-screen { padding: 48px 0 64px; background: #f3f6f9; }

.screen-frame {
  background: white;
  border: 1px solid #d5dee6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px #14243618;
  margin-top: 25px;
}

.screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  background: #e8edf2;
  border-bottom: 1px solid #d5dee6;
  font-size: 12px;
  color: #485c70;
  font-weight: 650;
}

.screen-dots { display: flex; gap: 5px; }

.screen-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aabba;
}

.screen-dots i:first-child { background: var(--orange); }

.screen-frame img { display: block; width: 100%; height: auto; }

.screen-caption { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.feature-grid article {
  border: 1px solid #dce4ec;
  padding: 24px;
  border-radius: 8px;
}

.feature-grid h3 { margin: 12px 0 8px; font-size: 20px; }
.feature-grid p { color: var(--muted); font-size: 15px; margin: 0; }

.detail-features { padding: 60px 0; }

.detail-cta {
  background: var(--ink);
  color: white;
  padding: 48px 0;
}

.detail-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-cta h2 { font-size: 32px; margin: 0; }
.detail-cta p { color: #bdc7d1; margin: 8px 0 0; }

/* ==========================================================================
   Keyword strip
   ========================================================================== */

.strip { background: #e9edec; padding: 20px 0; }

.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Sections
   ========================================================================== */

section { padding: 88px 0; }

h2 {
  font-size: clamp(30px, 4vw, 47px);
  letter-spacing: -1.8px;
  line-height: 1.13;
  margin: 12px 0 20px;
}

.intro { max-width: 650px; color: var(--muted); }

/* ---- Customers ---- */

.customers {
  background: white;
  border-bottom: 1px solid #e2e6e8;
  padding: 58px 0;
}

.customers .eyebrow,
.customers h2,
.customers .intro { text-align: center; }

.customers h2 { font-size: clamp(28px, 3vw, 38px); margin: 10px 0 12px; }
.customers .intro { margin: 0 auto 30px; }

.customer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.customer-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8f9f9;
  text-align: center;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -.4px;
  overflow-wrap: break-word;
  transition: border-color .2s;
}

.customer-name:hover { border-color: var(--orange); }

/* ---- Solution cards ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 27px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
  background: white;
}

.card:hover { border-color: var(--orange); transform: translateY(-3px); }

.card .num {
  font-size: 12px;
  color: #a04920;
  font-weight: 750;
  letter-spacing: 1px;
}

.card h3 {
  font-size: 23px;
  line-height: 1.15;
  margin: 22px 0 10px;
  letter-spacing: -.6px;
}

.card p { color: var(--muted); font-size: 15px; }

.card a { margin-top: auto; font-size: 14px; font-weight: 700; }
.card a span { color: var(--orange-deep); }

/* ---- Card preview images ---- */

.solution-preview {
  display: block;
  margin: -12px -12px 0;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f6f9;
  aspect-ratio: 1200 / 760;
}

.solution-preview img { display: block; width: 100%; height: auto; }

.card { min-height: 0; }
.card .num { margin-top: 16px; }
.card h3 { margin-top: 16px; }

.preview-note {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .3px;
  color: #637284;
  margin: 6px 0 0;
}

/* ---- Industries / benefits ---- */

.benefits { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.benefit { border-top: 1px solid #ccd3d8; padding: 18px 0; }
.benefit strong { font-size: 18px; }
.benefit p { color: var(--muted); margin: 5px 0 0; }

/* ---- Approach ---- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 35px;
}

.step { border-top: 2px solid var(--orange); padding: 20px 0; }
.step small { color: #a04920; font-weight: 700; }
.step h3 { margin: 8px 0; }
.step p { color: var(--muted); font-size: 14px; }

/* ---- Contact / CTA ---- */

.cta { background: var(--ink); color: white; }
.cta p { color: #bdc7d1; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.contact-form {
  display: none;
  background: var(--paper);
  padding: 30px;
  border-radius: 8px;
  color: var(--ink);
  margin-top: 25px;
}

.contact-form:target { display: block; }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #b8c1c9;
  border-radius: 4px;
  font: inherit;
}

.contact-form textarea { min-height: 100px; }

.contact-form .btn { margin-top: 15px; }

.form-notice { color: #425363; margin: 10px 0 0; font-size: 14px; min-height: 1.4em; }
.form-notice.ok { color: #1c7c40; font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 25px 0;
  background: #0b1420;
  color: #b9c4cf;
  font-size: 13px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand { font-size: 20px; color: white; }

/* ==========================================================================
   Scroll-reveal animation (skipped when reduced motion is preferred)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 800px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid #ffffff24;
    flex-direction: column;
    gap: 4px;
    padding: 10px 5% 20px;
  }

  .navlinks.open { display: flex; }
  .navlinks a { padding: 10px 0; font-size: 15px; }

  .hero-inner,
  .split { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { padding-top: 55px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .cta-row { display: block; }
  .customer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customers { padding: 45px 0; }

  section { padding: 60px 0; }
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .detail-cta .wrap { display: block; }
  .detail-cta .btn { margin-top: 20px; }
  .screen-bar { font-size: 10px; }
  .detail-screen { padding: 38px 0; }
  .detail-hero { padding: 36px 0 45px; }
  .screen-frame { overflow-x: auto; }
  .screen-frame img { min-width: 680px; }
  .screen-caption { font-size: 12px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .brand { font-size: 21px; }
  .nav-cta { display: inline-flex; padding: 10px 12px; }
  h1 { letter-spacing: -2px; }
  .process { grid-template-columns: 1fr; }
  .customer-grid { gap: 10px; }
  .customer-name { font-size: 16px; min-height: 90px; padding: 12px 8px; }
}
