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

:root {
  --teal: #0F6E56;
  --teal2: #1D9E75;
  --teal-dark: #085041;
  --ink: #0A1F1A;
  --ink2: #123B30;
  --accent: #E1F5EE;
  --glow: #34D399;
  --warn: #BA7517;
  --err: #E24B4A;
  --accent-blue: #2F6FED;
  --accent-purple: #7C5CFC;
  --accent-amber: #E8A33D;
  --bg: #F1EFE8;
  --card: #E4E3DD;
  --text: #1a1a18;
  --text-sec: #5F5E5A;
  --border: #E5E3DC;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* ── Background dot-grid texture ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 110, 86, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, black 35%, transparent 85%);
}

/* ── Background glow blobs ── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}

.bg-glow-2 {
  width: 460px; height: 460px;
  top: 640px; left: -160px;
  background: radial-gradient(circle, var(--teal2), transparent 70%);
  opacity: 0.22;
}

.bg-glow-3 {
  width: 400px; height: 400px;
  bottom: -80px; left: 12%;
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
  opacity: 0.16;
}

.bg-glow-4 {
  width: 440px; height: 440px;
  bottom: 260px; right: -150px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  opacity: 0.16;
}

/* ── Reusable circuit-board texture (tileable SVG, no external assets) ── */
.tech-circuit-bg {
  position: relative;
}

.tech-circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%20viewBox='0%200%20200%20200'%3E%3Cg%20fill='none'%20stroke='%230F6E56'%20stroke-opacity='0.12'%20stroke-width='1.5'%3E%3Cpath%20d='M20%2020h60v40h50'/%3E%3Cpath%20d='M20%2020v100h40'/%3E%3Cpath%20d='M140%2020v60h40v80'/%3E%3Cpath%20d='M60%20160h80v-30'/%3E%3Cpath%20d='M0%20100h20M180%20140h20M100%200v20M100%20180v20'/%3E%3C/g%3E%3Cg%20fill='%230F6E56'%20fill-opacity='0.16'%3E%3Ccircle%20cx='20'%20cy='20'%20r='3'/%3E%3Ccircle%20cx='80'%20cy='60'%20r='3'/%3E%3Ccircle%20cx='140'%20cy='20'%20r='3'/%3E%3Ccircle%20cx='180'%20cy='80'%20r='3'/%3E%3Ccircle%20cx='60'%20cy='160'%20r='3'/%3E%3Ccircle%20cx='140'%20cy='130'%20r='3'/%3E%3Ccircle%20cx='20'%20cy='120'%20r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

.tech-circuit-bg > * { position: relative; z-index: 1; }

/* ── Reusable faint "code lines" texture ── */
.code-lines-bg {
  position: relative;
}

.code-lines-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(15, 110, 86, 0.05) 0px,
    rgba(15, 110, 86, 0.05) 2px,
    transparent 2px,
    transparent 26px
  );
  pointer-events: none;
  z-index: 0;
}

.code-lines-bg > * { position: relative; z-index: 1; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(10, 31, 26, 0.05);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-sec);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

.nav-app-link {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.nav-app-link:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Shared ── */
section { padding: 5.5rem 0; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal2);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.25);
}

.text-gradient {
  background: linear-gradient(100deg, var(--teal2), var(--teal-dark) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--teal); color: white; box-shadow: 0 10px 24px rgba(15, 110, 86, 0.25); }
.btn-primary:hover { background: var(--teal-dark); }

.btn-outline { background: transparent; color: var(--teal-dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--teal); background: var(--card); }

