/* ===== Adaptive Platform Page Styles ===== */

/* Ensure Degular font everywhere */
.platform-hero,
.platform-hero *,
.platform-problem,
.platform-problem *,
.platform-categories,
.platform-categories *,
.platform-approach,
.platform-approach *,
.platform-products,
.platform-products *,
.platform-ecosystem,
.platform-ecosystem *,
.platform-cta,
.platform-cta * {
  font-family: 'Degular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.platform-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  background: var(--bg-hero-gradient);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.platform-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 99, 0, 0.3), transparent);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(230, 99, 0, 0.1);
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signal-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  animation: badgeFadeIn 600ms var(--ease-out);
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Use strong easing curve */

.platform-hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: titleSlideUp 500ms var(--ease-out) 0.2s both;
}

@keyframes titleSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--signal-orange);
  margin-bottom: 2rem;
  animation: titleSlideUp 500ms var(--ease-out) 0.3s both;
}

.platform-hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 3rem;
  animation: titleSlideUp 500ms var(--ease-out) 0.4s both;
}

.platform-hero .hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: titleSlideUp 500ms var(--ease-out) 0.5s both;
}

/* Hero Data Flow */
.hero-data-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 6rem;
  padding: 0 2rem;
  opacity: 0;
  animation: flowFadeIn 1s ease-out 0.8s forwards;
}

@keyframes flowFadeIn {
  to {
    opacity: 1;
  }
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 12px;
  min-width: 140px;
  animation: nodePopIn 600ms var(--ease-out) forwards;
  opacity: 0;
}

.flow-node[data-node="1"] {
  animation-delay: 1s;
}

.flow-node[data-node="2"] {
  animation-delay: 1.2s;
}

.flow-node[data-node="3"] {
  animation-delay: 1.4s;
}

@keyframes nodePopIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.flow-node svg {
  width: 32px;
  height: 32px;
  color: var(--signal-orange);
  flex-shrink: 0;
}

.flow-node span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.flow-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal-orange), transparent);
  position: relative;
  opacity: 0;
  animation: connectorFadeIn 0.6s ease-out forwards;
}

.flow-connector[data-connector="1"] {
  animation-delay: 1.3s;
}

.flow-connector[data-connector="2"] {
  animation-delay: 1.5s;
}

@keyframes connectorFadeIn {
  to {
    opacity: 0.6;
  }
}

/* Problem Section */
.platform-problem {
  padding: 8rem 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.problem-text {
  position: sticky;
  top: 120px;
}

.section-title-large {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.problem-story p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.problem-story strong {
  color: var(--signal-orange);
  font-weight: 600;
}

.problem-conclusion {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
}

/* Document Cascade */
.document-cascade {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.doc-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 8px;
  opacity: 0;
  animation: stepSlideIn 500ms var(--ease-out) forwards;
}

.doc-step[data-step="1"] { animation-delay: 50ms; }
.doc-step[data-step="2"] { animation-delay: 100ms; }
.doc-step[data-step="3"] { animation-delay: 150ms; }
.doc-step[data-step="4"] { animation-delay: 200ms; }
.doc-step[data-step="5"] { animation-delay: 250ms; }

@keyframes stepSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.doc-step svg {
  width: 28px;
  height: 28px;
  color: var(--signal-orange);
  flex-shrink: 0;
}

.doc-step span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cascade-arrow {
  font-size: 1.5rem;
  color: rgba(230, 99, 0, 0.4);
  text-align: center;
  animation: arrowPulse 3s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* Categories Section */
.platform-categories {
  padding: 8rem 0;
}

.section-title-center {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.category-card {
  padding: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              border-color 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 99, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

.category-card:active {
  transform: scale(0.98);
}

.category-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 99, 0, 0.1);
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.category-icon svg {
  width: 32px;
  height: 32px;
  color: var(--signal-orange);
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.category-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.category-problem {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(230, 99, 0, 0.05);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--signal-orange);
}

/* Blindspot Reveal */
.blindspot-reveal {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(230, 99, 0, 0.05), rgba(230, 99, 0, 0.1));
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 12px;
}

.blindspot-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blindspot-answer {
  font-size: 2rem;
  font-weight: 700;
  color: var(--signal-orange);
  letter-spacing: -0.01em;
}

/* Platform Approach */
.platform-approach {
  padding: 8rem 0;
}

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

.platform-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  padding: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 12px;
  position: relative;
  transition: transform 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              border-color 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--signal-orange);
    box-shadow: 0 12px 48px rgba(230, 99, 0, 0.15);
  }
}

