/* ============================================================
   Afd Robotics And Controls Inc. — style.css
   Dark theme, near-black #0D0F14 with VIOLET accent #8B5CF6
   ============================================================ */

:root {
  --bg: #0D0F14;
  --bg-2: #12151D;
  --bg-3: #1B1630;
  --card: #171A24;
  --card-2: #1D2130;
  --text: #EAE8F2;
  --muted: #A6ABC0;
  --accent: #8B5CF6;
  --accent-2: #6D28D9;
  --accent-soft: #A78BFA;
  --line: #262B3A;
  --line-2: #313850;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.accent {
  color: var(--accent-soft);
}

/* ------------------------------------------------------------
   GEAR-SPROCKET NAVIGATION
   ------------------------------------------------------------ */
.gear-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #0B0D12;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gear-nav::after {
  content: "";
  display: block;
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent-2) 0 9px,
    transparent 9px 18px
  );
  background-color: #0B0D12;
}

.gear-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gear-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.gear-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* CSS gear icon: central disc + 8 rotated teeth */
.gear-mark {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
}

.gear-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background-color: var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.gear-disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background-color: var(--bg);
  border-radius: 50%;
}

.gear-mark .tooth {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 11px;
  margin: -5.5px 0 0 -3.5px;
  background-color: var(--accent);
  border-radius: 2px;
  transform-origin: 50% 50%;
  transform: rotate(var(--a)) translateY(-17px);
}

.gear-mark .tooth:nth-child(2) { --a: 0deg; }
.gear-mark .tooth:nth-child(3) { --a: 45deg; }
.gear-mark .tooth:nth-child(4) { --a: 90deg; }
.gear-mark .tooth:nth-child(5) { --a: 135deg; }
.gear-mark .tooth:nth-child(6) { --a: 180deg; }
.gear-mark .tooth:nth-child(7) { --a: 225deg; }
.gear-mark .tooth:nth-child(8) { --a: 270deg; }
.gear-mark .tooth:nth-child(9) { --a: 315deg; }

.gear-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gear-links a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.gear-links a:hover {
  color: var(--accent-soft);
  background-color: var(--bg-3);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-2);
  box-shadow: 0 0 0 3px #0B0D12, 0 0 0 5px var(--line-2);
  flex: none;
}

.gear-cta {
  display: inline-block;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 4px;
  white-space: nowrap;
}

.gear-cta:hover {
  background-color: var(--accent-2);
  color: #FFFFFF;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 9px 10px;
  cursor: pointer;
}

.mt-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
}

/* ------------------------------------------------------------
   MECHANICAL-ARM HERO
   ------------------------------------------------------------ */
.mech-arm-hero {
  background-color: var(--bg);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-copy .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-2);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

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

.btn-block {
  width: 100%;
}

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero-proof li {
  position: relative;
  padding-left: 18px;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* Robotic arm visual */
.arm-scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 440px;
  margin: 0 auto;
}

.arm-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 170px;
  height: 46px;
  background-color: var(--accent-2);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.base-slot {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 44px;
  height: 12px;
  background-color: #0B0D12;
  border-radius: 4px;
}

.arm-part {
  position: absolute;
  transform-origin: 50% 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 55%, var(--accent-2) 100%);
}

.arm-part .joint {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background-color: var(--bg-3);
  border: 5px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.arm-part > .arm-part {
  left: 50%;
  bottom: calc(100% + 18px);
}

.shoulder {
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%) rotate(6deg);
  width: 38px;
  height: 150px;
}

.forearm {
  transform: translateX(-50%) rotate(-54deg);
  width: 30px;
  height: 128px;
}

.wrist {
  transform: translateX(-50%) rotate(42deg);
  width: 22px;
  height: 62px;
}

.gripper {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 56px;
  height: 58px;
}

.finger {
  position: absolute;
  top: 0;
  width: 15px;
  height: 58px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-2));
  border-radius: 8px 8px 5px 5px;
}

.finger.f1 {
  left: 0;
  transform: rotate(8deg);
  transform-origin: 50% 100%;
}

.finger.f2 {
  right: 0;
  transform: rotate(-8deg);
  transform-origin: 50% 100%;
}

.grip-box {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 26px;
  background-color: var(--accent-2);
  border-radius: 6px;
}

.arm-ghost {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  background: transparent;
}

.arm-ghost.g1 {
  width: 180px;
  height: 180px;
  top: 40px;
  right: -20px;
  border: 2px solid rgba(109, 40, 217, 0.5);
}