.btn-light { background: white; color: var(--ink); }
.btn-light:hover { background: var(--accent); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.section-head p { color: var(--text-sec); font-size: 1.05rem; }

/* ── Hero ── */
.hero {
  padding: 3rem 0 5rem;
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(170deg, rgba(6, 12, 26, 0.45) 0%, rgba(6, 12, 26, 0.72) 55%, rgba(6, 12, 26, 0.9) 100%),
    url('assets/photo-code.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  color: white;
}

.hero .container { position: relative; z-index: 1; }

.hero .eyebrow { background: rgba(255, 255, 255, 0.14); color: white; }

.hero .text-gradient {
  background: linear-gradient(100deg, var(--glow), var(--teal2) 75%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); }

.hero .hero-stats { border-top-color: rgba(255, 255, 255, 0.2); }
.hero .hero-stat strong { color: white; }
.hero .hero-stat span { color: rgba(255, 255, 255, 0.65); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  font-size: 1.12rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.hero-stat strong {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-stat span { font-size: 0.82rem; color: var(--text-sec); max-width: 140px; }

/* ── Hero visual: phone mock + floating cards ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.phone-mock {
  position: relative;
  width: 240px;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(10, 31, 26, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotate(4deg);
  animation: float 6s ease-in-out infinite;
}

.phone-mock img {
  border-radius: 24px;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-14px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 16px 32px rgba(10, 31, 26, 0.12);
  max-width: 230px;
  animation: float2 7s ease-in-out infinite;
}

.float-card strong { display: block; font-size: 0.85rem; font-weight: 700; }
.float-card span { font-size: 0.78rem; color: var(--text-sec); }
.fc-icon { font-size: 1.3rem; flex-shrink: 0; }

.float-card-top { top: 6%; left: -4%; animation-delay: 0.5s; }
.float-card-bottom { bottom: 8%; right: -6%; animation-delay: 1.2s; }

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── Hero AI/network graphic ── */
.network-graphic {
  position: absolute;
  top: -12%; left: -12%;
  width: 124%; height: 124%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.net-lines line {
  stroke: var(--teal2);
  stroke-width: 1.5;
  opacity: 0.35;
}

.node {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 6px currentColor);
  animation: nodePulse 3.2s ease-in-out infinite;
}

.node-a, .node-e { fill: var(--teal2); color: var(--teal2); }
.node-b { fill: var(--teal2); color: var(--teal2); animation-delay: 0.3s; }
.node-c, .node-f { fill: var(--accent-blue); color: var(--accent-blue); animation-delay: 0.9s; }
.node-d, .node-g { fill: var(--accent-purple); color: var(--accent-purple); animation-delay: 1.6s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* ── Chip/processor decorative graphic (used on the Products page header) ── */
.chip-graphic {
  position: absolute;
  top: -8%; right: -6%;
  width: 70%; height: 70%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.chip-graphic .chip-body {
  fill: none;
  stroke: var(--teal2);
  stroke-width: 1.5;
  opacity: 0.4;
}

.chip-graphic .chip-pin {
  stroke: var(--teal2);
  stroke-width: 1.5;
  opacity: 0.3;
}

.chip-graphic .chip-pad {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 5px currentColor);
  animation: nodePulse 3.6s ease-in-out infinite;
}

.chip-graphic .chip-pad:nth-child(4n+1) { fill: var(--teal2); color: var(--teal2); animation-delay: 0s; }
.chip-graphic .chip-pad:nth-child(4n+2) { fill: var(--accent-blue); color: var(--accent-blue); animation-delay: 0.5s; }
.chip-graphic .chip-pad:nth-child(4n+3) { fill: var(--accent-purple); color: var(--accent-purple); animation-delay: 1s; }
.chip-graphic .chip-pad:nth-child(4n) { fill: var(--accent-amber); color: var(--accent-amber); animation-delay: 1.5s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy p { max-width: none; }
  .hero-visual { min-height: 380px; margin-top: 1rem; }
  .float-card { max-width: 190px; padding: 0.65rem 0.85rem; }
  .float-card-top { left: 0; }
  .float-card-bottom { right: 0; }
}

/* ── Marquee ── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  padding: 1.1rem 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sec);
  white-space: nowrap;
}

.marquee-track span:nth-child(3n+1) { color: var(--teal2); }
.marquee-track span:nth-child(3n+2) { color: var(--accent-blue); }
.marquee-track span:nth-child(3n) { color: var(--accent-purple); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .phone-mock, .float-card, .node, .chip-pad { animation: none; }
}

/* ── Dark services section (cable-rack photo) ── */
.services-dark {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(8, 26, 21, 0.88) 0%, rgba(8, 26, 21, 0.94) 100%),
    url('assets/photo-cables.jpg');
  background-size: cover;
  background-position: center;
}

.services-dark .section-head .eyebrow { background: rgba(255, 255, 255, 0.14); color: white; }
.services-dark .section-head h2 { color: white; }
.services-dark .section-head p { color: rgba(255, 255, 255, 0.75); }

.services-dark .bento-card {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

/* ── Bento services grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 31, 26, 0.08);
  border-color: var(--teal2);
}

.bento-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.bento-wide { grid-column: span 3; display: flex; align-items: center; gap: 1.5rem; }
.bento-wide h3 { margin-bottom: 0; }
.bento-wide p { margin: 0; }

.bento-card .icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.bento-wide .icon { margin-bottom: 0; }

.bento .bento-card:nth-child(2) .icon { background: #E3ECFD; }
.bento .bento-card:nth-child(3) .icon { background: #F0E9FE; }
.bento .bento-card:nth-child(4) .icon { background: #FDF0DC; }

.bento-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.bento-card p { color: var(--text-sec); font-size: 0.95rem; }

.bento-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.bento-tags li {
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .bento-wide { grid-column: span 2; flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
}

/* ── Work items ── */
.work-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.work-item + .work-item { border-top: 1px solid var(--border); }

.work-item.reverse .work-media { order: 2; }
.work-item.reverse .work-body { order: 1; }

.work-index {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal2);
  margin-bottom: 0.8rem;
}

.project-media {
  background: var(--teal);
  border-radius: var(--radius);
  padding: 2.2rem 2rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.9rem;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 34px);
  pointer-events: none;
}

.project-media img {
  width: 120px;
  border-radius: 14px 14px 0 0;
  border: 4px solid rgba(255,255,255,0.15);
  border-bottom: none;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}

.project-media.mock {
  background: linear-gradient(135deg, var(--teal2), var(--teal-dark));
  align-items: center;
  min-height: 260px;
}

.mock-calendar {
  width: 220px;
  background: var(--card);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.mock-calendar .mc-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sec);
  margin-bottom: 0.5rem;
}

.mock-calendar .mc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mock-calendar .mc-cell { height: 20px; border-radius: 4px; background: var(--bg); }
.mock-calendar .mc-cell.on { background: var(--teal2); }
.mock-calendar .mc-cell.warn { background: #FAEEDA; }
.mock-calendar .mc-cell.on2 { background: var(--teal); }

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.9rem;
}

.project-badge.live { background: var(--accent); color: var(--teal-dark); }
.project-badge.dev { background: #FAEEDA; color: var(--warn); }

.work-body h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.7rem; }
.work-body .soon { font-weight: 500; font-size: 0.85rem; color: var(--text-sec); }
.work-body p.desc { color: var(--text-sec); font-size: 1rem; margin-bottom: 1.2rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }

.tag {
  font-size: 0.78rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-sec);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.project-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-links a:hover .arrow { transform: translateX(3px); }

@media (max-width: 860px) {
  .work-item, .work-item.reverse { grid-template-columns: 1fr; }
  .work-item.reverse .work-media, .work-item.reverse .work-body { order: initial; }
}

/* ── Process ── */
.process { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--teal2), var(--border));
  z-index: 0;
}