.pillar-card:active {
  transform: scale(0.98);
}

.pillar-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(230, 99, 0, 0.1);
  line-height: 1;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 99, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  color: var(--signal-orange);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.pillar-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Products Showcase */
.platform-products {
  padding: 8rem 0;
}

.products-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-showcase-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              border-color 300ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--signal-orange);
    box-shadow: 0 12px 48px rgba(230, 99, 0, 0.1);
  }
}

.product-showcase-card:active {
  transform: scale(0.98);
}

.showcase-visual {
  margin-bottom: 2rem;
}

.showcase-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 99, 0, 0.1);
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 12px;
}

.showcase-icon svg {
  width: 40px;
  height: 40px;
  color: var(--signal-orange);
}

.showcase-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.showcase-tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.showcase-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--signal-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-link::after {
  content: '→';
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-showcase-card:hover .showcase-link::after {
    transform: translateX(3px);
  }
}

.products-foundation {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Ecosystem Section */
.platform-ecosystem {
  padding: 8rem 0;
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.ecosystem-story p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.ecosystem-story strong {
  color: var(--signal-orange);
  font-weight: 600;
}

.ecosystem-mission {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
}

/* Ecosystem Diagram */
.ecosystem-diagram {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.eco-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(230, 99, 0, 0.3);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eco-node.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-color: var(--signal-orange);
  background: rgba(230, 99, 0, 0.1);
}

.eco-node.center svg {
  width: 48px;
  height: 48px;
  color: var(--signal-orange);
}

.eco-node.center span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--signal-orange);
  text-align: center;
  line-height: 1.2;
}

.eco-node.satellite {
  width: 64px;
  height: 64px;
}

.eco-node.satellite svg {
  width: 24px;
  height: 24px;
  color: var(--signal-orange);
}

.eco-node.satellite[data-pos="1"] {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.eco-node.satellite[data-pos="2"] {
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

.eco-node.satellite[data-pos="3"] {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.eco-node.satellite[data-pos="4"] {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

/* Final CTA */
.platform-cta {
  padding: 8rem 0;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(230, 99, 0, 0.05), rgba(230, 99, 0, 0.1));
  border: 1px solid rgba(230, 99, 0, 0.2);
  border-radius: 16px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .problem-grid,
  .ecosystem-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .problem-text {
    position: static;
  }

  .platform-pillars,
  .products-showcase {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-data-flow {
    flex-direction: column;
    gap: 1rem;
  }

  .flow-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--signal-orange), transparent);
  }

  .platform-hero,
  .platform-problem,
  .platform-categories,
  .platform-approach,
  .platform-products,
  .platform-ecosystem,
  .platform-cta {
    padding: 4rem 0;
  }

  .ecosystem-diagram {
    width: 300px;
    height: 300px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cascade-arrow,
  .eco-node.center,
  .eco-node.satellite {
    animation: none;
  }

  .flow-node,
  .doc-step {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Keep opacity transitions but remove movement */
  .hero-badge,
  .platform-hero-title,
  .platform-hero-subtitle,
  .platform-hero-description,
  .platform-hero .hero-ctas {
    animation: fadeIn 200ms ease both;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Editorial Break Section */
.editorial-break {
  padding: 12rem 0;
  background: var(--bg-primary);
  position: relative;
}

.editorial-content {
  max-width: 1100px;
  margin: 0 auto;
}

.editorial-line {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.editorial-emphasis {
  color: var(--signal-orange);
}

.editorial-secondary {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--text-secondary);
}

.editorial-conclusion {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 3rem;
}

/* Platform CTA Section */
.platform-cta {
  padding: 8rem 0;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.cta-story {
  margin-bottom: 4rem;
}

.cta-highlight {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2rem;
}

.cta-mission {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.4;
  color: var(--signal-orange);
  font-weight: 700;
}

.cta-box {
  padding: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
}

.cta-heading {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Problem emphasis */
.problem-emphasis {
  color: var(--signal-orange);
  font-weight: 600;
}