.arm-ghost.g2 {
  width: 90px;
  height: 90px;
  bottom: 40px;
  left: -10px;
  border: 2px solid rgba(109, 40, 217, 0.35);
}

/* ------------------------------------------------------------
   FULL-WIDTH STATEMENT ROW
   ------------------------------------------------------------ */
.statement-section {
  background-color: var(--bg-3);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.statement-row {
  padding: 64px 0;
  max-width: 900px;
  position: relative;
}

.statement-marker {
  display: block;
  width: 54px;
  height: 6px;
  background-color: var(--accent);
  margin-bottom: 26px;
  border-radius: 3px;
}

.statement-row h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}

.statement-row p {
  font-size: 18px;
  color: var(--muted);
  max-width: 800px;
}

/* ------------------------------------------------------------
   BIG-NUMERAL STAT COLUMNS
   ------------------------------------------------------------ */
.stats-section {
  background-color: var(--bg);
  padding: 64px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-cell {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 30px 22px;
}

.stat-num {
  display: block;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-soft);
  margin-bottom: 12px;
}

.stat-label {
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------------------ */
.about-section {
  background-color: var(--bg-2);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 16px;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fact {
  display: flex;
  gap: 18px;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}

.fact-index {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.fact h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.fact p {
  color: var(--muted);
  font-size: 15px;
}

/* ------------------------------------------------------------
   HORIZONTAL SCROLL CAPABILITY ROW
   ------------------------------------------------------------ */
.cap-section {
  background-color: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
}

.cap-shell {
  position: relative;
  padding: 0 8px;
}

.cap-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  scrollbar-width: none;
}

.cap-track::-webkit-scrollbar {
  display: none;
}

.cap-panel {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 26px;
  min-height: 220px;
}

.cap-panel:hover {
  border-color: var(--accent);
  background-color: var(--card-2);
}

.cap-ico {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  background-color: var(--bg-3);
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.cap-panel h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.cap-panel p {
  color: var(--muted);
  font-size: 15px;
}

.cap-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background-color: var(--bg-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
}

.cap-arrow:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.cap-prev {
  left: -6px;
}

.cap-next {
  right: -6px;
}

/* ------------------------------------------------------------
   NUMBERED DELIVERY PROCESS
   ------------------------------------------------------------ */
.process-section {
  background-color: var(--bg-2);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.process-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--line-2);
}

.process-step {
  position: relative;
  display: flex;
  gap: 26px;
  padding: 0 0 40px 0;
}

.process-step:last-child {
  padding-bottom: 0;
}

.step-num {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-3);
  border: 2px solid var(--accent);
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  z-index: 2;
}

.step-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step-body p {
  color: var(--muted);
  max-width: 620px;
}

/* ------------------------------------------------------------
   TWO-COLUMN COMPARISON TABLE
   ------------------------------------------------------------ */
.compare-section {
  background-color: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 960px;
}

.compare-col {
  border-radius: 12px;
  padding: 30px;
}

.compare-integrated {
  background-color: var(--bg-3);
  border: 2px solid var(--accent);
}

.compare-generic {
  background-color: var(--card);
  border: 1px solid var(--line);
}

.compare-col h3 {
  font-size: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-col li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}

.compare-integrated li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-weight: 800;
}

.compare-generic li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: #E06C8A;
  font-weight: 800;
}

/* ------------------------------------------------------------
   SPLIT CTA BAND
   ------------------------------------------------------------ */
.cta-section {
  background-color: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background-color: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 48px;
}

.cta-copy h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-copy > p {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-list strong {
  color: var(--text);
  margin-right: 8px;
}

.contact-list a {
  color: var(--accent-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background-color: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

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

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 14px;
  color: var(--accent-soft);
  min-height: 20px;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: #0B0D12;
  border-top: 4px solid var(--accent);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand .gear-word {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 24px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 15px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------
   SCROLL REVEAL
   ------------------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .arm-scene {
    height: 360px;
  }

  .about-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

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

  .compare-table {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .gear-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background-color: #0B0D12;
    border-bottom: 1px solid var(--line-2);
    padding: 12px 24px;
    display: none;
  }

  .gear-links.open {
    display: flex;
  }

  .gear-links a {
    padding: 12px 10px;
  }

  .nav-dot {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .gear-cta {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cap-panel {
    flex: 0 0 260px;
  }
}