.process-step { position: relative; z-index: 1; }

.process-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

.process-step:nth-child(2) .num { background: var(--accent-blue); }
.process-step:nth-child(3) .num { background: var(--accent-purple); }
.process-step:nth-child(4) .num { background: var(--accent-amber); }

.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.92rem; color: var(--text-sec); }

@media (max-width: 700px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
}

/* ── CTA band ── */
.cta-band {
  background-image:
    radial-gradient(120% 160% at 20% 0%, rgba(18, 59, 48, 0.93), rgba(10, 31, 26, 0.95) 60%),
    url('assets/photo-datacenter.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(52, 211, 153, 0.09) 0px, rgba(52, 211, 153, 0.09) 1px, transparent 1px, transparent 46px),
    radial-gradient(circle at 15% 25%, rgba(124, 92, 252, 0.35), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(47, 111, 237, 0.32), transparent 42%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 0;
}

/* ── Trust band (team photo) ── */
.trust-band {
  position: relative;
  background-image:
    linear-gradient(100deg, rgba(10, 31, 26, 0.92) 15%, rgba(10, 31, 26, 0.72) 55%, rgba(10, 31, 26, 0.35) 100%),
    url('assets/photo-team.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5.5rem 0;
}

.trust-inner {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.trust-inner .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.trust-inner h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.trust-inner > p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.trust-points {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-point .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-point strong { display: block; font-size: 0.98rem; font-weight: 700; }
.trust-point span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 700px) {
  .trust-band {
    padding: 4rem 0;
    background-image:
      linear-gradient(180deg, rgba(10, 31, 26, 0.75) 0%, rgba(10, 31, 26, 0.93) 55%),
      url('assets/photo-team.jpg');
  }
  .trust-inner { max-width: 100%; }
}

.cta-band h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 2.2rem;
}

/* ── Contact ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.contact-info p { color: var(--text-sec); margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-detail .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail a { font-weight: 600; color: var(--teal-dark); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(10, 31, 26, 0.06);
}

.form-row { margin-bottom: 1.1rem; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-sec);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.form-note { font-size: 0.8rem; color: var(--text-sec); margin-top: 0.8rem; text-align: center; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 2rem;
}

.footer-links { display: flex; gap: 1.5rem; list-style: none; font-size: 0.85rem; }
.footer-links a { text-decoration: none; color: var(--text-sec); }
.footer-links a:hover { color: var(--teal); }

.footer-copy { font-size: 0.85rem; color: var(--text-sec); }

.footer-mark {
  font-size: clamp(4rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  color: white;
  line-height: 1;
  user-select: none;
}

/* ── QA banner (offline preview only) ── */
.qa-banner {
  background: var(--warn);
  color: white;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  position: relative;
  z-index: 60;
}

/* ── Responsive nav ── */
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--card);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  }
  .nav-cta { display: none; }
  .nav.open .nav-cta { display: inline-block; margin-top: 0.5rem; }
  .nav-app-link { display: none; }
}

/* ── Page header (Products page hero-style banner) ── */
.page-header {
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header-inner {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.page-header .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.page-header h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.page-header p {
  color: var(--text-sec);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 31, 26, 0.08);
  border-color: var(--teal2);
}

.product-card.placeholder {
  border-style: dashed;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-sec);
  min-height: 260px;
}

.product-card.placeholder strong {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.product-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.product-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.product-card .desc { color: var(--text-sec); font-size: 0.96rem; margin-bottom: 1.2rem; flex-grow: 1; }

.product-card .tag-row { margin-bottom: 1.3rem; }

.product-card .project-links { margin-top: auto; }

@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
}
