@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&family=Syne:wght@500;700&display=swap');

:root {
  --bg-base: #000000;
  --bg-surface: #111111;
  --bg-card: #222222;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-primary: #eab308;
  --accent-secondary: #ca8a04;
  --border-color: #333333;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Syne', sans-serif;
}

/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
}

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

h1,
h2,
h3,
.logo-text {
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.highlight {
  color: var(--accent-primary) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline !important;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow-x: hidden !important;
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 6px;
  background: var(--accent-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* HEADER */
.header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 4px solid var(--text-primary);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-primary);
  border-radius: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* HERO */
.hero-intro {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--accent-primary);
  color: #000;
  border-radius: 0;
  border: none;
}

.hero-intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  padding: 1.5rem;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--accent-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--accent-primary);
}

.stat-num,
.stat-number {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--accent-primary);
}

/* SECTIONS */
.content-block {
  margin: 3rem 0;
}

.section {
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: 4px solid var(--text-primary);
  border-radius: 0;
  box-shadow: 12px 12px 0 var(--accent-primary);
}

.section:nth-child(even) {
  box-shadow: -12px 12px 0 var(--text-primary);
  border-color: var(--accent-primary);
}

.section-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 1.2rem;
  font-weight: 900;
  border: none;
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.section p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section img {
  width: 100% !important;
  max-height: 450px !important;
  object-fit: cover !important;
  margin: 1.5rem auto !important;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  background: var(--text-primary);
  color: #000;
  border-radius: 0;
  border: 2px solid var(--text-primary);
  box-shadow: 4px 4px 0 var(--accent-primary);
}

.cta-button:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--accent-primary);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  background: var(--text-primary);
  color: #000;
  border-radius: 0;
  border: 2px solid var(--text-primary);
  box-shadow: 4px 4px 0 var(--accent-primary);
  margin-top: 1rem;
}

.cta-primary:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--accent-primary);
}

.section-cta {
  margin-top: 1.5rem;
}

/* MILESTONE TIMELINE */
.milestone-timeline {
  position: relative;
  padding: 3rem 0;
  margin: 4rem auto;
  max-width: 1000px;
}

.milestone-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-primary);
  transform: translateX(-50%);
  z-index: 1;
}

.milestone-item {
  position: relative;
  width: calc(50% - 40px);
  margin-bottom: 3rem !important;
  background: var(--bg-surface) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  z-index: 2;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.milestone-item:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
}

.milestone-item:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
}

.milestone-item:hover {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.milestone-item.active {
  border-color: var(--accent-primary) !important;
}

.milestone-marker {
  position: absolute;
  top: 25px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 4px solid var(--border-color);
  z-index: 5;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.milestone-item:nth-child(odd) .milestone-marker {
  right: -52px;
}

.milestone-item:nth-child(even) .milestone-marker {
  left: -52px;
}

.milestone-item.active .milestone-marker {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary);
  transform: scale(1.2);
}

.milestone-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 2rem;
  cursor: pointer;
  display: block;
  position: relative;
  font-family: inherit;
  color: var(--text-primary);
  transition: background-color 0.2s ease;
  border-bottom: 2px solid var(--border-color);
}

.milestone-header:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.milestone-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.milestone-step {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-family: var(--font-heading);
}

.milestone-cat {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.milestone-header h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0;
  padding-right: 2rem;
  font-weight: 700;
}

.milestone-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.milestone-item.active .milestone-icon {
  transform: translateY(-50%) rotate(45deg);
}

.milestone-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.milestone-item.active .milestone-body {
  opacity: 1;
  visibility: visible;
}

.milestone-content {
  padding: 2rem;
}

/* FAQ ACCORDION */
.faq-item {
  border: 2px solid var(--border-color);
  margin-bottom: 1rem;
  background: var(--bg-surface);
}

.faq-item-question {
  padding: 1rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-item-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-item-answer {
  padding: 1rem;
  border-top: 2px solid var(--border-color);
}

.faq-item .arrow {
  transition: transform 0.3s ease;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

/* WINNER / TIP / CYBER BOXES */
.winner-box,
.tip-box,
.cyber-box,
.sidebar-box {
  padding: 1.5rem;
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  margin: 1.5rem 0;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.winner-title,
.tip-box-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* RATING BAR */
.rating-bar {
  background: var(--bg-card);
  height: 8px;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
  margin: 1rem 0;
}

.rating-fill,
.rating-bar-fill {
  background: var(--accent-primary);
  height: 100%;
  width: 98%;
}

/* COMPARE TABLE */
.compare-table-wrapper {
  overflow-x: auto;
  width: 100%;
  max-width: 100vw;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table th,
.compare-table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.compare-table th {
  background: var(--bg-card);
  font-weight: bold;
  color: var(--text-primary);
}

/* FOOTER */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.link-col h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.link-col ul {
  list-style: none;
}

.link-col ul li {
  margin-bottom: 0.5rem;
}

.link-col ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item {
    width: 100%;
    margin-bottom: 1rem;
  }

  .container {
    padding: 0 1rem !important;
  }

  .section {
    padding: 1.5rem 1rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .section:nth-child(even) {
    box-shadow: none !important;
  }

  .milestone-timeline::before {
    left: 20px;
    transform: none;
  }

  .milestone-item {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    margin-right: 0 !important;
  }

  .milestone-item:nth-child(odd) .milestone-marker,
  .milestone-item:nth-child(even) .milestone-marker {
    left: -32px;
    right: auto;
  }

  .milestone-header {
    padding: 1.5rem;
  }

  .milestone-content {
    padding: 1.5rem;
  }

  .milestone-header h2 {
    font-size: 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .hero-intro h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  }

  .section-cta-flex {
    flex-direction: column;
  }

  .cta-button,
  .cta-primary {
    width: 100%;
    justify-content: center;
  }

  .section img {
    max-height: 250px !important;
  }
}