/* =============================================================================
   YOUR AJENCY LIMITED — shared styles
   REPLACE: colors in :root if you rebrand
   ============================================================================= */

:root {
  --bg-deep: #08090d;
  --bg-raised: #10131a;
  --bg-card: #151a24;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #7c9cff;
  --accent-soft: rgba(124, 156, 255, 0.14);
  --warm: #e8c4a8;
  --radius: 14px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", var(--font-sans);
  --max: 1120px;
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a8b8ff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ----- Background grain + grid (subtle) ----- */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 156, 255, 0.12), transparent 50%),
    linear-gradient(var(--bg-deep) 0 0);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ----- Layout ----- */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ----- Site header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 4vw, 2rem);
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--bg-raised);
}

.nav-toggle-label svg {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(8, 9, 13, 0.96);
    border-bottom: 1px solid var(--stroke);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  .site-nav a:hover {
    background: var(--bg-card);
  }

  .nav-toggle:checked ~ .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ----- Hero (home only extras) ----- */
.hero {
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0c12;
}

.btn-primary:hover {
  background: #9db0ff;
  color: #0a0c12;
}

.btn-ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* ----- Chapter sections ----- */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--stroke);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

.chapter-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  color: rgba(124, 156, 255, 0.22);
  letter-spacing: -0.04em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ----- Bento ----- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(140px, auto);
  }

  .bento .span-2 {
    grid-column: span 2;
  }

  .bento .tall {
    grid-row: span 2;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-icon {
  margin-bottom: 1rem;
  color: var(--accent);
}

.card-accent {
  background: linear-gradient(145deg, var(--accent-soft), transparent 60%);
}

/* ----- Screenshots strip ----- */
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shot {
  background: var(--bg-raised);
  border: 1px dashed rgba(124, 156, 255, 0.35);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.shot-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #0a0c10;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Timeline-ish list ----- */
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pill-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pill-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ----- Legal pages ----- */
.legal-page {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 6rem);
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose strong {
  color: var(--text);
}

/* ----- Contact ----- */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.contact-row {
  margin-bottom: 1rem;
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.05rem;
}

.contact-value a {
  word-break: break-all;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--stroke);
  border-radius: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-note code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--stroke);
}

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--stroke);
  background: rgba(16, 19, 26, 0.6);
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ----- Page shell ----- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
