/* --- Variables & Reset --- */
:root {
  --bg-color: #03030a;
  --text-main: #f0f0f5;
  --text-muted: #a0a0b5;
  --primary: #3eb6e6;
  --primary-glow: rgba(62, 182, 230, 0.4);
  --secondary: #298bb3;
  --accent-orange: #f57e20;
  --accent-red: #ff3366;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.08);
  --font-main: 'Montserrat', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 40px 40px;
}

/* Custom Selection */
::selection {
  background: var(--primary);
  color: #fff;
}

/* --- Scrollbar & Progress --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* --- Custom Cursor --- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.2s, height 0.2s;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.1;
}

.mega-title {
  font-size: clamp(4rem, 8vw, 7rem);
  letter-spacing: -2px;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 15px;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.logo {
  height: 35px;
  width: auto;
  display: block;
}
.large-logo {
  height: 80px;
  margin: 20px auto 0;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  opacity: 0.7;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

/* --- Layout Utilities --- */
.section {
  min-height: 100vh;
  padding: 100px 5%;
  display: flex;
  align-items: center;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.section-header {
  margin-bottom: 60px;
  position: relative;
}
.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(62, 182, 230, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(62, 182, 230, 0.2);
}
.section-num {
  font-size: 8rem;
  position: absolute;
  top: -60px;
  left: -40px;
  opacity: 0.05;
  font-weight: 800;
  z-index: -1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}
.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 30px var(--primary-glow);
}
.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--primary-glow);
  background: var(--secondary);
}

/* --- Hero Section --- */
.hero {
  justify-content: flex-start;
  overflow: hidden;
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-content .subtitle {
  font-size: 1.5rem;
  max-width: 500px;
}
.hero-number {
  font-size: 25vw;
  font-weight: 800;
  line-height: 0.8;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
  top: -100px;
  right: -100px;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.3);
  bottom: 100px;
  left: -200px;
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.team-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  padding: 25px 20px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: rgba(77, 75, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.card-icon {
  margin-bottom: 12px;
  color: var(--secondary);
}
.card-icon svg {
  width: 36px;
  height: 36px;
}
.team-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: #fff;
}
.team-card p {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* --- WP Stack Section --- */
.wp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.wp-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 40px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.wp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.wp-card:hover {
  transform: translateY(-5px);
  background: rgba(62, 182, 230, 0.05);
}
.wp-card:hover::before {
  transform: scaleX(1);
}
.wp-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}
.wp-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

/* --- Triangle Section --- */
.triangle-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 50px;
}
.triangle-graphic {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}
.triangle-shape {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 340px solid var(--primary);
  opacity: 0.1;
  z-index: 1;
  transition: var(--transition);
}
.triangle-graphic:hover .triangle-shape {
  opacity: 0.2;
}

.node {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.node:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--primary-glow);
}
.node-scope { top: 0; left: 50%; transform: translateX(-50%); }
.node-scope:hover { transform: translateX(-50%) scale(1.1); }
.node-cost { bottom: 0; left: 0; border-color: var(--accent-orange); }
.node-cost:hover { background: var(--accent-orange); border-color: var(--accent-orange); }
.node-time { bottom: 0; right: 0; border-color: var(--secondary); }
.node-time:hover { background: var(--secondary); border-color: var(--secondary); }

.triangle-info {
  flex: 1;
  min-width: 300px;
}
.info-box {
  display: none;
  background: var(--surface);
  padding: 40px;
  border-radius: 20px;
  border-left: 4px solid var(--primary);
  animation: fadeIn 0.4s ease forwards;
}
.info-box.active {
  display: block;
}
.info-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--surface-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 60px;
}
.timeline-dot {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  z-index: 2;
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}
.timeline-content {
  background: var(--surface);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}
.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  margin-top: 15px;
  padding: 5px 15px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Rules Section --- */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}
.rule-card {
  padding: 40px;
  border-radius: 24px;
  background: var(--surface);
}
.warning-card {
  border: 1px solid rgba(255, 123, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 123, 0, 0.05), transparent);
}
.accessibility-card {
  border: 1px solid rgba(255, 51, 102, 0.3);
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.05), transparent);
}
.rule-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
}
.warning-card h3 { color: var(--accent-orange); }
.accessibility-card h3 { color: var(--accent-red); }

.alert-box {
  margin-top: 20px;
  padding: 15px 20px;
  background: rgba(255, 123, 0, 0.1);
  border-left: 4px solid var(--accent-orange);
  color: #fff;
  font-weight: 600;
}

/* --- Deliverables Section --- */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}
.deliverable-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  padding: 40px;
  border-radius: 20px;
}
.deliverable-box h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary);
}
.deliverable-box ul {
  list-style: none;
}
.deliverable-box li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}
.deliverable-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 800;
}
.sla-box {
  border-color: rgba(62, 182, 230, 0.3);
  background: linear-gradient(135deg, rgba(62, 182, 230, 0.05), transparent);
}

/* --- Next Steps Banner --- */
.next-steps-banner {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
  box-shadow: 0 10px 30px var(--primary-glow);
}
.next-steps-banner h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.next-steps-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
}

.outro {
  text-align: center;
  padding: 100px 0;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal.stagger {
  transition-delay: 0.2s;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .mega-title { font-size: 3rem; }
  .triangle-graphic { width: 300px; height: 300px; }
  .triangle-shape { border-left-width: 150px; border-right-width: 150px; border-bottom-width: 250px; }
  .node { width: 80px; height: 80px; font-size: 0.9rem; }
  .rules-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .team-grid { grid-template-columns: 1fr; }
}
