/* aidesignco.com — public site. Precision made public-friendly:
   light, hairlines over shadows, one accent, generous whitespace. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

:root {
  --bg: #fbfbf9;
  --ink: #17181c;
  --ink-soft: #5c5f66;
  --accent: #2233cc;
  --accent-dark: #1b29a3;
  --hairline: rgba(23, 24, 28, 0.12);
  --hairline-faint: rgba(23, 24, 28, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  z-index: 10;
}
header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.wordmark {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
header nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
header nav a:hover { color: var(--accent); }

/* Hero with the pattern grid */
.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-faint) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 50% 0 0 0;
  background: linear-gradient(transparent, var(--bg));
}
.cell {
  position: absolute;
  width: 64px;
  height: 64px;
  background: rgba(34, 51, 204, 0.06);
}
.hero .wrap { position: relative; z-index: 1; max-width: 1080px; }
.hero-inner { max-width: 720px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.sub {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 62ch;
}
.cta-row { display: flex; gap: 24px; align-items: center; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
a.quiet {
  color: var(--ink);
  font-size: 16px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.quiet:hover { color: var(--accent); }

/* Sections */
section { padding: 120px 0; }
section + section { border-top: 1px solid var(--hairline); }
.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.body-copy { max-width: 62ch; }

/* Three columns */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 48px;
}
.col { padding: 0 32px; border-left: 1px solid var(--hairline); }
.col:first-child { border-left: none; padding-left: 0; }
.col h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.col p { color: var(--ink); font-size: 17px; }
.closing {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 64px;
  font-size: 17px;
}

/* Work with us + contact form */
.work .btn { margin-top: 8px; }
form.contact { margin-top: 40px; max-width: 560px; }
form.contact label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
form.contact .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
form.contact input,
form.contact textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
form.contact input:focus,
form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact textarea { resize: vertical; }
input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { margin: 4px 0 20px; }
.form-note { margin-top: 16px; font-size: 15px; min-height: 1.2em; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #b42318; }

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Legal pages */
.legal { padding: 96px 0; min-height: 55vh; }
.legal h1 { font-size: 40px; margin-bottom: 32px; }
.legal p { max-width: 62ch; margin-bottom: 20px; }

/* Mobile */
@media (max-width: 800px) {
  h1 { font-size: 40px; }
  h2 { font-size: 26px; }
  .sub { font-size: 18px; }
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding: 96px 0 72px; }
  .cols { grid-template-columns: 1fr; }
  .col { border-left: none; border-top: 1px solid var(--hairline); padding: 24px 0 0; margin-top: 24px; }
  .col:first-child { border-top: none; margin-top: 0; }
  .legal h1 { font-size: 32px; }
  .field-row { grid-template-columns: 1fr; }
}
