/* sbom.study - Edgy Skeuomorphic Study Platform */
/* Colors: #f5f0e8, #4a90d9, #e8b84b, #1a1a2e, #6c757d */
/* Font: Commissioner */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Commissioner', sans-serif;
  color: #1a1a2e;
  background: #f5f0e8;
  overflow-x: hidden;
}

/* ===== LENS FLARE GLOBAL ===== */
.lens-flare {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,0.25) 0%, rgba(232,184,75,0.08) 30%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.lens-flare.active {
  opacity: 1;
}

/* ===== ANGULAR CUTS ===== */
.angular-cut {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #f5f0e8;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.angular-cut-reverse {
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #e8b84b;
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 40%, #4a3060 70%, #7a3b4e 90%, #c2664e 100%);
  overflow: hidden;
}

.city-skyline {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  height: 300px;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(26,26,46,0.3) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 60px,
      rgba(26,26,46,0.6) 60px,
      rgba(26,26,46,0.6) 120px,
      transparent 120px,
      transparent 200px,
      rgba(26,26,46,0.7) 200px,
      rgba(26,26,46,0.7) 290px,
      transparent 290px,
      transparent 340px,
      rgba(26,26,46,0.5) 340px,
      rgba(26,26,46,0.5) 390px,
      transparent 390px,
      transparent 480px
    );
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  opacity: 0.4;
}

.hero-content {
  text-align: center;
  z-index: 3;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,184,75,0.15);
  border: 1px solid rgba(232,184,75,0.4);
  color: #e8b84b;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  color: #f5f0e8;
  line-height: 1;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-dot {
  color: #e8b84b;
  text-shadow: 0 0 40px rgba(232,184,75,0.6);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(245,240,232,0.8);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background: #e8b84b;
  color: #1a1a2e;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232,184,75,0.3);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,184,75,0.5);
}

.hero-cta:hover::before {
  left: 100%;
}

.lens-flare-hero {
  position: absolute;
  top: 15%;
  right: 20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,0.2) 0%, rgba(232,184,75,0.05) 40%, transparent 70%);
  animation: flareFloat 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes flareFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  33% { transform: translate(30px, -20px) scale(1.1); opacity: 1; }
  66% { transform: translate(-20px, 15px) scale(0.95); opacity: 0.7; }
}

.hero .angular-cut {
  background: #f5f0e8;
}

/* ===== STATS SECTION ===== */
.stats-section {
  position: relative;
  padding: 6rem 2rem 8rem;
  background: #f5f0e8;
}

.notebook-bg {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 4rem 3rem;
  box-shadow: 0 2px 20px rgba(26,26,46,0.08), 0 0 0 1px rgba(26,26,46,0.04);
  position: relative;
  background-image:
    repeating-linear-gradient(transparent 0px, transparent 31px, rgba(74,144,217,0.1) 31px, rgba(74,144,217,0.1) 32px);
  background-size: 100% 32px;
}

.notebook-bg::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(220,80,80,0.2);
}

.stats-container {
  position: relative;
  z-index: 1;
}

