/**
 * AI Development — Front Desk Tools page styles.
 * Warm slate + amber palette — distinct from other AI pages.
 */

.pps-ai-fd-page .site-header:not(.is-scrolled) {
  background: rgba(15, 12, 10, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.pps-ai-fd-page .site-header:not(.is-scrolled) .primary-menu > li > a,
.pps-ai-fd-page .site-header:not(.is-scrolled) .site-branding,
.pps-ai-fd-page .site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

.ai-fd-page {
  overflow-x: clip;
}

/* ---- Hero ---- */
.ai-fd-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  color: #fff;
  background: linear-gradient(145deg, #0f0c0a 0%, #1c1410 30%, #3d2518 62%, #c45c2a 100%);
}

.ai-fd-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-fd-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 15%, transparent 78%);
}

.ai-fd-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: ai-fd-float 14s ease-in-out infinite;
}

.ai-fd-hero__orb--1 {
  width: 440px;
  height: 440px;
  top: -8%;
  right: -5%;
  background: rgba(251, 146, 60, 0.35);
}

.ai-fd-hero__orb--2 {
  width: 320px;
  height: 320px;
  bottom: -8%;
  left: -4%;
  background: rgba(251, 191, 36, 0.25);
  animation-delay: -4s;
}

.ai-fd-hero__orb--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 42%;
  background: rgba(244, 114, 182, 0.18);
  animation-delay: -2s;
}

@keyframes ai-fd-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 16px) scale(1.04); }
}

.ai-fd-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.ai-fd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fcd34d !important;
  background: rgba(251, 191, 36, 0.14) !important;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.ai-fd-eyebrow::before {
  display: none !important;
}

.ai-fd-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 1rem 0;
  max-width: 14ch;
  color: #fff;
}

.ai-fd-hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.75rem;
}

.ai-fd-hero__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.ai-fd-btn-glow {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), 0 12px 40px rgba(196, 92, 42, 0.35);
}

.ai-fd-btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.ai-fd-btn-ghost:hover {
  color: #fff !important;
  border-color: #fbbf24 !important;
  background: rgba(251, 191, 36, 0.18) !important;
}

.ai-fd-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.ai-fd-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ai-fd-hero__badges i {
  color: #fbbf24;
}

/* Hero console visual */
.ai-fd-hero__visual {
  position: relative;
  min-height: 400px;
}

.ai-fd-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(15, 12, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: ai-fd-float 6s ease-in-out infinite;
}

.ai-fd-float--saved {
  top: -3%;
  left: 2%;
}

.ai-fd-float--saved i {
  color: #fbbf24;
}

.ai-fd-float--auto {
  bottom: 6%;
  right: -2%;
  animation-delay: -2.5s;
}

.ai-fd-float--auto i {
  color: #fb923c;
}

.ai-fd-console {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 12, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.ai-fd-console__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-fd-console__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.ai-fd-console__dot:nth-child(1) { background: #f87171; }
.ai-fd-console__dot:nth-child(2) { background: #fbbf24; }
.ai-fd-console__dot:nth-child(3) { background: #34d399; }

.ai-fd-console__title {
  flex: 1;
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.ai-fd-console__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
}

.ai-fd-console__status i {
  font-size: 0.45rem;
  animation: ai-fd-pulse 2s ease-in-out infinite;
}

@keyframes ai-fd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ai-fd-console__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1.25rem;
}

.ai-fd-console__col h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.ai-fd-console__col--auto h4 {
  color: #fbbf24;
}

.ai-fd-console__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-fd-console__task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.72rem;
}

.ai-fd-console__task span {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.ai-fd-console__task em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.ai-fd-console__task--manual {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.ai-fd-console__task--manual em {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.15);
}

.ai-fd-console__task--done {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.ai-fd-console__task--done em {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.15);
}

.ai-fd-console__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 0.85rem;
}

.ai-fd-console__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-fd-console__stat {
  text-align: center;
}

.ai-fd-console__stat strong {
  display: block;
  font-size: 1rem;
  color: #fbbf24;
}

.ai-fd-console__stat span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Metrics ---- */
.ai-fd-metrics {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: #faf8f6;
  border-bottom: 1px solid #e8e2dc;
}

.ai-fd-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ai-fd-metric {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8e2dc;
  box-shadow: 0 8px 24px rgba(28, 20, 16, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-fd-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(196, 92, 42, 0.1);
}

.ai-fd-metric__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196, 92, 42, 0.12), rgba(251, 191, 36, 0.15));
  color: #c45c2a;
  font-size: 1.1rem;
}

