/* ============================================================
   CodeDijk — design tokens
   Palette pulled from the mark: near-black ground, signal-orange,
   and a pale glass-teal reserved for the glass-industry section.
   ============================================================ */
:root {
  --ink: #0a0e17;
  --ink-raised: #10151f;
  --paper: #f2f4f7;
  --muted: #9aa4b2;
  --line: rgba(242, 244, 247, 0.12);
  --amber: #f2851d;
  --amber-deep: #c96812;
  --glass: #9fe0d8;
  --glass-dim: rgba(159, 224, 216, 0.14);
  --radius: 4px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { max-width: 62ch; color: var(--muted); }

::selection { background: var(--amber); color: var(--ink); }

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

/* ---------------- nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
}
.brand img { height: 30px; width: auto; }
.brand b { color: var(--amber); font-weight: 500; }

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--paper); }

.nav-cta {
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--paper) !important;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { border-color: var(--amber); background: rgba(242, 133, 29, 0.08); }

.nav-toggle { display: none; }

/* ---------------- hero ---------------- */
.hero {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--amber);
  font-size: 0.95rem;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  color: var(--paper);
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.98rem;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: #1a0d02; font-weight: 600; }
.btn-primary:hover { background: #ff9a34; }
.btn-ghost { border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--muted); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-panel {
  position: absolute;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.hero-panel.p1 {
  inset: 6%;
  background: linear-gradient(160deg, rgba(242,133,29,0.10), rgba(242,133,29,0) 60%);
}
.hero-panel.p2 {
  inset: 16% 22% 22% 16%;
  background: linear-gradient(200deg, rgba(159,224,216,0.10), rgba(159,224,216,0) 65%);
  backdrop-filter: blur(2px);
}
.hero-mark {
  position: relative;
  width: 62%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45));
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.15s forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------------- section shell ---------------- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 58ch; margin-bottom: 56px; }
.section-kicker { color: var(--amber); font-size: 0.95rem; margin: 0 0 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--paper); }
.section-head p { margin-top: 14px; }

/* ---------------- services ---------------- */
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-mark { display: flex; gap: 4px; align-items: center; height: fit-content; padding-top: 6px; }
.service-mark span { display: block; height: 3px; width: 20px; background: var(--amber); border-radius: 2px; }
.service-mark span:nth-child(2) { width: 12px; background: var(--paper); opacity: 0.5; }
.service-row h3 { font-size: 1.25rem; color: var(--paper); margin-bottom: 10px; }
.service-row p { max-width: 60ch; }

/* ---------------- industries ---------------- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.industry-card {
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.industry-card .tag {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.industry-card h3 { font-size: 1.35rem; color: var(--paper); }
.industry-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.industry-card li { margin-bottom: 8px; }

.industry-card.current {
  background: var(--ink-raised);
  border: 1px solid var(--line);
}
.industry-card.current .tag { color: var(--amber); }

.industry-card.target {
  background: linear-gradient(155deg, rgba(159,224,216,0.10), rgba(159,224,216,0.02));
  border: 1px solid rgba(159, 224, 216, 0.28);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.industry-card.target::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 140%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 55%);
  transform: rotate(8deg);
  pointer-events: none;
}
.industry-card.target .tag { color: var(--glass); }

/* ---------------- approach ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--amber);
  padding-top: 18px;
}
.step .num {
  counter-increment: step;
  font-family: var(--font-display);
  color: var(--amber);
  font-size: 1.6rem;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-top: 10px; color: var(--paper); font-size: 1.1rem; }
.step p { margin-top: 8px; font-size: 0.98rem; }

/* ---------------- contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { color: var(--muted); font-size: 0.92rem; }
.contact-list .v { color: var(--paper); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--amber); }

.contact-cta {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px;
}
.contact-cta h2 { color: var(--paper); font-size: 1.7rem; max-width: 14ch; }
.contact-cta p { margin-top: 12px; }

/* ---------------- footer ---------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--paper); }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 40px auto 0; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .industries-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cta { padding: 30px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
}
