/* AutomataNow theme — navy / teal sales site */

:root {
  --an-navy: #0b1f3a;
  --an-navy-deep: #071525;
  --an-teal: #00a8a8;
  --an-teal-dark: #008888;
  --an-teal-mist: rgba(0, 168, 168, 0.14);
  --an-slate: #3d4f63;
  --an-slate-soft: #5a6d82;
  --an-fog: #e8eef4;
  --an-white: #ffffff;
  --an-cream-line: rgba(255, 255, 255, 0.12);
  --an-radius: 4px;
  --an-shadow: 0 18px 40px rgba(11, 31, 58, 0.18);
  --an-font-display: "Outfit", system-ui, sans-serif;
  --an-font-body: "Source Sans 3", system-ui, sans-serif;
  --an-max: 1120px;
  --an-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--an-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--an-slate);
  background: var(--an-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--an-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--an-navy);
}

h1, h2, h3, h4 {
  font-family: var(--an-font-display);
  color: var(--an-navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1rem; }

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

.an-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--an-teal);
  color: var(--an-white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.an-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.an-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--an-header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.an-site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.an-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--an-navy);
}

.an-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.an-brand__name {
  font-family: var(--an-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.an-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.an-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.an-nav a {
  text-decoration: none;
  color: var(--an-slate);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--an-radius);
}

.an-nav a:hover,
.an-nav .current-menu-item > a {
  color: var(--an-navy);
  background: var(--an-teal-mist);
}

.an-nav__demo {
  margin-left: 0.5rem;
}

.an-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(11, 31, 58, 0.2);
  border-radius: var(--an-radius);
  padding: 0.4rem 0.65rem;
  font-family: var(--an-font-body);
  font-weight: 600;
  color: var(--an-navy);
  cursor: pointer;
}

/* Buttons */
.an-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--an-radius);
  font-family: var(--an-font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.an-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.an-btn--primary {
  background: var(--an-teal);
  color: var(--an-white);
  border-color: var(--an-teal);
}

.an-btn--primary:hover {
  background: var(--an-teal-dark);
  border-color: var(--an-teal-dark);
  color: var(--an-white);
}

.an-btn--ghost {
  background: transparent;
  color: var(--an-navy);
  border-color: rgba(11, 31, 58, 0.25);
}

.an-btn--ghost:hover {
  border-color: var(--an-navy);
  color: var(--an-navy);
  background: rgba(11, 31, 58, 0.04);
}

.an-btn--on-dark {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--an-white);
}

.an-btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--an-white);
  border-color: var(--an-white);
}

.an-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed */
.an-hero {
  position: relative;
  min-height: calc(100vh - var(--an-header-h));
  display: grid;
  align-items: end;
  color: var(--an-white);
  overflow: hidden;
  background: var(--an-navy-deep);
}

.an-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.an-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: an-hero-fade 1.1s ease forwards;
}

.an-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 21, 37, 0.92) 0%, rgba(11, 31, 58, 0.72) 48%, rgba(0, 168, 168, 0.28) 100%),
    linear-gradient(to top, rgba(7, 21, 37, 0.75), transparent 55%);
  z-index: 1;
}

.an-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  max-width: 36rem;
}

.an-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.an-hero__brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.an-hero__brand-name {
  font-family: var(--an-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--an-white);
}

.an-hero h1 {
  color: var(--an-white);
  margin-bottom: 0.75rem;
}

.an-hero__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin: 0;
}

@keyframes an-hero-fade {
  to { opacity: 1; }
}

/* Sections */
.an-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.an-section--fog {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--an-teal-mist), transparent 55%),
    linear-gradient(180deg, #f4f8fb 0%, var(--an-white) 100%);
}

