/* ======================
   Delivery Fabric Page Styles
   Linked after styles.css; all base, header, nav, footer,
   button and page-hero styles are inherited from styles.css.
   ====================== */

/* --- Hero extensions --- */

.page-hero .hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bright-cyan);
  margin-bottom: var(--space-md);
}

.page-hero .fabric-title {
  color: #00A8E8;
  font-family: 'Inter', sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.page-hero .fabric-byline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  margin-top: 2px;
  margin-bottom: var(--space-lg);
}

.page-hero .hero-subheading {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.page-hero p {
  max-width: 500px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fabric-diagram {
  width: 100%;
  height: 100%;
  max-width: 540px;
  overflow: visible;
}

/* --- Fabric page section padding overrides ---
   The global section rule sets 80px top/bottom. Fabric page uses tighter
   rhythm; these overrides apply only when delivery-fabric-styles.css is loaded. */

.white-section,
.df-platform-section {
  padding: 56px 0;
}

/* --- Features Section --- */

.df-section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.df-section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.df-section-header p {
  font-size: 1.125rem;
  color: var(--cool-gray);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.6;
}

.df-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.df-feature-card {
  background-color: var(--off-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--bright-cyan);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.df-feature-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--bright-cyan);
  opacity: 0.03;
  border-radius: 50%;
  transition: all var(--transition-slow);
}

.df-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.df-feature-card:hover::before {
  transform: scale(1.5);
  opacity: 0.05;
}

.df-feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--bright-cyan);
}

.df-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: var(--space-sm);
}

.df-feature-card p {
  color: var(--cool-gray);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* --- Platform Section (dark gradient) --- */

.df-platform-section {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--slate) 100%);
  color: #ffffff;
}

.df-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.df-platform-visual {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
}

.dashboard-mock {
  background: rgba(26, 53, 81, 0.8);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 168, 232, 0.2);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.dashboard-logo-text {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bright-cyan);
  font-family: var(--font-mono);
}

.dashboard-dots {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.dashboard-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 280px;
}

.dashboard-sidebar {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(0, 168, 232, 0.1);
  padding: var(--space-sm);
  font-size: 0.75rem;
}

.sidebar-item {
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  border-left: 2px solid transparent;
}

.sidebar-item.sidebar-active {
  background: rgba(0, 168, 232, 0.1);
  border-left-color: var(--bright-cyan);
  color: var(--bright-cyan);
  font-weight: 500;
}

.sidebar-section-label {
  margin-top: 8px;
  padding: 8px var(--space-sm);
  border-top: 1px solid rgba(0, 168, 232, 0.1);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-main {
  padding: var(--space-md);
}

.dashboard-welcome {
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-subtitle {
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.dashboard-bottom-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dashboard-widget {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 168, 232, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
}

.widget-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.widget-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.widget-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.widget-accent {
  color: var(--bright-cyan);
}

.widget-health-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bright-cyan);
  margin-top: 8px;
}

.widget-health-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.widget-risks {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  line-height: 1.7;
}

.risk-high { color: #FF6B6B; }
.risk-medium { color: #FFB84D; }

.df-platform-section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.2;
  color: #ffffff;
}

.capabilities-heading {
  text-align: center;
}

.capabilities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 820px;
  margin: 0 auto;
}

.capability-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.capability-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--bright-cyan);
  margin-top: 2px;
}

.capability-item p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Differentiators Section --- */

.df-diff-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.df-diff-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.df-diff-header p {
  font-size: 1.125rem;
  color: var(--cool-gray);
  line-height: 1.6;
}

.df-differentiators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.df-diff-block {
  text-align: center;
  padding: var(--space-lg);
}

.df-diff-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  color: var(--bright-cyan);
}

.df-diff-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: var(--space-sm);
}

.df-diff-block p {
  color: var(--cool-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Platform Section Heading --- */

.fabric-platform-heading {
  text-align: center;
  padding-bottom: 0;
}

.fabric-platform-heading h2 {
  margin-bottom: 0;
}

.fabric-platform-content {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-lg);
}

/* --- Product Showcase Journey --- */

.showcase-journey {
  padding: 0;
}

.showcase-item {
  padding: var(--space-xl) 0;
  position: relative;
}

.showcase-item + .showcase-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-item-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-md);
}

.showcase-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bright-cyan);
  background: rgba(0, 168, 232, 0.1);
  border: 1px solid rgba(0, 168, 232, 0.22);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: var(--space-md);
}

.showcase-item-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.showcase-item-text p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto;
}

.showcase-item-image {
  position: relative;
}

.showcase-image-inner {
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.16),
    0 8px 32px rgba(0, 0, 0, 0.28),
    0 40px 100px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(0, 168, 232, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.showcase-image-inner:hover {
  transform: scale(1.02);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.36),
    0 56px 120px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 168, 232, 0.16);
}

.showcase-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* Scroll reveal — only active when JS sets data-reveal on .showcase-journey */

.showcase-journey[data-reveal] .showcase-item-text,
.showcase-journey[data-reveal] .showcase-item-image {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-journey[data-reveal] .showcase-item.is-visible .showcase-item-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.showcase-journey[data-reveal] .showcase-item.is-visible .showcase-item-image {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Inline accent colour for branded text in body copy */
.fabric-accent {
  color: var(--bright-cyan);
}

/* --- Final CTA extensions --- */

.final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.final-cta .cta-text {
  max-width: 600px;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .white-section,
  .df-platform-section {
    padding: 44px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-visual {
    height: 300px;
  }

  .df-section-header {
    margin-bottom: var(--space-lg);
  }

  .df-features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .capabilities-list {
    grid-template-columns: 1fr;
  }

  .df-differentiators-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .showcase-item {
    padding: var(--space-xl) 0;
  }

  .showcase-item-text {
    margin-bottom: var(--space-sm);
  }

  .showcase-image-inner {
    border-radius: 10px;
  }

  /* Reduce hover scale on touch devices */
  @media (hover: none) {
    .showcase-image-inner:hover {
      transform: none;
      box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.16),
        0 8px 32px rgba(0, 0, 0, 0.28),
        0 40px 100px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 0 1px rgba(0, 168, 232, 0.08);
    }
  }
}