.stats-section .section-heading {
  color: #1a1a2e;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Sticky Note Styles */
.sticky-note {
  border-radius: 2px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.1), inset 0 -2px 4px rgba(0,0,0,0.03);
  transform: rotate(-1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-note:nth-child(2) { transform: rotate(1.5deg); }
.sticky-note:nth-child(3) { transform: rotate(-0.5deg); }
.sticky-note:nth-child(4) { transform: rotate(2deg); }

.sticky-note:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 4px 8px 20px rgba(0,0,0,0.15);
}

.sticky-yellow { background: #fff9c4; }
.sticky-blue { background: #e3f2fd; }
.sticky-pink { background: #fce4ec; }
.sticky-green { background: #e8f5e9; }

.stat-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #e8b84b, #c9952a);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: #4a90d9;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a2e;
}

.stat-detail {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 400;
  line-height: 1.4;
}

.stats-section .angular-cut {
  background: #1a1a2e;
}

/* ===== CHAPTERS SECTION ===== */
.chapters-section {
  position: relative;
  padding: 6rem 2rem 8rem;
  background: #1a1a2e;
}

.desk-surface {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.chapters-section .section-heading {
  color: #f5f0e8;
}

.chapters-section .section-heading::after {
  background: #e8b84b;
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.chapter-card {
  background: #f5f0e8;
  border-radius: 6px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a90d9, #e8b84b);
}

.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.chapter-bookmark {
  position: absolute;
  top: 0;
  right: 24px;
  width: 30px;
  height: 50px;
  background: #e8b84b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  transition: height 0.3s ease;
}

.chapter-card:hover .chapter-bookmark {
  height: 60px;
}

.chapter-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(74,144,217,0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.chapter-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.chapter-desc {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.chapter-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag {
  display: inline-block;
  background: rgba(74,144,217,0.1);
  color: #4a90d9;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.chapters-section .angular-cut {
  background: #f5f0e8;
}

/* ===== STUDY AREA SECTION ===== */
.study-area-section {
  position: relative;
  padding: 6rem 2rem 8rem;
  background: #f5f0e8;
}

.notebook-paper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fffef8;
  border-radius: 0;
  padding: 4rem 4rem 4rem 5rem;
  box-shadow: 4px 4px 20px rgba(26,26,46,0.1), -2px 0 0 #e0d8c8;
  position: relative;
  overflow: hidden;
}

.notebook-margin {
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(220,80,80,0.25);
  z-index: 1;
}

.notebook-lines-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(transparent 0px, transparent 31px, rgba(74,144,217,0.08) 31px, rgba(74,144,217,0.08) 32px);
  background-size: 100% 32px;
  pointer-events: none;
}

.study-content {
  position: relative;
  z-index: 2;
}

.study-area-section .section-heading {
  color: #1a1a2e;
  text-align: left;
  padding-left: 1rem;
}

.study-area-section .section-heading::after {
  margin: 0.8rem 0 0 1rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.reference-card {
  background: #f5f0e8;
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid #4a90d9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(26,26,46,0.08);
}

.ref-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-icon-spdx {
  background: linear-gradient(135deg, #4a90d9, #3a7bc8);
}

.ref-icon-cdx {
  background: linear-gradient(135deg, #e8b84b, #d4a73c);
}

.ref-icon-swid {
  background: linear-gradient(135deg, #6c757d, #5a6268);
}

.reference-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.6rem;
}

.reference-card p {
  font-size: 0.88rem;
  color: #6c757d;
  line-height: 1.6;
}

.study-area-section .angular-cut {
  background: #1a1a2e;
}

/* ===== FOOTER ===== */
.footer-section {
  position: relative;
  background: #1a1a2e;
  padding: 5rem 2rem 0;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.1);
}

.footer-brand h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #f5f0e8;
  margin-bottom: 0.75rem;
}

.footer-dot {
  color: #e8b84b;
}

.footer-brand p {
  color: rgba(245,240,232,0.5);
  font-size: 0.95rem;
  max-width: 350px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8b84b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(245,240,232,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #f5f0e8;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
}

.footer-bottom p {
  color: rgba(245,240,232,0.3);
  font-size: 0.8rem;
}

/* ===== ANIMATIONS ===== */
.chapter-card,
.stat-card,
.reference-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.chapter-card.visible,
.stat-card.visible,
.reference-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card.visible.sticky-note:nth-child(1) { transform: rotate(-1deg); }
.stat-card.visible.sticky-note:nth-child(2) { transform: rotate(1.5deg); }
.stat-card.visible.sticky-note:nth-child(3) { transform: rotate(-0.5deg); }
.stat-card.visible.sticky-note:nth-child(4) { transform: rotate(2deg); }

/* Lens flare on section headings */
.section-heading {
  position: relative;
}

.section-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,0.15) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.section-heading.flare-active .section-flare {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .notebook-paper {
    padding: 3rem 2rem 3rem 3rem;
  }

  .notebook-margin {
    left: 30px;
  }

  .notebook-bg::before {
    left: 30px;
  }

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

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    gap: 2rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .hero-cta {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }
}