/* ============================================================
   AWJ v2 — Editorial / Bold / Dark
   Brand: purple #7e52e7 on near-black, oversized type,
   sharp borders, asymmetric layout
   ============================================================ */

:root {
  --primary: #7e52e7;
  --primary-100: #d4c5f7;
  --primary-200: #a98cef;
  --primary-600: #3a1595;
  --ink: #0b0813;
  --ink-2: #14101f;
  --paper: #f4f1fa;
  --muted: #b9b2c8;
  --line: rgba(180, 164, 214, 0.18);
  --white: #ffffff;

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 0px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 8, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  height: 26px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--white);
}

.nav-menu .nav-cta {
  color: var(--white);
  border: 1px solid var(--primary);
  padding: 10px 18px;
  background: var(--primary);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-menu .nav-cta:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: calc(72px + var(--space-8)) 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(126, 82, 231, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 8% 60%, rgba(58, 21, 149, 0.4) 0%, transparent 45%);
  pointer-events: none;
}

.hero-index {
  position: absolute;
  top: 96px;
  right: 5%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(180, 164, 214, 0.14);
  pointer-events: none;
  user-select: none;
}

.hero-tag {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-200);
  padding: 0 var(--space-4);
  max-width: 1240px;
  margin: 0 auto;
}

.hero-title {
  position: relative;
  max-width: 1240px;
  margin: var(--space-4) auto 0;
  padding: 0 var(--space-4);
  font-size: clamp(48px, 9vw, 130px);
}

.hero-title span {
  display: block;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.hero-bottom {
  position: relative;
  max-width: 1240px;
  margin: var(--space-7) auto 0;
  padding: 0 var(--space-4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: end;
}

.hero-sub {
  max-width: 44ch;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- CTA button ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  background: var(--primary);
  border: 1px solid var(--primary);
  padding: 16px 26px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  background: var(--primary-600);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(126, 82, 231, 0.25);
}

.btn-arrow {
  font-size: 20px;
  line-height: 1;
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
}

.marquee-track .dot {
  color: var(--primary);
  font-size: 14px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-9) 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-200);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(40px, 6vw, 72px);
}

.section-title.big {
  font-size: clamp(52px, 9vw, 120px);
}

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.stat-cell {
  padding: var(--space-5) var(--space-4);
  border-right: 1px solid var(--line);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--white);
  line-height: 1;
}

.stat-num::after {
  content: "+";
  color: var(--primary);
}

.stat-cap {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 14px;
}

.clients {
  margin-top: var(--space-7);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.clients p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}

.client-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  opacity: 0.75;
}

/* ---------- Services ---------- */

.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: end;
}

.services-head .section-title {
  text-align: right;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.25s ease;
}

.service-row:hover {
  background: var(--ink-2);
  padding-left: var(--space-3);
}

.service-no {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
}

.service-row h3 {
  font-size: clamp(22px, 3vw, 34px);
}

.service-row p {
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- About ---------- */

.about {
  background: var(--ink-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: var(--space-3);
}

.about-text blockquote {
  border-left: 3px solid var(--primary);
  padding-left: var(--space-3);
  margin-top: var(--space-5);
}

.about-text blockquote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
}

.about-text cite {
  display: block;
  margin-top: var(--space-1);
  font-style: normal;
  font-size: 14px;
  color: var(--primary-200);
}

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

.contact-head {
  margin-bottom: var(--space-7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-7);
  align-items: start;
}

.contact-meta p {
  color: var(--muted);
  font-size: 18px;
  max-width: 36ch;
  margin-bottom: var(--space-4);
}

.contact-links li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
}

.contact-links a:hover {
  color: var(--primary-200);
}

.contact-form {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: var(--space-4);
}

.field {
  margin-bottom: var(--space-3);
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.req {
  color: var(--primary);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.field input.invalid,
.field textarea.invalid {
  border-color: #e5484d;
}

.field-error {
  display: block;
  min-height: 16px;
  font-size: 12px;
  color: #ff8a8f;
  margin-top: 4px;
}

.form-status {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.form-status.success {
  color: #7ee2a8;
}

.form-status.error {
  color: #ff8a8f;
}

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

.site-footer {
  padding: var(--space-5) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-note {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell:nth-child(2) {
    border-right: none;
  }

  .stat-cell:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .services-head {
    grid-template-columns: 1fr;
  }

  .services-head .section-title {
    text-align: left;
  }

  .service-row {
    grid-template-columns: 60px 1fr;
  }

  .service-row p {
    grid-column: 2;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-4) var(--space-4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .nav-menu.open {
    max-height: 380px;
    opacity: 1;
  }

  .nav-menu li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-menu .nav-cta {
    margin-top: var(--space-2);
    text-align: center;
    border: 1px solid var(--primary);
  }

  .section {
    padding: var(--space-7) 0;
  }

  .hero-index {
    top: 120px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat-cell:last-child {
    border-bottom: none;
  }

  .service-row {
    grid-template-columns: 48px 1fr;
    gap: var(--space-2);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
