/*
Theme Name: PreciseAI
Theme URI: https://preciseai.com
Author: PreciseAI, LLC
Description: One-page theme for PreciseAI, LLC — an AI innovation hub that builds with AI and for AI.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: preciseai
*/

:root {
  --paper: #EAEDEF;
  --panel: #F4F5F6;
  --ink: #12171C;
  --ink-soft: #4B555D;
  --line: #C3CBD1;
  --line-soft: #D8DEE2;
  --blue: #2C57F5;
  --orange: #FF5B33;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(234, 237, 239, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo::before {
  content: "+";
  color: var(--orange);
  font-weight: 500;
  margin-right: 6px;
  font-size: 1rem;
}

nav.links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
nav.links a { text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color 0.15s ease, color 0.15s ease; }
nav.links a:hover, nav.links a:focus-visible { color: var(--ink); border-color: var(--ink); }

.btn {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.solid:hover, .btn.solid:focus-visible { background: #1e42d1; border-color: #1e42d1; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 9vw, 96px);
  overflow: hidden;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.hero-inner {
  position: relative;
  -webkit-mask-image: none;
  mask-image: none;
}

.crosshair {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: crosshair-in 0.6s ease forwards;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.crosshair::before { width: 100%; height: 1px; top: 50%; left: 0; }
.crosshair::after { height: 100%; width: 1px; left: 50%; top: 0; }
.crosshair.tl { top: 0; left: 0; animation-delay: 0.05s; }
.crosshair.tr { top: 0; right: 0; animation-delay: 0.15s; }

@keyframes crosshair-in {
  from { opacity: 0; transform: scale(1.4); }
  to { opacity: 1; transform: scale(1); }
}

.hero-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
  opacity: 0;
  animation: fade-up 0.7s ease 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  font-weight: 600;
  line-height: 1.06;
  max-width: 16ch;
  opacity: 0;
  animation: fade-up 0.7s ease 0.25s forwards;
}

.hero p.lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 0.7s ease 0.4s forwards;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s ease 0.52s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .crosshair, .hero-meta, .hero h1, .hero p.lede, .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Section scaffolding ---------- */

section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line-soft); }

h2.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  max-width: 20ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.ruler {
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent 16px
  );
  position: relative;
}

.pillar h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.pillar .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.pillar p { color: var(--ink-soft); max-width: 42ch; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .ruler { display: none; }
}

/* ---------- Process ---------- */

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: 8px;
}
.process-line::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.step { padding-right: 24px; position: relative; }
.step .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--paper);
  background: var(--ink);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}
.step:nth-child(1) .num { background: var(--orange); }
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; max-width: 30ch; }

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

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

footer.site { padding: clamp(48px, 7vw, 72px) 0 clamp(32px, 5vw, 48px); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 24px;
}
.footer-top h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; max-width: 14ch; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Contact form ---------- */

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 40px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.field textarea { min-height: 120px; }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--blue);
  display: none;
}
.form-status.show { display: inline; }
.form-status.error { color: var(--orange); }

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