/* WPS Office - Unique & Creative Original Style - Warm Carrot Edition */
:root {
  --prism-red: #e65100; /* Deep Carrot Orange */
  --prism-warm-red: #fff3e0; /* Very Light Carrot */
  --prism-black: #fff8f1; /* Warm Carrot Background */
  --prism-accent: #ff9800; /* Bright Carrot */
  --prism-glass: rgba(255, 255, 255, 0.8);
  --prism-font: "Clash Display", "Inter", system-ui, sans-serif;
  --smart-glow: 0 20px 40px rgba(230, 81, 0, 0.15);
  --card-border: 1px solid rgba(230, 81, 0, 0.08);
  --magic-speed: 0.6s;
  --magic-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--prism-black);
  color: #1d1d1f;
  font-family: var(--prism-font);
  overflow-x: hidden;
  line-height: 1.6;
  perspective: 1500px;
}

/* Fluid Background with Intelligent Depth */
.fluid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, rgba(230, 81, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 152, 0, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #fff8f1 0%, #fff3e0 100%);
  z-index: -2;
}

/* Magical 3D & Interaction Styles */
.matrix-card, .nexus-item, .bento-item, .horizon-card, .vault-card, .device-float, .hero-static-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform var(--magic-speed) var(--magic-ease), 
              box-shadow var(--magic-speed) var(--magic-ease),
              border-color 0.3s ease;
  background: #fff;
}

/* Magic Border Glow (Carrot Pulse) */
@keyframes borderPulse {
  0% { border-color: rgba(230, 81, 0, 0.2); }
  50% { border-color: rgba(255, 152, 0, 0.5); }
  100% { border-color: rgba(230, 81, 0, 0.2); }
}

.matrix-card:hover, .nexus-item:hover, .bento-item:hover {
  animation: borderPulse 2s infinite linear;
}

.hero-static-card {
  border: var(--card-border);
  border-radius: 32px;
}

/* Magnetic Content (Internal elements move slightly) */
.matrix-card *, .nexus-item *, .bento-item * {
  pointer-events: none;
  transition: transform 0.4s var(--magic-ease);
}

/* Shadow Depth Enhancement */
.matrix-card:hover {
  box-shadow: 
    0 30px 60px rgba(230, 81, 0, 0.1),
    0 0 20px rgba(230, 81, 0, 0.05);
}

/* The Magic Spot Light Effect */
.magic-spot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.6) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  mix-blend-mode: overlay;
  z-index: 5;
}

.nexus-item:hover .magic-spot, 
.matrix-card:hover .magic-spot, 
.bento-item:hover .magic-spot {
  opacity: 1;
}

/* Navigation */
.prism-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 248, 241, 0.6);
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.prism-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  color: #1d1d1f;
}

.prism-logo span {
  background: linear-gradient(90deg, var(--prism-red), var(--prism-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prism-menu a {
  color: #1d1d1f;
  text-decoration: none;
  margin-left: 40px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.prism-menu a:hover { opacity: 1; }

.prism-btn-dl {
  background: var(--prism-red);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(230, 81, 0, 0.2);
}

.prism-btn-dl:hover {
  transform: scale(1.05);
  background: var(--prism-accent);
  box-shadow: 0 15px 30px rgba(230, 81, 0, 0.3);
}

/* Creative Narrative Layouts */
.narrative-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 60px;
}

/* 01. The Nexus (Bento 2.0) */
.nexus-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 350px);
  gap: 24px;
}

.nexus-item {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  border: var(--card-border);
}

.nexus-item.main { grid-column: span 8; grid-row: span 2; }
.nexus-item.sub-1 { grid-column: span 4; }
.nexus-item.sub-2 { grid-column: span 2; }
.nexus-item.sub-3 { grid-column: span 2; }

/* 02. AI Pulse */
.ai-pulse-section {
  background: #1d1d1f;
  color: #fff;
  padding: 150px 0;
  margin: 100px 0;
  position: relative;
  overflow: hidden;
}

.pulse-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(230, 81, 0, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* 03. Epic Timeline */
.heritage-timeline {
  display: flex;
  justify-content: space-between;
  padding: 80px 0;
  position: relative;
}

.heritage-timeline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 81, 0, 0.1), transparent);
}

.timeline-node {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.node-year {
  font-size: 48px;
  font-weight: 900;
  color: var(--prism-red);
  margin-bottom: 20px;
  opacity: 0.1;
  transition: all 0.3s;
}

.timeline-node:hover .node-year {
  opacity: 1;
  transform: scale(1.1);
}

/* 04. Floating Workspace */
.workspace-canvas {
  height: 800px;
  position: relative;
  background: var(--prism-warm-red);
  border-radius: 60px;
  margin: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.device-float {
  position: absolute;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.05);
  padding: 20px;
}

.device-pc { width: 600px; height: 400px; z-index: 2; }
.device-tablet { width: 300px; height: 450px; left: 10%; bottom: 10%; z-index: 3; }
.device-mobile { width: 150px; height: 300px; right: 15%; top: 15%; z-index: 3; }

/* Matrix Feature Cards */
.matrix-card {
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.matrix-card.large { grid-column: span 8; grid-row: span 2; }
.matrix-card.small { grid-column: span 4; }
.matrix-card.medium { grid-column: span 4; grid-row: span 2; }

/* Bento Marketplace */
.bento-section {
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 24px;
}

.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--prism-warm-red);
  border: 1px solid rgba(230, 81, 0, 0.1);
  color: var(--prism-red);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 1100px) {
  .narrative-container { padding: 60px 24px; }
  .nexus-grid, .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .nexus-item, .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .heritage-timeline { flex-direction: column; gap: 40px; }
  .heritage-timeline::after { display: none; }
}
