/* ARC Technologies — variante empresarial / tech */

:root {
  --bg-deep: #070a0f;
  --bg: #0c1017;
  --surface: #111822;
  --surface-2: #161d2a;
  --border: #243044;
  --border-subtle: #1a2332;
  --text: #e8edf4;
  --text-muted: #8b98a8;
  --accent: #137bff;
  --accent-hover: #509dff;
  --accent-dim: rgba(19, 123, 255, 0.14);
  --accent-glow: rgba(19, 123, 255, 0.4);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 4px;
  --header-h: 64px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

/* Tech grid + noise feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(19, 123, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 123, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% -20%, black, transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .logo img {
    height: 36px;
    max-width: 132px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-item {
  position: relative;
}

.nav-item > a.has-sub::after {
  content: " ▾";
  font-size: 0.65em;
  opacity: 0.6;
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-sub a {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.nav-sub a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }

  .nav-main.is-open {
    transform: translateX(0);
  }

  .nav-main ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--surface);
    margin-top: 0.25rem;
    padding-left: 0.5rem;
  }

  .nav-item > a.has-sub::after {
    content: "";
  }
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-brand-logo {
  display: block;
  width: min(100%, 280px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1.35rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Sections */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--border);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Why list */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-block h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.why-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin: 2rem 0 0;
}

.cta-band h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

/* Page hero inner */
.page-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.page-hero .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0;
}

/* Prose */
.prose {
  max-width: 68ch;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 1rem;
  color: var(--text);
}

.prose h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

/* Service list */
.service-list {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.service-item {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent);
}

.service-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.contact-row {
  margin-bottom: 1rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-row dt {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-row dd {
  margin: 0;
  font-size: 0.95rem;
}

.contact-row a {
  word-break: break-all;
}

.form label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form input,
.form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  min-height: 1.25rem;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-message--ok {
  color: var(--accent);
}

.form-message--err {
  color: #f87171;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}

.form button[type="submit"] {
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  margin-top: 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-col h3 {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
}

.social a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Privacy long form */
.privacy-prose {
  max-width: 72ch;
}

.privacy-prose h3 {
  font-size: 0.85rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.privacy-prose p,
.privacy-prose li {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.privacy-prose ul {
  padding-left: 1.2rem;
}
