/* ===== Logicrit Technologies — one-page, full viewport ===== */
:root {
  --bg: #021619;
  --bg-2: #04242a;
  --teal: #1fcfb8;
  --teal-soft: #17a896;
  --amber: #f5a623;
  --text: #eaf4f2;
  --muted: #9db3b1;
  --line: rgba(31, 207, 184, 0.55);
  --line-dim: rgba(31, 207, 184, 0.22);
  --hair: rgba(31, 207, 184, 0.16);
  --pad-x: clamp(1.25rem, 6vw, 6rem);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(60% 70% at 72% 42%, rgba(18, 120, 112, 0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(10, 70, 70, 0.25), transparent 70%),
    linear-gradient(160deg, #03201f 0%, var(--bg) 55%, #011012 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.bg-grid {
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(31,207,184,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,207,184,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 30%, transparent 80%);
}

/* ---------- page grid: fills exactly one screen ---------- */
.page {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 0 var(--pad-x);
}

/* ---------- header ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: clamp(1rem, 4.2vh, 2.75rem);
}

.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-mark { width: clamp(38px, 3.4vw, 50px); height: auto; filter: drop-shadow(0 0 10px rgba(31,207,184,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: clamp(1.5rem, 2.3vw, 2.15rem); font-weight: 500; letter-spacing: -0.01em; }
.brand-color { color: var(--teal); }
.brand-sub { font-size: clamp(0.55rem, 0.75vw, 0.72rem); letter-spacing: 0.38em; text-transform: uppercase; color: #cfe2df; margin-top: 0.45rem; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3.2vw, 3rem); font-size: 0.95rem; }
.nav a { color: #d6e4e2; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a.is-active { font-weight: 500; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border: 1px solid var(--teal-soft);
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background .25s, border-color .25s;
}
.btn-outline svg { width: 14px; height: 14px; }
.btn-outline:hover { background: rgba(31,207,184,.1); border-color: var(--teal); }

.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.8rem;
  background: #0b7d72;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background .25s, transform .2s;
}
.btn-solid:hover { background: #086158; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: 0;
  gap: 2rem;
}

.hero-copy { align-self: center; padding: 2vh 0 3vh; }

.eyebrow {
  display: flex; align-items: center; gap: 1.75rem;
  color: var(--teal);
  font-size: clamp(0.72rem, 0.95vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 5.5vh, 3.25rem);
}
.eyebrow i { width: 48px; height: 1px; background: var(--teal-soft); }

.headline {
  font-weight: 400;
  font-size: clamp(2rem, min(3.75vw, 7vh), 4.3rem);
  white-space: nowrap;
  position: relative; z-index: 2;
  line-height: 1.13;
  letter-spacing: -0.015em;
}
.headline span { display: block; }
.headline .line-2 { color: var(--teal); }

.lead {
  max-width: 36ch;
  margin-top: clamp(1rem, 4vh, 2.25rem);
  font-size: clamp(0.95rem, min(1.25vw, 2.2vh), 1.2rem);
  line-height: 1.65;
  color: #d8e5e3;
  font-weight: 300;
}

.location {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: clamp(1rem, 4vh, 2.25rem);
  font-size: 0.92rem; color: var(--muted);
}
.location svg { width: 18px; height: 18px; color: var(--teal); }
.location .sep { color: #5f7876; margin: 0 0.25rem; }

/* ---------- hero visual ---------- */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  container-type: size;
  display: flex; align-items: center; justify-content: flex-end;
  margin-right: calc(var(--pad-x) * -0.35);
}

.visual {
  position: relative;
  width: min(100cqw, 100cqh * 800 / 560);
  height: min(100cqh, 100cqw * 560 / 800);
  container-type: inline-size;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.network { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.network .line line,
.network .line polygon,
.network polygon.line { fill: none; stroke: var(--line); stroke-width: 1.1; }
.network .line.dim line,
.network .line.dim polygon { stroke: var(--line-dim); }
.network .line.amber line { stroke: rgba(245,166,35,.65); }
.network .link line { transition: stroke .3s, stroke-width .3s; }
.network .link.is-on line { stroke: var(--teal); stroke-width: 1.8; }
.network .link.amber.is-on line { stroke: var(--amber); }
.network .faint line { stroke: rgba(31,207,184,.08); stroke-width: 1; }
.network .plus path { stroke: rgba(31,207,184,.35); stroke-width: 1; fill: none; }

.network .nodes circle { fill: var(--teal); filter: drop-shadow(0 0 4px rgba(31,207,184,.9)); }
.network .nodes.amber circle { fill: var(--amber); filter: drop-shadow(0 0 5px rgba(245,166,35,.9)); }
.network .pulse { fill: #b8fff3; filter: drop-shadow(0 0 6px #1fcfb8); }

.network .core { transform-origin: 400px 270px; }

/* chips: positioned in % of the 800×560 drawing */
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 1.2cqw;
  padding: 0 1.6cqw;
  height: 8.2cqw;
  font-size: 1.55cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #e9f4f2;
  background: linear-gradient(180deg, rgba(6, 46, 48, 0.82), rgba(3, 28, 31, 0.82));
  border: 1px solid rgba(31,207,184,.35);
  border-radius: 1.2cqw;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 10px 30px rgba(0,0,0,.25);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.chip::before, .chip::after {
  content: ""; position: absolute; width: 2.6cqw; height: 2.6cqw; border: 2px solid transparent;
}
.chip::before { top: -1px; right: -1px; border-top-color: rgba(245,166,35,.7); border-right-color: rgba(245,166,35,.7); border-top-right-radius: 1.2cqw; }
.chip::after  { bottom: -1px; left: -1px; border-bottom-color: rgba(31,207,184,.7); border-left-color: rgba(31,207,184,.7); border-bottom-left-radius: 1.2cqw; }
.chip svg { width: 3.8cqw; height: 3.8cqw; flex: none; color: var(--teal); }
.chip.is-on { border-color: var(--teal); box-shadow: 0 0 0 1px rgba(31,207,184,.4), 0 0 28px rgba(31,207,184,.35); transform: translateY(-2px); }

.chip-ai       { left: 19%;   top: 7%;   width: 19.5%; }
.chip-cloud    { left: 60.3%; top: 6.6%; width: 19.6%; }
.chip-web      { left: 6%;    top: 34.8%; width: 20.2%; }
.chip-digital  { left: 74.8%; top: 39.3%; width: 23%; }
.chip-software { left: 15%;   top: 72.7%; width: 23.5%; }

.chip.plain { background: none; border: 0; box-shadow: none; backdrop-filter: none; align-items: flex-start; height: auto; }
.chip.plain::before, .chip.plain::after { display: none; }
.chip-data { left: 64.5%; top: 74.5%; }
.chip-data svg { width: 4.4cqw; height: 4.4cqw; margin-top: 0.3cqw; }
.data-label { display: flex; flex-direction: column; gap: 1.1cqw; color: var(--teal); }
.data-label i { display: block; height: 1px; background: rgba(31,207,184,.3); }
.data-label i:nth-child(1) { width: 13cqw; margin-top: 1cqw; }
.data-label i:nth-child(2) { width: 9cqw; }
.data-label i:nth-child(3) { width: 9cqw; opacity: .6; }

.coords {
  position: absolute; right: calc(var(--pad-x) * 0.35); bottom: 0;
  font-size: 0.72rem; line-height: 1.5; color: #4f6d6b; text-align: right; letter-spacing: 0.04em;
}

/* ---------- capabilities row ---------- */
.caps {
  display: grid;
  grid-template-columns: repeat(5, auto) 1fr;
  border-top: 1px solid var(--hair);
  padding-top: clamp(1rem, 4.5vh, 2.6rem);
}
.cap {
  position: relative;
  padding-right: clamp(1.5rem, 3.2vw, 3rem);
  margin-right: clamp(1.5rem, 3vw, 3rem);
  border-right: 1px solid var(--hair);
  padding-bottom: clamp(0.9rem, 2.4vh, 1.4rem);
}
.cap:nth-child(5) { border-right: 0; }
.cap .num { display: block; color: var(--teal); font-size: 1rem; margin-bottom: clamp(0.6rem, 1.8vh, 1.1rem); }
.cap .name { display: block; font-size: clamp(0.95rem, 1.2vw, 1.15rem); color: #f2f8f7; white-space: nowrap; }
.cap::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 30px; height: 2px; background: var(--teal);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.cap:hover::after, .cap:focus-visible::after, .cap.is-on::after { width: 72px; }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 5vh, 3rem) 0 clamp(1rem, 4.5vh, 2.75rem);
}
.tagline { display: flex; align-items: center; gap: 1.75rem; color: #b9cac8; font-size: 1rem; margin-left: calc(var(--pad-x) * -0.5); }
.dots { display: grid; grid-template-columns: repeat(3, 3px); gap: 10px; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--teal); opacity: .85; }
.tagline .rule { width: 46px; height: 1px; background: var(--teal-soft); }

.cta { border-left: 1px solid var(--hair); padding-left: 2rem; }
.cta p { color: #c9d8d6; font-size: 1rem; margin-bottom: 0.4rem; }
.cta a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--teal); font-size: 1.2rem; font-weight: 500; }
.cta a svg { width: 18px; height: 18px; transition: transform .25s; }
.cta a:hover svg { transform: translateX(4px); }

/* ---------- smaller laptops ---------- */
@media (max-width: 1200px) {
  .cap { padding-right: 1.2rem; margin-right: 1.2rem; }
  .nav { gap: 1.5rem; }
}

/* ---------- tablet & mobile: stack and allow scroll ---------- */
@media (max-width: 900px), (max-height: 520px) {
  html, body { height: auto; min-height: 100%; }
  body { overflow: auto; background-attachment: fixed; }
  .page { height: auto; min-height: 100dvh; grid-template-rows: auto auto auto auto; }
  .nav a:not(.btn-solid) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-copy { padding-bottom: 0; }
  .headline { font-size: clamp(2.1rem, 8vw, 3.6rem); white-space: normal; }
  .hero-visual { height: auto; aspect-ratio: 800 / 600; margin-right: 0; }
  .caps { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; margin-top: 2rem; }
  .cap { border-right: 0; margin-right: 0; }
  .cap .name { white-space: normal; }
  .footer { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .tagline { margin-left: 0; }
  .cta { border-left: 0; padding-left: 0; }
}

@media (max-width: 520px) {
  .btn-solid { padding: 0.6rem 1rem; font-size: 0.8rem; }
  .brand-sub { letter-spacing: 0.25em; }
  .tagline .rule { display: none; }
  .caps { grid-template-columns: 1fr; gap: 1.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .network .pulse { display: none; }
}

/* ---------- dialog ---------- */
.contact-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-dim);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.contact-dialog::backdrop {
  background: rgba(2, 22, 25, 0.85);
  backdrop-filter: blur(6px);
}
.dialog-content {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.close-dialog {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.close-dialog:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.close-dialog svg {
  width: 24px;
  height: 24px;
}
#dialog-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #fff;
}
.dialog-desc {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #c9d8d6;
}
.form-group input,
.form-group textarea {
  background: rgba(31, 207, 184, 0.05);
  border: 1px solid var(--line-dim);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6a8884;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(31, 207, 184, 0.1);
  box-shadow: 0 0 0 2px rgba(31, 207, 184, 0.2);
}
.helper-text {
  font-size: 0.75rem;
  color: #72918d;
  margin-top: 0.2rem;
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
.submit-btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
}
