/* ============================================================
   ALDT – Advanced Land Development Tools
   Style Sheet
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg-primary:   #080B10;
  --bg-secondary: #0E1320;
  --bg-card:      #111827;
  --accent:       #00BFFF;
  --accent-glow:  rgba(0, 191, 255, 0.18);
  --accent-warm:  #FF6B2B;
  --text-primary: #F0F4F8;
  --text-muted:   #6B7A99;
  --border:       rgba(0, 191, 255, 0.14);
  --border-warm:  rgba(255, 107, 43, 0.25);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  font-size: 16px;
  background: var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ── Utility ────────────────────────────────────────────────── */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.3em 0.8em;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.tag--warm {
  color: var(--accent-warm);
  border-color: var(--border-warm);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: #29ccff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,191,255,0.35);
}

.btn--outline {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--warm {
  background: var(--accent-warm);
  color: #fff;
}
.btn--warm:hover {
  background: #ff824a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,107,43,0.35);
}

/* ── Pipe Assembly Intro ────────────────────────────────────── */
.pipe-intro {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  overflow: hidden;
  z-index: 200; /* above fixed nav during pin */
}

.pipe-intro__svg {
  width: 100%;
  height: 100%;
  max-width: 1000px;
  overflow: visible;
}

/* Wires hidden by default, shown via JS */
#pa-wires {
  opacity: 0;
}

/* Text overlay */
.pipe-intro__text {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.pipe-intro__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.pipe-intro__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Scroll hint */
.pipe-intro__hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: opacity 0.4s;
}

@media (max-width: 680px) {
  .pipe-intro__tagline {
    font-size: 1rem;
  }
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  padding: 0.8rem 0;
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }

.nav__cta { font-size: 0.85rem; padding: 0.55rem 1.2rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#hero-pipes {
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,191,255,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.hero__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,191,255,0.6); }
  50%       { box-shadow: 0 0 0 8px rgba(0,191,255,0); }
}

.hero__eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.hero__title .line--accent { color: var(--accent); }
.hero__title .line--warm   { color: var(--accent-warm); }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.8rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.hero__scroll-arrow {
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── Tools Section ──────────────────────────────────────────── */
.tools {
  padding: 6rem 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.tools__header {
  margin-bottom: 4rem;
}

.tools__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tools__header h2 span { color: var(--accent); }

.tools__header p {
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 0.8rem;
  font-size: 1rem;
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,191,255,0.1);
}

.tool-card:hover::before { opacity: 1; }

.tool-card__icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(0,191,255,0.04);
  position: relative;
}

.tool-card__command {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  position: relative;
}

.tool-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.tool-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  position: relative;
}

/* ── Workflow Section ───────────────────────────────────────── */
.workflow {
  padding: 7rem 0;
  background: var(--bg-primary);
}

.workflow__header {
  text-align: center;
  margin-bottom: 5rem;
}

.workflow__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.workflow__header p {
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
}

.workflow__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.workflow__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.8rem;
}

.workflow__connector svg {
  color: var(--border);
}

.workflow__step {
  text-align: center;
  padding: 0 1rem;
}

.workflow__step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.workflow__step-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  background: var(--bg-card);
}

.workflow__step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.workflow__step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stats {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.stat__suffix {
  /* inherits all .stat__value styles (font, size, color) automatically */
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing {
  padding: 7rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.pricing h2 {
  margin-bottom: 3.5rem;
}

.pricing__grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.pricing__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.8rem 3rem 2.4rem;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.pricing__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,191,255,0.1);
}

.pricing__card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(0,191,255,0.12),
              inset 0 1px 0 rgba(255,255,255,0.04);
}

.pricing__card--featured:hover {
  box-shadow: 0 12px 64px rgba(0,191,255,0.22),
              inset 0 1px 0 rgba(255,255,255,0.04);
}

.pricing__badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28em 1.1em;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing__period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.pricing__amount {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  margin: 0.5rem 0 0.2rem;
}

.pricing__currency {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  align-self: flex-start;
  margin-top: 0.5em;
}

