/* ==========================================================================
   CHRONOTASK SAAS STYLES FOR HOMEPAGE (apple.css)
   AIRadar Landing Site Overhaul
   ========================================================================== */

@import url('./saas-tokens.css');

/* Global Container */
.saas-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.saas-section {
  padding: 90px 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.saas-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  box-sizing: border-box;
  padding: 0 12px;
}

.saas-section-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--saas-text-main);
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.saas-section-desc {
  font-size: 1.15rem;
  color: var(--saas-text-muted);
  line-height: 1.6;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ==========================================================================
   1. HERO SECTION (ChronoTask Signature)
   ========================================================================== */

.saas-hero {
  position: relative;
  min-height: 740px;
  padding: 80px 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  background-image: radial-gradient(circle, #CBD5E1 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  overflow: hidden;
}

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--saas-card-border);
  box-shadow: var(--shadow-floating);
  margin-bottom: 24px;
}

.hero-dots-grid {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 6px;
}

.hero-dot-icon {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #0F172A;
}

.hero-dot-icon.active {
  background: #1E6FF2;
}

.hero-headline {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #0F172A;
  text-align: center;
  margin: 0 0 20px;
}

.headline-muted {
  color: #94A3B8;
  font-weight: 700;
  display: block;
}

.hero-subtext {
  font-size: 1.2rem;
  color: #64748B;
  text-align: center;
  max-width: 640px;
  line-height: 1.6;
  margin: 0 auto 36px;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  position: relative;
}

/* Floating Elements in Hero */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hero Card 1: Top Left Sticky Note */
.hero-card-sticky {
  position: absolute;
  top: 14%;
  left: 5%;
  width: 260px;
  background: #FEF08A;
  border: 1px solid #FDE047;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 16px 36px rgba(234, 179, 8, 0.28);
  transform: rotate(-6deg);
  pointer-events: auto;
  font-size: 0.95rem;
  color: #713F12;
  font-weight: 600;
  line-height: 1.45;
}

.hero-card-sticky::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #EF4444;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Hero Chip 1: Under Sticky */
.hero-chip-check {
  position: absolute;
  top: 36%;
  left: 8%;
  pointer-events: auto;
  transform: rotate(4deg);
}

/* Hero Card 2: Bottom Left Course Tasks */
.hero-card-tasks {
  position: absolute;
  bottom: 8%;
  left: 4%;
  width: 280px;
  background: #FFFFFF;
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-floating);
  transform: rotate(-3deg);
  pointer-events: auto;
}

.hero-card-tasks .tasks-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.task-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.task-item:last-child { margin-bottom: 0; }

.task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.task-bar {
  height: 6px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}

.task-fill {
  height: 100%;
  border-radius: 4px;
}

