/*
 * Cyvora Studio Homepage Supplementary Styles
 * This file contains new classes for the homepage and is intended
 * to be linked AFTER the main styles.css file.
 * It uses the existing CSS variables defined in styles.css.
 */

/* 1. Learning Path Grid */
.learning-path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.path-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--card-foreground);
    transition: all var(--transition-normal);
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.path-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    border-radius: 10px;
    color: var(--primary);
    margin-bottom: 16px;
}

.path-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.path-card-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}

.path-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.path-card:hover .path-card-arrow svg {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

.path-card-arrow svg {
    transition: transform var(--transition-fast);
}

/* 2. Discovery Grid */
.discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-left: 48px;
}

.discovery-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--card-foreground);
    transition: all var(--transition-normal);
}

.discovery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px rgba(20, 244, 244, 0.1);
}

.discovery-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    width: fit-content;
}

.discovery-badge--beginner {
    background: rgba(30, 138, 106, 0.15);
    color: var(--primary);
}

.discovery-badge--updated {
    background: rgba(217, 154, 37, 0.15);
    color: var(--secondary);
}

.discovery-badge--practical {
    background: rgba(216, 95, 72, 0.15);
    color: var(--accent);
}

.discovery-badge--new {
    background: rgba(20, 244, 244, 0.12);
    color: var(--primary);
}

.discovery-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.discovery-card-desc {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    flex: 1;
    margin-bottom: 14px;
}

.discovery-card-link {
    display: inline-flex;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.discovery-card:hover .discovery-card-link svg {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

.discovery-card-link svg {
    transition: transform var(--transition-fast);
}

/* 3. AI Learning Preview */
.ai-preview {
    padding: 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.ai-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.ai-preview-header {
    margin-bottom: 32px;
}

.ai-preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-preview-subtitle {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    max-width: 500px;
}

.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--card-foreground);
    transition: all var(--transition-normal);
}

.topic-pill:hover {
    background: rgba(30, 138, 106, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.topic-pill-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* 4. Section CTA */
.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.section-cta:hover {
    gap: 12px;
}

.section-cta:hover svg {
    transform: translateX(3px);
}

.section-cta svg {
    transition: transform var(--transition-fast);
}

/* 5. Career Preview Grid */
.career-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.career-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--card-foreground);
    transition: all var(--transition-normal);
}

.career-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.career-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    border-radius: 10px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.career-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.career-card-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    flex: 1;
    margin-bottom: 16px;
}

.career-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.career-card:hover .career-card-link svg {
    transform: translateX(4px);
    transition: transform var(--transition-fast);
}

.career-card-link svg {
    transition: transform var(--transition-fast);
}

/* 6. Community Preview */
.community-preview {
    text-align: center;
    padding: 64px 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.community-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}

.community-icon-group {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.community-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    margin: 0 -6px;
}

.community-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.community-desc {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 550px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.community-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.community-cta:hover {
    background: #167a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 122, 90, 0.4);
}

/* 7. Newsletter Section */
.newsletter-section {
    text-align: center;
    padding: 64px 48px;
    background: linear-gradient(135deg, rgba(30, 138, 106, 0.08) 0%, rgba(20, 244, 244, 0.04) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.newsletter-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    max-width: 480px;
    margin: 0 auto 28px auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--foreground);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-input::placeholder {
    color: var(--muted-foreground);
}

.newsletter-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    background: #167a5a;
    transform: translateY(-1px);
}

.newsletter-privacy {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 12px;
}

/* 8. Trust Grid (Why Cyvora Studio) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.trust-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 138, 106, 0.1);
    border-radius: 50%;
    margin: 0 auto 16px auto;
    color: var(--primary);
}

.trust-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* 9. FAQ Section */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color var(--transition-fast);
}

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

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--muted-foreground);
}

