/* Core reset and layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #050816;
  color: #E5E7EB;
}

/* Theme base */
html.acs-theme-dark body {
  background: radial-gradient(circle at top, #0B1120 0%, #020617 60%, #000000 100%);
  color: #E5E7EB;
}

html.acs-theme-light body {
  background: #F3F4F6;
  color: #0F172A;
}

/* Layout helpers */
main {
  padding-top: 72px;
}

.acs-section {
  padding: 80px 24px;
}

/* Nav */
.acs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.acs-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.acs-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acs-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #3ABEFE;
  box-shadow: 0 0 20px rgba(58,190,254,0.4);
}

.acs-logo-text {
  display: flex;
  flex-direction: column;
}

.acs-logo-title {
  font-size: 14px;
  font-weight: 600;
}

.acs-logo-sub {
  font-size: 11px;
  color: #9CA3AF;
}

.acs-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.acs-nav-right a {
  color: #E5E7EB;
  text-decoration: none;
  opacity: 0.85;
}

.acs-nav-right a:hover {
  opacity: 1;
}

.acs-nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  font-size: 13px;
}

/* Theme toggle */
.acs-theme-toggle {
  position: relative;
  width: 48px;
  height: 24px;
}

.acs-theme-toggle input {
  display: none;
}

.acs-theme-toggle label {
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #1F2933;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.35);
  transition: background .22s ease;
}

.acs-toggle-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255,255,255,0.7);
  transition: transform .22s ease;
}

.acs-theme-toggle input:checked + label {
  background: linear-gradient(90deg, #3ABEFE, #00F6FF);
}

.acs-theme-toggle input:checked + label .acs-toggle-handle {
  transform: translateX(22px);
}

/* Hero */
.acs-hero {
  padding-top: 96px;
}

.acs-hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.acs-section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #00F6FF;
  margin-bottom: 8px;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

.acs-hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
}


@media (min-width: 1200px) {
  .acs-hero-title {
    line-height: 1.22; /* more room to breathe on big monitors */
  }
}

.acs-hero-sub {
  font-size: 17px;
  color: #9CA3AF;
  max-width: 540px;
}

.acs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 16px;
}

.acs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.acs-btn-primary {
  background: linear-gradient(90deg,#3ABEFE,#00F6FF);
  color: #020617;
  border: none;
  box-shadow: 0 0 25px rgba(58,190,254,0.45);
}

.acs-btn-primary:hover {
  box-shadow: 0 0 32px rgba(0,246,255,0.55);
  transform: translateY(-1px);
}

.acs-btn-secondary {
  border: 1px solid rgba(148,163,184,0.45);
  color: #E5E7EB;
  background: transparent;
}

.acs-btn-full {
  width: 100%;
}

.acs-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #9CA3AF;
}

.acs-hero-bullets li::before {
  content: "• ";
  color: #00F6FF;
}

/* Hero panel card */
.acs-card {
  background: #020617;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 0 40px rgba(59,130,246,0.18);
  padding: 22px 22px 20px;
}

.acs-hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 12px;
}

.acs-upload-box {
  border-radius: 14px;
  border: 1.5px dashed rgba(148,163,184,0.7);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}

.acs-upload-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.acs-upload-text span {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
}

.acs-btn-inline {
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.acs-btn-inline-primary {
  background: linear-gradient(90deg,#3ABEFE,#00F6FF);
  color: #020617;
}

.acs-hero-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.acs-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #9CA3AF;
}

.acs-metric-value {
  font-size: 16px;
  font-weight: 600;
}

/* Section headers */
.acs-section-header {
  max-width: 740px;
  margin: 0 auto 32px;
  text-align: center;
}

.acs-section-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.acs-section-sub {
  font-size: 15px;
  color: #9CA3AF;
}

/* Grids */
.acs-grid-3 {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.acs-step-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 17px;
}

.acs-step-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Two-column layout */
.acs-two-col {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 24px;
}

.acs-col {
  min-width: 0;
}

/* Metrics card */
.acs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.acs-op-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 8px;
  font-size: 13px;
}

.acs-op-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148,163,184,0.4);
}

