/* ============================================================
   Intacle Technologies — site stylesheet
   Palette drawn from the Intacle logo:
   navy #2D3142 · teal #1EA9BE · sky #96CDE1
   ============================================================ */

:root {
  --ink: #1D2432;        /* deep hero / footer background */
  --navy: #2D3142;       /* logo navy */
  --navy-soft: #3A4157;
  --teal: #1EA9BE;
  --teal-dark: #14808F;
  --teal-glow: rgba(30, 169, 190, 0.16);
  --sky: #96CDE1;
  --mist: #F3F7FA;       /* light section background */
  --paper: #FFFFFF;
  --line: #DEE7EE;
  --line-dark: rgba(150, 205, 225, 0.18);
  --slate: #55657A;      /* secondary text on light */
  --cloud: #B9C6D2;      /* secondary text on dark */
  --radius: 14px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.01em; }

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }

.accent { color: var(--teal); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
  display: inline-block;
}

.lede { font-size: 1.13rem; color: var(--slate); max-width: 62ch; }
.on-dark .lede { color: var(--cloud); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--line-dark); color: var(--sky); background: transparent; }
.btn-ghost:hover { border-color: var(--sky); color: #fff; }
.btn-ghost-light { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost-light:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-rings { width: 44px; height: 40px; flex-shrink: 0; }
.brand-text { line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #F4F8FB;
  letter-spacing: 0.01em;
}
.brand-name .accent { color: var(--teal); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--cloud);
  text-transform: lowercase;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a {
  color: var(--cloud);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: rgba(150, 205, 225, 0.08); }

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 6px;
  color: var(--teal);
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(29, 36, 50, 0.22);
  list-style: none;
  padding: 8px;
  display: none;
  z-index: 70;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { display: block; }
.dropdown a {
  color: var(--navy);
  padding: 11px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dropdown a:hover { background: var(--mist); color: var(--navy); }
.dropdown .d-title { font-weight: 600; font-size: 0.93rem; }
.dropdown .d-desc { font-size: 0.8rem; color: var(--slate); font-weight: 400; }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--sky);
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% 10%, rgba(30, 169, 190, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 420px at 5% 90%, rgba(150, 205, 225, 0.08), transparent 60%),
    var(--ink);
  color: #F4F8FB;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: #F4F8FB; margin: 0 0 20px; }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

.hero-meta {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cloud);
}
.hero-meta span::before { content: "▸ "; color: var(--teal); }

/* packet animation along integration lines */
.packet { animation: packet-move 3.2s linear infinite; }
.packet.p2 { animation-delay: 1.1s; }
.packet.p3 { animation-delay: 2.2s; }
@keyframes packet-move {
  from { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  to   { offset-distance: 100%; opacity: 0; }
}
.pulse-ring { animation: pulse-ring 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse-ring {
  0% { opacity: 0.7; transform: scale(0.9); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .packet, .pulse-ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #F4F8FB; }
.section-ink h2 { color: #F4F8FB; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.section-ink .section-head p { color: var(--cloud); }

/* capability cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(29, 36, 50, 0.1);
  border-color: rgba(30, 169, 190, 0.45);
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal-dark); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: var(--slate); }

/* solution cards on home */
.card.link-card { display: flex; flex-direction: column; }
.card .card-link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.card .card-link:hover { color: var(--teal); }
.card .card-link::after { content: "→"; transition: transform 0.15s ease; }
.card .card-link:hover::after { transform: translateX(3px); }

/* benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 40px;
}
.benefit { border-top: 3px solid var(--teal); padding-top: 18px; }
.benefit h3 { margin-bottom: 8px; }
.benefit p { font-size: 0.94rem; color: var(--slate); }
.section-ink .benefit p { color: var(--cloud); }
.section-ink .benefit { border-top-color: var(--teal); }

/* approach steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-dark);
  background: var(--teal-glow);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--slate); }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal);
}
.stat-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cloud); }

/* CTA banner */
.cta-banner {
  background:
    radial-gradient(ellipse 700px 300px at 90% 20%, rgba(30, 169, 190, 0.22), transparent 65%),
    var(--navy);
  border-radius: 20px;
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #F4F8FB;
}
.cta-banner h2 { color: #F4F8FB; max-width: 26ch; margin-bottom: 10px; }
.cta-banner p { color: var(--cloud); max-width: 52ch; }

/* related links */
.related-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}
.related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 500;
  border: 1px solid transparent;
}
.related-list a:hover { background: var(--mist); border-color: var(--line); color: var(--teal-dark); }
.related-list a::before { content: "➜"; color: var(--teal); font-size: 0.85em; }

/* two-column feature rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .lede { margin-bottom: 20px; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.check-list li::before {
  content: "✓";
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 3px;
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }

.office {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 18px;
  margin-bottom: 26px;
}
.office h3 { margin-bottom: 4px; }
.office p { color: var(--slate); font-size: 0.95rem; }
.office .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--teal-dark);
  background: var(--teal-glow);
  padding: 2px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 8px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 14px 40px rgba(29, 36, 50, 0.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}
.alert.show { display: block; }
.alert-ok { background: #E6F6EC; border: 1px solid #9ED8B4; color: #1E6B3C; }
.alert-err { background: #FBEAEA; border: 1px solid #E7A6A6; color: #8A2323; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cloud);
  padding: 68px 0 0;
  border-top: 3px solid var(--teal);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { width: 190px; margin-bottom: 20px; }
.footer-blurb { font-size: 0.92rem; max-width: 40ch; margin-bottom: 22px; }
.footer-office { font-size: 0.88rem; margin-bottom: 14px; }
.footer-office strong { color: #F4F8FB; font-family: var(--font-display); font-size: 0.85rem; }
.footer-office span { display: block; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--cloud); font-size: 0.92rem; }
.site-footer ul a:hover { color: #fff; }
.footer-email { color: var(--teal); font-family: var(--font-mono); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .card-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 24px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .dropdown {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    border: none;
    padding-left: 14px;
    min-width: 0;
  }
  .dropdown a { color: var(--cloud); }
  .dropdown a:hover { background: rgba(150, 205, 225, 0.08); color: #fff; }
  .dropdown .d-desc { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .card-grid, .benefit-grid, .steps, .form-row, .related-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 68px; }
  .section { padding: 60px 0; }
  .contact-card { padding: 26px 20px; }
}