.faq-item[open] summary::after {
    content: "−";
    color: var(--primary);
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 0 0 20px 0;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

/* 10. Responsive Overrides */
@media (max-width: 1024px) {
    .learning-path-grid,
    .discovery-grid,
    .career-preview-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .learning-path-grid,
    .discovery-grid,
    .career-preview-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ai-preview {
        padding: 28px 20px;
    }

    .community-preview {
        padding: 40px 20px;
    }

    .newsletter-section {
        padding: 40px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }

    .topic-pills {
        gap: 8px;
    }

    .topic-pill {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

/* In both styles.css and Style_sheets/homepage-new.css (or a shared responsive file) */
@media (max-width: 768px) {
  .section-header, 
  .discovery-grid {
    margin-left: 0 !important;
  }
}

/* Card Container - specific to Discover section */
#discover .discovery-card.visual-card {
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

/* Banner Image - specific to Discover section */
#discover .discovery-card.visual-card .card-image-wrapper {
    width: 100%;
    height: 200px;
    margin: 0;
}

#discover .discovery-card.visual-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Content - specific to Discover section */
#discover .discovery-card.visual-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 10px 0;
    padding: 0 20px;
}

#discover .discovery-card.visual-card p {
    color: #8b949e;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding: 0 20px;
}

#discover .discovery-card.visual-card .discovery-card-link {
    color: #58a6ff;
    font-weight: 600;
    font-size: 14px;
    padding: 0 20px 20px 20px;
    display: block;
}

#discover .discovery-card.visual-card .card-image {
    image-rendering: -webkit-optimize-contrast; /* For Chrome/Safari */
    image-rendering: high-quality;             /* Standard property */
}

#discover .discovery-card.visual-card {
    /* ... existing styles ... */
    transform: translateZ(0); /* Forces GPU acceleration and pixel alignment */
    backface-visibility: hidden;
}

#discover .discovery-card.visual-card .card-image {
    /* ... existing styles ... */
    display: block;
    width: 100%;
    height: 100%;
}

#discover .discovery-card.visual-card .card-image {
    /* This will sharpen the edges of the tablet and glowing icons */
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
}


/* =========================================================
   AI LEARNING JOURNEY - COMPACT HOMEPAGE PREVIEW
   ========================================================= */

#ai-learning {
  width: 100%;
}

.ai-journey-preview {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 34px 38px 30px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(20, 244, 244, 0.025),
      transparent 55%
    ),
    #070b0d;

  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;

  overflow: hidden;

  box-sizing: border-box;
}


/* ---------------------------------------------------------
   TOP ACCENT
   --------------------------------------------------------- */

.ai-journey-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  background: linear-gradient(
    90deg,
    #00e5ff 0%,
    #1683ff 25%,
    #a855f7 50%,
    #22c55e 75%,
    #f59e0b 100%
  );
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.ai-journey-header {
  margin-bottom: 28px;
  max-width: 680px;
}

.ai-journey-header .section-eyebrow {
  margin: 0 0 10px;

  font-size: 13px;
  line-height: 1;

  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #00e5ff;
}

.ai-journey-title {
  margin: 0 0 10px;

  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;

  font-weight: 700;
  letter-spacing: -0.025em;

  color: #f5f7fa;
}

.ai-journey-subtitle {
  margin: 0;

  max-width: 650px;

  font-size: 15px;
  line-height: 1.6;

  color: #9ba7b4;
}


/* ---------------------------------------------------------
   JOURNEY
   --------------------------------------------------------- */

.ai-journey {
  display: grid;

  /*
    6 equal learning stages.
    Connectors are placed inside the gap.
  */
  grid-template-columns:
    minmax(0, 1fr)
    32px
    minmax(0, 1fr)
    32px
    minmax(0, 1fr)
    32px
    minmax(0, 1fr)
    32px
    minmax(0, 1fr)
    32px
    minmax(0, 1fr);

  align-items: start;

  width: 100%;
}


/* ---------------------------------------------------------
   JOURNEY STEP
   --------------------------------------------------------- */

.journey-step {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  min-width: 0;

  padding: 0 4px;

  text-decoration: none;

  color: inherit;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.journey-step:hover {
  transform: translateY(-3px);
}


/* ---------------------------------------------------------
   NUMBER
   --------------------------------------------------------- */

.journey-number {
  width: 34px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 8px;

  border-radius: 8px;

  font-size: 12px;
  font-weight: 700;

  color: white;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.10);

  box-sizing: border-box;
}


/* ---------------------------------------------------------
   ICON CIRCLE
   --------------------------------------------------------- */