.pricing__number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.pricing__card--featured .pricing__number {
  color: var(--accent);
}

.pricing__unit {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 0.35em;
}

.pricing__billed {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.pricing__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ── About ──────────────────────────────────────────────────── */
.about {
  padding: 7rem 0;
  background: var(--bg-primary);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about__content h2 span { color: var(--accent); }

.about__content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.about__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about__visual {
  position: relative;
}

.about__diagram {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

/* ── Download CTA ───────────────────────────────────────────── */
.download {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.download__glow {
  position: absolute;
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,191,255,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.download__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}

.download__content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.download__content h2 span { color: var(--accent); }

.download__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.download__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.download__reqs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.req-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4em 0.9em;
  border-radius: 100px;
}

.req-pill svg { color: var(--accent); flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer__brand .nav__logo { margin-bottom: 0.6rem; }

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--text-primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer__social a:hover { color: var(--accent); }

/* ── Carousel ───────────────────────────────────────────────── */
.carousel {
  position: relative;
  margin-top: 3rem;
  padding-bottom: 1rem;
}

.carousel__track {
  position: relative;
  /* height is set by JS to the tallest slide — never changes on transition */
}

.carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(48px);
}

.carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}

.carousel__slide.exit-left {
  transform: translateX(-48px);
  opacity: 0;
  pointer-events: none;
}

.carousel__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.carousel__card-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.carousel__card-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.35em 1em;
  border-radius: 100px;
  background: rgba(0,191,255,0.06);
}

.carousel__card-icon {
  width: 160px;
  height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  box-shadow: 0 0 50px rgba(0,191,255,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow 0.4s;
}

.carousel__slide.active .carousel__card-icon {
  box-shadow: 0 0 70px rgba(0,191,255,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}

.carousel__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.carousel__card-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.carousel__card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.carousel__card-features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.carousel__card-features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Prev / Next buttons */
.carousel__btn {
  position: absolute;
  top: calc(50% - 40px); /* offset above nav row */
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.carousel__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(0,191,255,0.2);
  transform: translateY(calc(-50% - 2px));
}

.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }

/* Dots + timer row */
.carousel__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 0.5rem;
  flex-wrap: wrap;
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  opacity: 0.5;
}

.carousel__dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 12px rgba(0,191,255,0.5);
}

.carousel__timer {
  flex: 1;
  max-width: 180px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.carousel__timer-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
}

.carousel__hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* Autodesk App Store button */
.btn--autodesk {
  background: #1a1a2e;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn--autodesk:hover {
  background: #222240;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,191,255,0.2);
}

/* Responsive carousel */
@media (max-width: 820px) {
  .carousel__card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .carousel__card-visual {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .carousel__card-icon {
    width: 100px;
    height: 100px;
  }

  .carousel__card-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }

  /*
   * Snap buttons to the icon row, not the full-track vertical centre.
   * At row layout: icon centre = card padding-top (3rem) + half icon height (50px).
   * transform: translateY(-50%) centres the button on that point.
   */
  .carousel__btn {
    top: calc(3rem + 50px);
  }
  .carousel__btn--prev { left: 0.3rem; }
  .carousel__btn--next { right: 0.3rem; }

  /* track height is managed by JS */

  .carousel__hint { display: none; }
}

@media (max-width: 500px) {
  /*
   * Column layout: badge stacks above the icon.
   * Icon centre ≈ padding-top (3rem) + badge (~1.8rem) + gap (1.2rem) + half icon (50px).
   */
  .carousel__btn {
    top: calc(3rem + 1.8rem + 1.2rem + 50px);
  }
  .carousel__card-visual { flex-direction: column; align-items: center; }
}

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(50px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .workflow__steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .workflow__connector { display: none; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__diagram { margin: 0 auto; }

  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .nav__links { display: none; }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__inner { flex-direction: column; }
  .footer__links { gap: 2rem; }

  .hero__title { font-size: clamp(2.2rem, 11vw, 3.5rem); }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(0,191,255,0.25); color: var(--text-primary); }