.ai-fd-metric h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: #1c1410;
}

.ai-fd-metric p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6b5c52;
}

/* ---- Workflows ---- */
.ai-fd-workflows {
  background: #fff;
}

.ai-fd-workflows__intro {
  max-width: 68ch;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: #6b5c52;
}

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

.ai-fd-workflow-card {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 18px;
  background: #faf8f6;
  border: 1px solid #e8e2dc;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-fd-workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 92, 42, 0.35);
  box-shadow: 0 18px 40px rgba(196, 92, 42, 0.08);
}

.ai-fd-workflow-card__num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(196, 92, 42, 0.08);
  letter-spacing: -0.04em;
}

.ai-fd-workflow-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #3d2518, #c45c2a);
  color: #fff;
  font-size: 1rem;
}

.ai-fd-workflow-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #1c1410;
}

.ai-fd-workflow-card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b5c52;
}

.ai-fd-workflow-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #c45c2a;
  background: rgba(196, 92, 42, 0.1);
  border: 1px solid rgba(196, 92, 42, 0.18);
}

/* ---- Impact ---- */
.ai-fd-impact {
  background: #faf8f6;
}

.ai-fd-impact__shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 24px;
  background: linear-gradient(145deg, #0f0c0a 0%, #1c1410 45%, #3d2518 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-fd-impact__glow {
  position: absolute;
  top: -25%;
  right: -8%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.2);
  filter: blur(80px);
  pointer-events: none;
}

.ai-fd-impact__content {
  position: relative;
}

.ai-fd-impact__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.ai-fd-impact__shell h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.ai-fd-impact__lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.ai-fd-impact__content p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

.ai-fd-impact__closing {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88) !important;
}

.ai-fd-impact__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ai-fd-impact__ring {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #fbbf24, #c45c2a, #fb923c, #fbbf24);
  padding: 3px;
  animation: ai-fd-spin 12s linear infinite;
}

@keyframes ai-fd-spin {
  to { transform: rotate(360deg); }
}

.ai-fd-impact__ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1c1410;
  text-align: center;
  padding: 1rem;
}

.ai-fd-impact__ring-inner i {
  font-size: 1.75rem;
  color: #fbbf24;
  margin-bottom: 0.35rem;
}

.ai-fd-impact__ring-inner strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
}

.ai-fd-impact__ring-inner span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

.ai-fd-impact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-fd-impact__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-fd-impact__list i {
  color: #34d399;
  font-size: 0.75rem;
}

/* ---- FAQ ---- */
.ai-fd-faq {
  background: #fff;
}

/* ---- CTA ---- */
.ai-fd-cta {
  background: #faf8f6;
}

.ai-fd-cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 24px;
  background: linear-gradient(135deg, #3d2518 0%, #c45c2a 100%);
  color: #fff;
}

.ai-fd-cta-panel__glow {
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.15);
  filter: blur(60px);
  pointer-events: none;
}

.ai-fd-cta-panel .pps-section-title {
  color: #fff;
  margin-bottom: 0.5rem;
}

.ai-fd-cta-panel p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ai-fd-hero__inner {
    grid-template-columns: 1fr;
  }

  .ai-fd-hero__visual {
    max-width: 560px;
    margin: 0 auto;
  }

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

  .ai-fd-impact__shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ai-fd-metrics__grid {
    grid-template-columns: 1fr;
  }

  .ai-fd-workflow-grid {
    grid-template-columns: 1fr;
  }

  .ai-fd-console__body {
    grid-template-columns: 1fr;
  }

  .ai-fd-console__arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .ai-fd-hero__title {
    max-width: none;
  }

  .ai-fd-float--auto {
    right: 0;
  }
}

@media (max-width: 480px) {
  .ai-fd-console__foot {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}