.journey-icon-wrap {
  width: 78px;
  height: 78px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  border-radius: 50%;

  background: rgba(7, 12, 15, 0.95);

  border: 1px solid currentColor;

  box-sizing: border-box;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.journey-step:hover .journey-icon-wrap {
  transform: scale(1.04);
}

.journey-icon {
  width: 30px;
  height: 30px;
}


/* ---------------------------------------------------------
   STEP TEXT
   --------------------------------------------------------- */

.journey-content {
  width: 100%;

  text-align: center;
}

.journey-content h3 {
  margin: 0 0 7px;

  font-size: 15px;
  line-height: 1.25;

  font-weight: 700;

  color: #f3f5f7;
}

.journey-content p {
  margin: 0 auto;

  max-width: 155px;

  font-size: 12px;
  line-height: 1.5;

  color: #8f9aa7;
}


/* ---------------------------------------------------------
   CONNECTORS
   --------------------------------------------------------- */

.journey-connector {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 78px;

  margin-top: 34px;

  min-width: 0;

  opacity: 0.85;
}

.journey-connector span {
  width: 7px;
  height: 1px;

  flex: 1;

  background: currentColor;

  opacity: 0.45;
}

.journey-connector svg {
  width: 16px;
  height: 16px;

  flex-shrink: 0;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ---------------------------------------------------------
   COLOURS
   --------------------------------------------------------- */

.journey-step-cyan,
.connector-cyan {
  color: #00d9ff;
}

.journey-step-blue,
.connector-blue {
  color: #2979ff;
}

.journey-step-purple,
.connector-purple {
  color: #a855f7;
}

.journey-step-green,
.connector-green {
  color: #22c55e;
}

.journey-step-orange,
.connector-orange {
  color: #f59e0b;
}


/* Number colours */

.journey-step-cyan .journey-number {
  background: rgba(0, 217, 255, 0.14);
  border-color: rgba(0, 217, 255, 0.25);
}

.journey-step-blue .journey-number {
  background: rgba(41, 121, 255, 0.16);
  border-color: rgba(41, 121, 255, 0.28);
}

.journey-step-purple .journey-number {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.28);
}

.journey-step-green .journey-number {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.28);
}

.journey-step-orange .journey-number {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.28);
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.ai-journey-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 28px;

  font-size: 14px;
  font-weight: 700;

  color: #00e5ff;

  text-decoration: none;

  transition:
    gap 0.2s ease,
    opacity 0.2s ease;
}

.ai-journey-cta:hover {
  gap: 12px;
  opacity: 0.85;
}

.ai-journey-cta svg {
  width: 16px;
  height: 16px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   LAPTOP / SMALL DESKTOP
   --------------------------------------------------------- */

@media (max-width: 1100px) {

  .ai-journey-preview {
    padding: 30px 24px 28px;
  }

  .ai-journey {
    grid-template-columns:
      minmax(0, 1fr)
      22px
      minmax(0, 1fr)
      22px
      minmax(0, 1fr)
      22px
      minmax(0, 1fr)
      22px
      minmax(0, 1fr)
      22px
      minmax(0, 1fr);
  }

  .journey-icon-wrap {
    width: 68px;
    height: 68px;
  }

  .journey-icon {
    width: 26px;
    height: 26px;
  }

  .journey-content h3 {
    font-size: 14px;
  }

  .journey-content p {
    font-size: 11px;
    max-width: 135px;
  }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 850px) {

  .ai-journey-preview {
    padding: 28px 20px;
  }

  .ai-journey-header {
    margin-bottom: 24px;
  }

  /*
    Horizontal scroll prevents the six stages
    from becoming tiny.
  */

  .ai-journey {
    display: flex;

    overflow-x: auto;

    gap: 12px;

    padding: 4px 4px 14px;

    scroll-snap-type: x mandatory;

    scrollbar-width: thin;
  }

  .journey-step {
    flex: 0 0 145px;

    scroll-snap-align: start;
  }

  .journey-connector {
    flex: 0 0 24px;

    height: 68px;

    margin-top: 34px;
  }

  .journey-icon-wrap {
    width: 68px;
    height: 68px;
  }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .ai-journey-preview {
    padding: 26px 16px 24px;

    border-radius: 14px;
  }

  .ai-journey-title {
    font-size: 27px;
  }

  .ai-journey-subtitle {
    font-size: 14px;
  }

  .journey-step {
    flex-basis: 135px;
  }

  .journey-icon-wrap {
    width: 62px;
    height: 62px;
  }

  .journey-icon {
    width: 24px;
    height: 24px;
  }

  .journey-content h3 {
    font-size: 13px;
  }

  .journey-content p {
    font-size: 11px;
  }

  .ai-journey-cta {
    margin-top: 22px;
  }
}
/* =========================================================
   FEATURED TOOLS — SHOWCASE STYLE
   ========================================================= */

.tools-showcase {
  width: 100%;
  max-width: 1160px;
  margin: 42px auto 0;
}


/* =========================================================
   MAIN FEATURED TOOL
   ========================================================= */

.featured-tool-card {
  position: relative;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;

  min-height: 360px;

  padding: 34px;

  text-decoration: none;
  color: inherit;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(34, 211, 238, 0.08),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(15, 23, 23, 0.96),
      rgba(10, 15, 14, 0.96)
    );

  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


.featured-tool-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    #22d3ee,
    rgba(34, 211, 238, 0.1),
    transparent
  );
}