.fill-orange { background: #F97316; }
.fill-blue { background: #1E6FF2; }

/* Hero Card 3: Top Right Reminders */
.hero-card-reminders {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 270px;
  background: #FFFFFF;
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-floating);
  transform: rotate(3deg);
  pointer-events: auto;
}

.hero-chip-clock {
  position: absolute;
  top: -24px;
  left: -24px;
  transform: rotate(-8deg);
}

/* Hero Card 4: Bottom Right Integrations */
.hero-card-integrations {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 290px;
  background: #FFFFFF;
  border: 1px solid #E8EEF5;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-floating);
  transform: rotate(3deg);
  pointer-events: auto;
}

.integrations-chips-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.brand-chip-mini {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ==========================================================================
   2. "SOLVE YOUR BIGGEST CHALLENGES" EQUIVALENT SECTION
   ========================================================================== */

.challenges-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.benefit-card {
  text-align: left;
}

.benefit-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
}

.benefit-text {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* Big Blue Dashboard Showcase Slab */
.dashboard-showcase-slab {
  background: linear-gradient(135deg, #1E6FF2 0%, #1557B0 100%);
  border-radius: 28px;
  padding: 48px 48px 0;
  position: relative;
  box-shadow: var(--shadow-elevated-blue);
  overflow: visible;
}

.dashboard-showcase-slab .browser-frame {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

/* Decorative Chips on Showcase Slab */
.slab-floating-chip-left {
  position: absolute;
  top: 45%;
  left: -24px;
  width: 56px;
  height: 56px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  transform: rotate(-6deg);
  z-index: 10;
}

.slab-floating-chip-right {
  position: absolute;
  top: 30%;
  right: -24px;
  width: 56px;
  height: 56px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #10B981;
  transform: rotate(6deg);
  z-index: 10;
}

/* ==========================================================================
   3. ALTERNATING FEATURE SECTIONS (No 3D Models!)
   ========================================================================== */

.feature-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.feature-block-row > *,
.benefits-row > *,
.partners-grid > *,
.saas-pricing-grid > *,
.testimonials-grid > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.feature-block-row:last-child {
  margin-bottom: 0;
}

.feature-block-row.reverse {
  direction: rtl;
}

.feature-block-row.reverse > * {
  direction: ltr;
}

.feature-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  box-sizing: border-box;
}

.feature-heading {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin: 0 0 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.feature-paragraph {
  font-size: 1.05rem;
  color: #64748B;
  line-height: 1.65;
  margin: 0 0 24px;
}

.feature-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--saas-primary-light);
  color: var(--saas-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Tissue Tag Chips for AI Segmentation */
.tissue-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tissue-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tissue-green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.tissue-amber {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.tissue-rose {
  background: #FFF1F2;
  color: #E11D48;
  border: 1px solid #FECDD3;
}

/* ==========================================================================
   4. PARTNERS & INTEGRATIONS GRID (ChronoTask Style)
   ========================================================================== */

.partners-section {
  padding: 80px 0;
  background-color: #FAFAFA;
  background-image: radial-gradient(circle, #E2E8F0 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-tile {
  background: #FFFFFF;
  border: 1px solid var(--saas-card-border);
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100px;
}

.partner-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.partner-tile img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.25s ease;
}

.partner-tile:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ==========================================================================
   5. 3-TIER PRICING CARDS (Middle Plan Elevated Blue Card)
   ========================================================================== */

.saas-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card-saas {
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid #E8EEF5;
  box-shadow: var(--shadow-card);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card-saas:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* The ChronoTask Elevated Blue Center Card */
.pricing-card-saas.elevated-blue {
  background: #1E6FF2;
  color: #FFFFFF;
  border-color: #1E6FF2;
  box-shadow: var(--shadow-elevated-blue);
  transform: scale(1.04);
  z-index: 5;
}

.pricing-card-saas.elevated-blue:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-corner-chip {
  position: absolute;
  top: -18px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #F59E0B;
  transform: rotate(6deg);
}

.pricing-plan-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pricing-plan-sub {
  font-size: 0.88rem;
  color: #64748B;
  margin: 0 0 24px;
}

.pricing-card-saas.elevated-blue .pricing-plan-sub {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748B;
}

.pricing-card-saas.elevated-blue .pricing-period {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
}

.pricing-card-saas.elevated-blue .pricing-features-list li {
  color: #FFFFFF;
}

.pricing-features-list li i {
  color: #10B981;
  font-size: 0.9rem;
}

.pricing-card-saas.elevated-blue .pricing-features-list li i {
  color: #FFFFFF;
}

/* ==========================================================================
   6. LIGHT CENTERED CTA BLOCK
   ========================================================================== */

.saas-cta-card {
  max-width: 1000px;
  margin: 40px auto;
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid #E8EEF5;
  box-shadow: var(--shadow-floating);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.saas-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--saas-primary-gradient);
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

.testimonials-grid .saas-card {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

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

@media (max-width: 1100px) {
  .hero-headline {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
  }

  .benefits-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .saas-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .pricing-card-saas.elevated-blue {
    transform: none;
  }

  .pricing-card-saas.elevated-blue:hover {
    transform: translateY(-4px);
  }

  .hero-floating-elements {
    display: none;
  }

  .slab-floating-chip-left,
  .slab-floating-chip-right {
    display: none;
  }

  .feature-block-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block-row.reverse {
    direction: ltr;
  }

  .dashboard-showcase-slab {
    padding: 32px 24px 0;
  }
}

@media (max-width: 860px) {
  .saas-hero {
    min-height: auto;
    padding: 60px 16px 80px;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .saas-section-title {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
  }

  .feature-heading {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }

  .dashboard-showcase-slab {
    padding: 24px 18px 0;
  }
}

@media (max-width: 600px) {
  .saas-container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .saas-section {
    padding: 50px 0;
  }

  .saas-section-header {
    margin-bottom: 32px;
  }

  .saas-section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .saas-section-desc {
    font-size: 0.98rem;
  }

  .saas-hero {
    padding: 44px 16px 60px;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
    margin-bottom: 12px;
  }

  .hero-subtext {
    font-size: 0.98rem;
    margin-bottom: 24px;
    padding: 0 8px;
  }

  .saas-btn-primary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }

  .partner-tile {
    padding: 16px 12px;
    min-height: 80px;
    border-radius: 14px;
  }

  .partner-tile img {
    max-height: 38px;
  }

  .dashboard-showcase-slab {
    padding: 18px 12px 0;
    border-radius: 18px;
  }

  .saas-cta-card {
    padding: 40px 20px;
    border-radius: 20px;
    margin: 24px auto;
  }

  .feature-heading {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }
}