.an-section--navy {
  background:
    linear-gradient(135deg, var(--an-navy-deep), var(--an-navy) 55%, #0d3a4a);
  color: rgba(255, 255, 255, 0.88);
}

.an-section--navy h2,
.an-section--navy h3 {
  color: var(--an-white);
}

.an-section__eyebrow {
  font-family: var(--an-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--an-teal);
  margin-bottom: 0.75rem;
}

.an-section__lead {
  font-size: 1.15rem;
  color: var(--an-slate-soft);
  max-width: 40rem;
}

.an-section--navy .an-section__lead {
  color: rgba(255, 255, 255, 0.78);
}

.an-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.an-split__media img {
  width: 100%;
  border-radius: var(--an-radius);
  box-shadow: var(--an-shadow);
}

.an-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.an-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Product / feature grid — interaction containers, not decorative cards */
.an-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.an-feature {
  padding: 0;
  border: 0;
  background: transparent;
}

.an-feature a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem 0;
  border-top: 2px solid var(--an-teal);
  transition: color 0.2s ease;
}

.an-feature a:hover h3 {
  color: var(--an-teal-dark);
}

.an-feature__icon {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: var(--an-radius);
}

.an-feature p {
  color: var(--an-slate-soft);
  margin: 0;
}

.an-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.an-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.an-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--an-teal);
  border-radius: 1px;
}

/* Team */
.an-team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
  margin-top: 2rem;
}

.an-person h3 {
  margin-bottom: 0.15rem;
}

.an-person__role {
  font-weight: 700;
  color: var(--an-teal-dark);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Blog */
.an-posts {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.an-post-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.an-post-item h2 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.an-post-item h2 a {
  text-decoration: none;
  color: var(--an-navy);
}

.an-post-item h2 a:hover {
  color: var(--an-teal-dark);
}

.an-meta {
  font-size: 0.9rem;
  color: var(--an-slate-soft);
  margin-bottom: 0.5rem;
}

.an-prose {
  max-width: 42rem;
}

.an-prose h2 { margin-top: 2rem; }
.an-prose ul { padding-left: 1.25rem; }

/* Forms */
.an-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.an-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--an-navy);
  font-size: 0.95rem;
}

.an-form input,
.an-form select,
.an-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(11, 31, 58, 0.2);
  border-radius: var(--an-radius);
  background: var(--an-white);
  color: var(--an-slate);
}

.an-form input:focus,
.an-form select:focus,
.an-form textarea:focus {
  outline: 2px solid var(--an-teal);
  outline-offset: 1px;
  border-color: var(--an-teal);
}

.an-contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.an-contact-details {
  display: grid;
  gap: 0.85rem;
}

.an-contact-details a {
  font-weight: 700;
  text-decoration: none;
  color: var(--an-navy);
}

.an-contact-details a:hover {
  color: var(--an-teal-dark);
}

/* Page banner (inner pages) */
.an-page-banner {
  background:
    linear-gradient(120deg, var(--an-navy-deep), var(--an-navy) 60%, #0f4a52);
  color: var(--an-white);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.an-page-banner h1 {
  color: var(--an-white);
  margin: 0;
}

.an-page-banner p {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.an-site-footer {
  background: var(--an-navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
}

.an-site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.an-site-footer a:hover {
  color: var(--an-teal);
}

.an-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.an-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--an-white);
  font-family: var(--an-font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.an-footer__brand img {
  width: 40px;
  height: 40px;
}

.an-footer h3 {
  color: var(--an-white);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.an-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.an-footer__bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--an-cream-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

/* Book demo embed */
.an-demo-embed {
  min-height: 700px;
  border: 0;
  width: 100%;
  border-radius: var(--an-radius);
  background: var(--an-fog);
}

/* Responsive */
@media (max-width: 900px) {
  .an-split,
  .an-contact-panel,
  .an-footer__grid,
  .an-team {
    grid-template-columns: 1fr;
  }

  .an-grid {
    grid-template-columns: 1fr;
  }

  .an-nav-toggle {
    display: inline-flex;
  }

  .an-nav {
    display: none;
    position: absolute;
    top: var(--an-header-h);
    left: 0;
    right: 0;
    background: var(--an-white);
    border-bottom: 1px solid rgba(11, 31, 58, 0.1);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .an-nav.is-open {
    display: flex;
  }

  .an-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .an-nav__demo {
    margin: 0.75rem 0 0;
  }

  .an-site-header {
    position: relative;
  }

  .an-site-header__inner {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .an-hero__media img { animation: none; opacity: 1; }
  .an-reveal { opacity: 1; transform: none; transition: none; }
  .an-btn:hover { transform: none; }
}