.acs-metric-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: #9CA3AF;
}

/* Tabs */
.acs-tabs-card {
  padding-top: 16px;
}

.acs-tabs-header {
  display: inline-flex;
  gap: 8px;
  border-bottom: 1px solid rgba(148,163,184,0.35);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.acs-tab-button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: #9CA3AF;
}

.acs-tab-active {
  border-color: rgba(58,190,254,0.7);
  color: #E5E7EB;
  box-shadow: 0 0 18px rgba(0,246,255,0.35);
}

.acs-tabs-body {
  max-height: 260px;
  overflow: auto;
}

.acs-tab-pane {
  display: none;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre;
}

.acs-tab-pane-active {
  display: block;
}

/* Hardware targets grid */
.acs-target-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 18px;
}

.acs-target-card h3 {
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 15px;
}

.acs-target-card p {
  font-size: 13px;
  margin: 0;
}

/* Compiler stack */
.acs-compiler-row {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.acs-compiler-step h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 15px;
}

/* Pilot */
.acs-pilot-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  font-size: 14px;
}

.acs-pilot-list li::before {
  content: "• ";
  color: #00F6FF;
  margin-right: 4px;
}

/* FAQ */
.acs-faq-list {
  max-width: 900px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acs-faq-summary {
  list-style: none;
}

.acs-faq-summary::-webkit-details-marker {
  display: none;
}

.acs-faq-summary {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.acs-faq-toggle {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.acs-faq-answer {
  padding: 0 18px 14px 18px;
  font-size: 14px;
  color: #9CA3AF;
}

.acs-faq[open] .acs-faq-toggle {
  transform: rotate(45deg);
}

/* Contact / form */
.acs-contact-grid {
  align-items: flex-start;
}

.acs-contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.acs-contact-list a {
  color: #3ABEFE;
  text-decoration: none;
}

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

.acs-contact-form {
  display: grid;
  gap: 12px;
}

.acs-form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.acs-form-row label {
  color: #9CA3AF;
}

.acs-form-row input,
.acs-form-row textarea {
  background: #020617;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 8px 10px;
  color: #E5E7EB;
  font-size: 13px;
}

.acs-form-row input:focus,
.acs-form-row textarea:focus {
  outline: none;
  border-color: #3ABEFE;
  box-shadow: 0 0 0 1px rgba(58,190,254,0.6);
}

/* Footer */
.acs-footer {
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 16px 24px 40px;
  border-top: 1px solid rgba(148,163,184,0.35);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9CA3AF;
}

/* Responsive */
@media (max-width: 960px) {
  .acs-hero-grid,
  .acs-grid-3,
  .acs-two-col,
  .acs-compiler-row {
    grid-template-columns: minmax(0,1fr);
  }

  .acs-nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .acs-nav-right {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .acs-section {
    padding: 60px 16px;
  }

  .acs-hero-title {
    font-size: 30px;
  }

  .acs-footer {
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }
}
/* Hide chip animation on small screens – keep hero clean on mobile */
@media (max-width: 768px) {
  .acs-chip-anim {
    display: none;
  }
}

/* Light mode overrides */
html.acs-theme-light .acs-nav {
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

html.acs-theme-light .acs-nav a {
  color: #1F2937;
}

html.acs-theme-light .acs-logo-sub {
  color: #6B7280;
}

html.acs-theme-light .acs-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  color: #1F2937;
}

html.acs-theme-light .acs-section-sub,
html.acs-theme-light p {
  color: #374151;
}

html.acs-theme-light .acs-form-row label {
  color: #4B5563;
}

html.acs-theme-light .acs-form-row input,
html.acs-theme-light .acs-form-row textarea {
  background: #FFFFFF;
  color: #111827;
  border: 1px solid rgba(0,0,0,0.2);
}

html.acs-theme-light .acs-footer {
  color: #4B5563;
  border-top: 1px solid rgba(0,0,0,0.12);
}
/* Constrain Hardware Targets + FAQ width on large screens */
#targets .acs-section-header,
#targets .acs-target-grid,
#faq .acs-section-header,
#faq .acs-faq-list {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Make Hardware Targets use nice fixed columns on desktop */
@media (min-width: 960px) {
  .acs-target-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on big screens */
    gap: 20px;
  }
}

/* Slightly tighter width on very large monitors */
@media (min-width: 1440px) {
  #targets .acs-target-grid,
  #faq .acs-faq-list {
    max-width: 900px;
  }
}
/* ================================
   Hero chip animation (code → chip)
   ================================ */

.acs-chip-anim {
  padding: 12px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9) 0%, #020617 70%);
  margin-bottom: 16px; /* NEW: spacing between animation and Parse button */
}


html.acs-theme-light .acs-chip-anim {
  background: #F3F4F6;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Left “code” column */
.acs-chip-code {
  flex: 1;
  position: relative;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  color: #9CA3AF;
}

html.acs-theme-light .acs-chip-code {
  color: #6B7280;
}

.acs-chip-code-line {
  white-space: nowrap;
  opacity: 0.9;
}

/* Moving highlight sweep over the code */
.acs-chip-code::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(58,190,254,0) 0%,
    rgba(58,190,254,0.35) 50%,
    rgba(0,246,255,0) 100%
  );
  animation: acsSweep 3.5s linear infinite;
}

