/* AAtech — single-page layout */

:root {
  --color-bg: #0f1419;
  --color-bg-elevated: #1a222d;
  --color-surface: #243040;
  --color-text: #e8edf4;
  --color-text-muted: #9aa8b8;
  --color-accent: #3d9cf0;
  --color-accent-hover: #5eb0f5;
  --color-border: rgba(255, 255, 255, 0.08);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --max-width: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 2rem;
  width: auto;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.logo:hover .logo-img,
.logo:focus-visible .logo-img {
  opacity: 0.92;
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--color-text);
  border-radius: 1px;
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-text);
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Hero */

.hero {
  padding: var(--space-xl) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(61, 156, 240, 0.22), transparent),
    var(--color-bg);
}

.hero-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-xl);
  }
}

.hero-copy {
  max-width: 40rem;
}

@media (min-width: 900px) {
  .hero-copy {
    max-width: none;
  }
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 1400 / 788;
}

.hero-eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lede {
  margin: 0 0 var(--space-lg);
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* About page */

.about-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(61, 156, 240, 0.22), transparent),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.about-hero h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 42rem;
}

.about-hero-lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.about-hero-lede strong {
  color: var(--color-text);
  font-weight: 600;
}

.about-content {
  background: var(--color-bg-elevated);
}

.thanks-page {
  padding-top: var(--space-xl);
}

/* Solutions page — diagram figures */

.solution-section {
  background: var(--color-bg-elevated);
}

.solution-section--alt {
  background: var(--color-bg);
}

.solution-section h2 {
  margin: 0 0 var(--space-sm);
}

.solution-intro {
  margin-bottom: var(--space-md);
}

.solution-diagram {
  margin: 0;
}

.solution-diagram-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: var(--color-bg);
}

.solution-svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.solution-caption {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.about-prose h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-prose h2 {
  margin-top: 0;
}

.about-prose p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.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;
}

/* Projects page */

.projects-section {
  background: var(--color-bg-elevated);
}

.project-meta {
  margin: 0 0 var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.projects-cta {
  margin: var(--space-lg) 0 0;
  text-align: center;
}

@media (min-width: 640px) {
  .projects-cta {
    text-align: left;
  }
}

/* Technologies page — SVGs carry brand fills in files */

.tech-card-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  margin-bottom: var(--space-sm);
}

.tech-card-logo {
  height: 3rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  object-position: left center;
}

.tech-card-logo--compact {
  height: 3.25rem;
  max-width: 3.5rem;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--color-accent);
  color: #0a0e12;
}

.button-primary:hover {
  background: var(--color-accent-hover);
}

.button-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.button-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Sections */

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

.section:nth-of-type(even) {
  background: var(--color-bg-elevated);
}

.section h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 var(--space-lg);
  max-width: 36rem;
  color: var(--color-text-muted);
}

/* Services grid */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.125rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Why us */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  max-width: 40rem;
}

.why-list li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.why-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.why-list strong {
  font-size: 1.0625rem;
  color: var(--color-text);
}

.why-list span {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.contact-copy p {
  color: var(--color-text-muted);
}

.contact-direct {
  margin: var(--space-md) 0;
}

.contact-direct a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

.form-lede {
  margin: 0 0 var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-form label {
  display: block;
  margin-top: var(--space-sm);
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--color-accent);
}

.contact-form .button {
  margin-top: var(--space-md);
  width: 100%;
}

/* Footer */

.site-footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-brand {
  margin: 0;
  font-weight: 600;
}

.footer-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