.featured-tool-card:hover {
  transform: translateY(-3px);

  border-color: rgba(34, 211, 238, 0.35);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(34, 211, 238, 0.05);
}


/* =========================================================
   FEATURED TOOL CONTENT
   ========================================================= */

.featured-tool-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
}


.tool-badge {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  padding: 6px 10px;

  border-radius: 5px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}


.tool-badge-popular {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.10);
  border: 1px solid rgba(34, 211, 238, 0.12);
}


.featured-tool-eyebrow {
  margin: 24px 0 8px;

  color: #22d3ee;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}


.featured-tool-title {
  margin: 0;

  color: #f8fafc;

  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}


.featured-tool-description {
  max-width: 480px;

  margin: 18px 0 0;

  color: #94a3b8;

  font-size: 15px;
  line-height: 1.7;
}


.featured-tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;

  margin-top: 22px;
}


.featured-tool-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #cbd5e1;

  font-size: 12px;
}


.featured-tool-features svg {
  width: 15px;
  height: 15px;

  color: #22d3ee;
}


.featured-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;

  margin-top: 26px;

  color: #22d3ee;

  font-size: 14px;
  font-weight: 600;
}


.featured-tool-link svg {
  transition: transform 0.2s ease;
}


.featured-tool-card:hover .featured-tool-link svg {
  transform: translateX(4px);
}


/* =========================================================
   CALCULATOR PREVIEW
   ========================================================= */

.featured-tool-preview {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}


.calculator-window {
  width: 100%;
  max-width: 500px;

  background: #0b1110;

  border: 1px solid rgba(148, 163, 184, 0.16);

  border-radius: 14px;

  overflow: hidden;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.35),
    0 0 35px rgba(34, 211, 238, 0.04);
}


/* Window Header */

.calculator-window-header {
  height: 38px;

  display: flex;
  align-items: center;

  padding: 0 14px;

  border-bottom: 1px solid rgba(148, 163, 184, 0.10);

  background: rgba(255, 255, 255, 0.015);
}


.calculator-window-dots {
  display: flex;
  gap: 5px;

  margin-right: 12px;
}


.calculator-window-dots span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #475569;
}


.calculator-window-title {
  color: #64748b;

  font-size: 10px;
  font-weight: 500;
}


/* Calculator Body */

.calculator-demo-body {
  padding: 20px;
}


.calculator-demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 14px;
}


.calculator-demo-heading span {
  color: #e2e8f0;

  font-size: 13px;
  font-weight: 600;
}


.calculator-demo-heading small {
  color: #64748b;

  font-size: 9px;
}


/* Main Input */

.calculator-demo-field {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 13px 14px;

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(148, 163, 184, 0.10);

  border-radius: 8px;
}


.calculator-demo-field span {
  color: #64748b;

  font-size: 10px;
}


.calculator-demo-field strong {
  color: #f8fafc;

  font-size: 14px;
}


/* Small Fields */

.calculator-demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 10px;
}


