/*
  AtomLabs static website styles
  Blue is used as the primary brand color because it communicates trust, stability and technical clarity.
*/

:root {
  --bg: #f8fbff;
  --bg-strong: #eff6ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --border: rgba(37, 99, 235, 0.16);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --primary-softer: #eff6ff;
  --success: #0f766e;
  --danger: #dc2626;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 40px rgba(37, 99, 235, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at var(--mouse-x, 20%) var(--mouse-y, 20%), rgba(96, 165, 250, 0.26), transparent 30rem),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 38%, #eef6ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: -3;
}

img,
svg {
  max-width: 100%;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.25rem, 5.6vw, 4.15rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: 1.22rem;
}

ul {
  padding-left: 1.1rem;
}

.background-orb {
  position: fixed;
  width: 42rem;
  height: 42rem;
  right: -16rem;
  top: -16rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(96, 165, 250, 0.1) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  z-index: -2;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image: radial-gradient(rgba(15, 23, 42, 0.12) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  z-index: -1;
}

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

.section {
  padding: clamp(3.9rem, 7vw, 5.75rem) 0;
}

.section.compact {
  padding: clamp(2.6rem, 5vw, 4rem) 0;
}

.muted-section {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.64), rgba(255, 255, 255, 0.44));
  border-block: 1px solid rgba(37, 99, 235, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0.75rem auto 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #dbeafe);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(37, 99, 235, 0.2);
  overflow: hidden;
}

.brand-mark img {
  width: 2.15rem;
  height: 2.15rem;
  display: block;
}

.brand-text {
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary-dark);
  background: var(--primary-softer);
}

.main-nav .nav-cta {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  color: #ffffff;
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary-softer);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--primary-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero.section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.hero-grid,
.split-layout,
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: center;
}

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

.section-heading {
  max-width: 820px;
}

.section-heading.centered {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
  background: rgba(219, 234, 254, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-subtitle,
.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.button.secondary {
  color: var(--primary-dark);
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hero-card,
.panel,
.feature-card,
.fit-card,
.comparison-card,
.cta-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero-card {
  justify-self: end;
  width: min(100%, 420px);
  padding: 0.8rem;
  transform: rotate(1.2deg);
}

.browser-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.45rem 0.35rem 0.7rem;
}

.browser-bar span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #bfdbfe;
}

.mini-site-preview {
  min-height: 255px;
  padding: 1.05rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 255, 255, 0.92)),
    #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.preview-line,
.preview-grid div,
.preview-panel {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.preview-line {
  height: 1.05rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
}

.preview-line.wide {
  width: 82%;
}

.preview-line.medium {
  width: 55%;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.preview-grid div {
  height: 4.2rem;
  border-radius: 18px;
}

.preview-panel {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
  color: var(--muted);
}

.preview-panel strong {
  color: var(--text);
}

.feature-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.fit-card,
.panel,
.form-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-card {
  min-height: 190px;
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.feature-card h3,
.panel h2,
.fit-card h2 {
  margin-bottom: 0.75rem;
}

.feature-card p,
.panel p,
.fit-card li,
.process-grid p,
.small-note,
.form-note {
  color: var(--muted);
}

.comparison-card {
  overflow: hidden;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.comparison-table th {
  color: var(--primary-dark);
  background: rgba(219, 234, 254, 0.65);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  font-weight: 800;
}

.process-grid article {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 900;
}

.cta-card {
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.28), transparent 32rem),
    rgba(255, 255, 255, 0.86);
}

.cta-card .eyebrow {
  margin-inline: auto;
}

.cta-card .button {
  margin-top: 1.4rem;
}

.check-list,
.cross-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 0;
  list-style: none;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 1.8rem;
}

.check-list li::before,
.cross-list li::before {
  position: absolute;
  left: 0;
  font-weight: 900;
}

.check-list li::before {
  content: "✓";
  color: var(--success);
}

.cross-list li::before {
  content: "×";
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 1rem;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--primary-dark);
}

.reveal,
.reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible,
.reveal-group > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 900px) {
  .hero.section {
    padding-top: 2rem;
    padding-bottom: 2.6rem;
  }

  .hero-card {
    justify-self: stretch;
    max-width: 520px;
  }

  .mini-site-preview {
    min-height: 230px;
  }
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 26px;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .main-nav {
    position: fixed;
    inset: 5.4rem 0.75rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    text-align: center;
  }

  .hero-grid,
  .split-layout,
  .two-columns,
  .feature-grid,
  .feature-grid.six,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {

  .hero.section {
    padding-top: 1.8rem;
    padding-bottom: 2.4rem;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-subtitle,
  .section-heading p:not(.eyebrow) {
    font-size: 1rem;
  }

  .mini-site-preview {
    min-height: 210px;
  }
  .brand-text {
    font-size: 1rem;
  }

  .section {
    padding-block: 3.1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .comparison-card {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 520px;
  }
}
