/* Agentix Labs shared styles */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #05070c;
  --ink-2: #090d15;
  --paper: #e8eaf0;
  --paper-dim: #8d94a6;
  --accent: #ff5fa2;
  --line: rgba(232, 234, 240, .12);
  --radius: 2px;
  --shell: 1400px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
}
h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}
.section-sub {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--paper-dim);
  line-height: 1.7;
  font-size: 1rem;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 12, .78);
  backdrop-filter: blur(10px);
}
.nav-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  font-size: .95rem;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}
.mark img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: .875rem;
  transition: color .18s ease;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }

/* ---- buttons ---- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 26px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.16,1,.3,1),
              background-color .18s ease,
              border-color .18s ease,
              color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ff7ab4; }
.btn-ghost {
  background: rgba(5, 7, 12, .55);
  border-color: rgba(232, 234, 240, .28);
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav .btn { height: 40px; padding: 0 20px; }

/* ---- generic sections ---- */
.section { border-top: 1px solid var(--line); padding: clamp(80px, 12vh, 140px) 0; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot h3 { margin: 0 0 14px; font-size: .8125rem; font-weight: 600; color: var(--paper); }
.foot p { margin: 0; color: var(--paper-dim); font-size: .875rem; line-height: 1.7; max-width: 36ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--paper-dim); text-decoration: none; font-size: .875rem; transition: color .18s ease; }
.foot a:hover { color: var(--accent); }
.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 44px; padding-top: 20px;
  color: var(--paper-dim); font-size: .8125rem;
}

/* ---- project modal ---- */
.modal-veil {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 7, 12, .8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-veil.open { display: flex; }
.modal {
  width: min(560px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: var(--ink-2);
  border: 1px solid rgba(232, 234, 240, .2);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 34px;
}
.modal h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.modal .hint { margin: 10px 0 26px; color: var(--paper-dim); font-size: .9375rem; line-height: 1.6; }
.modal label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.modal .field { margin-bottom: 20px; }
.modal input, .modal textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid rgba(232, 234, 240, .22);
  border-radius: var(--radius);
  color: var(--paper);
  font: inherit;
  font-size: .9375rem;
  padding: 12px 14px;
  resize: vertical;
}
.modal input:focus, .modal textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.modal ::placeholder { color: rgba(141, 148, 166, .6); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.modal .sent { color: var(--accent); font-size: .875rem; margin-top: 14px; display: none; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