.calculator-demo-small-field {
  display: flex;
  flex-direction: column;
  gap: 5px;

  padding: 11px 12px;

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(148, 163, 184, 0.08);

  border-radius: 8px;
}


.calculator-demo-small-field span {
  color: #64748b;

  font-size: 9px;
}


.calculator-demo-small-field strong {
  color: #cbd5e1;

  font-size: 11px;
}


/* Results */

.calculator-demo-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

  margin-top: 14px;
}


.calculator-result-main {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 15px;

  background: rgba(34, 211, 238, 0.055);

  border: 1px solid rgba(34, 211, 238, 0.10);

  border-radius: 10px;
}


.calculator-result-main span {
  color: #94a3b8;

  font-size: 9px;
}


.calculator-result-main strong {
  margin-top: 5px;

  color: #f8fafc;

  font-size: 23px;
  line-height: 1.1;
}


.calculator-result-main small {
  margin-top: 7px;

  color: #64748b;

  font-size: 8px;
}


/* SVG Breakdown */

.salary-breakdown-visual {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}


.salary-breakdown-visual svg {
  width: 100%;
  height: auto;
}


/* Bottom Metrics */

.calculator-demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;

  margin-top: 12px;
}


.calculator-demo-metrics > div {
  padding: 10px;

  background: rgba(255, 255, 255, 0.018);

  border: 1px solid rgba(148, 163, 184, 0.07);

  border-radius: 7px;
}


.calculator-demo-metrics span {
  display: block;

  color: #64748b;

  font-size: 8px;
}


.calculator-demo-metrics strong {
  display: block;

  margin-top: 4px;

  color: #cbd5e1;

  font-size: 11px;
}


.calculator-demo-metrics .score-good {
  color: #4ade80;
}


/* =========================================================
   UPCOMING TOOLS
   ========================================================= */

.upcoming-tools {
  display: flex;
  flex-direction: column;

  margin-top: 14px;

  border: 1px solid rgba(148, 163, 184, 0.10);

  border-radius: 14px;

  overflow: hidden;

  background: rgba(15, 23, 23, 0.45);
}


.upcoming-tool-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;

  padding: 19px 22px;

  transition: background 0.2s ease;
}


.upcoming-tool-card + .upcoming-tool-card {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}


.upcoming-tool-card:hover {
  background: rgba(255, 255, 255, 0.018);
}


/* Upcoming Icon */

.upcoming-tool-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  color: #64748b;

  background: rgba(148, 163, 184, 0.06);

  border: 1px solid rgba(148, 163, 184, 0.08);
}


.upcoming-tool-icon svg {
  width: 21px;
  height: 21px;
}


.upcoming-tool-content {
  min-width: 0;
}


.upcoming-tool-top {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-wrap: wrap;
}


.upcoming-tool-top h3 {
  margin: 0;

  color: #cbd5e1;

  font-size: 15px;
  font-weight: 600;
}


.tool-badge-soon {
  padding: 4px 7px;

  color: #64748b;

  background: rgba(100, 116, 139, 0.08);

  border: 1px solid rgba(100, 116, 139, 0.10);

  font-size: 9px;
}


.upcoming-tool-content p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 12px;
  line-height: 1.5;
}


.upcoming-tool-status {
  color: #475569;

  font-size: 10px;

  white-space: nowrap;
}


/* =========================================================
   FOOTER
   ========================================================= */

.tools-showcase-footer {
  margin-top: 20px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .featured-tool-card {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .featured-tool-preview {
    order: 2;
  }

  .calculator-window {
    max-width: none;
  }

}


@media (max-width: 640px) {

  .featured-tool-card {
    padding: 22px;

    border-radius: 14px;
  }

  .featured-tool-title {
    font-size: 27px;
  }

  .featured-tool-description {
    font-size: 14px;
  }

  .featured-tool-features {
    flex-direction: column;
    gap: 9px;
  }

  .calculator-demo-body {
    padding: 14px;
  }

  .calculator-demo-results {
    grid-template-columns: 1fr;
  }

  .calculator-demo-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .upcoming-tool-card {
    grid-template-columns: 40px 1fr;

    padding: 16px;
  }

  .upcoming-tool-icon {
    width: 38px;
    height: 38px;
  }

  .upcoming-tool-status {
    display: none;
  }

}