@keyframes acsFloatMobile {
  0%,100% { transform: translateY(0); }
  25%     { transform: translateY(-6px); }
  50%     { transform: translateY(0); }
  75%     { transform: translateY(3px); }
}

@keyframes acsPulseMobile {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%     { transform: scale(1.25); opacity: 1; }
}


@keyframes acsSweep {
  0%   { transform: translateX(0); }
  100% { transform: translateX(260%); }
}

/* Arrow in the middle */
.acs-chip-arrow {
  font-size: 20px;
  color: #3ABEFE;
  flex-shrink: 0;
  animation: acsPulse 1.8s ease-in-out infinite;
}

@keyframes acsPulse {
  0%,100% { transform: scale(1); opacity: 0.65; }
  50%     { transform: scale(1.15); opacity: 1; }
}

/* The glowing ACS chip on the right */
.acs-chip-core {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, #0B1120 0%, #020617 70%);
  box-shadow: 0 0 22px rgba(58,190,254,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: acsFloat 4s ease-in-out infinite;
}

html.acs-theme-light .acs-chip-core {
  background: radial-gradient(circle at top, #E0F2FE 0%, #FFFFFF 70%);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.45);
}

/* Tiny “traces” inside the chip */
.acs-chip-core::before,
.acs-chip-core::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3ABEFE, transparent);
  opacity: 0.6;
}

.acs-chip-core::before {
  top: 30%;
}

.acs-chip-core::after {
  bottom: 30%;
  transform: rotate(90deg);
}

.acs-chip-core-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BAE6FD;
}

.acs-chip-core-sub {
  font-size: 10px;
  font-weight: 600;
  color: #E5E7EB;
}

html.acs-theme-light .acs-chip-core-label {
  color: #0EA5E9;
}

html.acs-theme-light .acs-chip-core-sub {
  color: #111827;
}

/* Floating animation for the chip */
@keyframes acsFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* Slight padding tweak on small screens */
@media (max-width: 640px) {
  .acs-chip-anim {
    padding: 10px;
  }
}
/* Make animation more visible on mobile */
@media (max-width: 640px) {
  .acs-chip-anim {
    padding: 10px;
  }

  /* Faster, more visible sweep over the code */
  .acs-chip-code::before {
    animation: acsSweep 2.2s linear infinite;
  }

  /* Stronger arrow motion */
  .acs-chip-arrow {
    animation: acsPulseMobile 1.4s ease-in-out infinite;
  }

  /* Bigger float on the chip */
  .acs-chip-core {
    animation: acsFloatMobile 2.8s ease-in-out infinite;
  }
}
/* Mobile layout fix for Accelerators section */
@media (max-width: 640px) {
  /* Stack the accelerator cards instead of putting them in a single row */
  .acs-targets-row,
  .acs-target-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .acs-target,
  .acs-target-card {
    width: 100%;
    max-width: none;
    text-align: left;
    padding: 16px 14px;
  }
}
