/* ================================================
   ILLITWRIT — STYLE SYSTEM
   Glassmorphic + Bento Grid + Graffiti Neon
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&family=Permanent+Marker&display=swap');

:root {
  /* Core palette */
  --bg-base:       #0d0d0f;
  --bg-100:        #111114;
  --bg-200:        #16161a;
  --bg-300:        #1c1c22;
  --bg-400:        #222228;

  /* Neon palette */
  --neon-cyan:     #00f5ff;
  --neon-teal:     #00e5c8;
  --neon-green:    #39ff14;
  --neon-violet:   #bf00ff;
  --neon-orange:   #ff6b00;
  --neon-pink:     #ff007f;
  --neon-yellow:   #ffe600;

  /* Glass */
  --glass-bg:      rgba(255,255,255,0.04);
  --glass-border:  rgba(0,245,255,0.15);
  --glass-hover:   rgba(255,255,255,0.07);
  --glass-strong:  rgba(0,245,255,0.06);

  /* Text */
  --text-primary:  #f0f0f4;
  --text-muted:    #8a8a9a;
  --text-dim:      #555566;

  /* Glows */
  --glow-cyan:     0 0 20px rgba(0,245,255,0.4), 0 0 60px rgba(0,245,255,0.15);
  --glow-teal:     0 0 20px rgba(0,229,200,0.4), 0 0 60px rgba(0,229,200,0.15);
  --glow-green:    0 0 20px rgba(57,255,20,0.4),  0 0 60px rgba(57,255,20,0.15);
  --glow-violet:   0 0 20px rgba(191,0,255,0.4),  0 0 60px rgba(191,0,255,0.15);
  --glow-orange:   0 0 20px rgba(255,107,0,0.4),  0 0 60px rgba(255,107,0,0.15);

  /* Typography */
  --font-display:  'Bebas Neue', sans-serif;
  --font-tech:     'Orbitron', monospace;
  --font-body:     'Space Grotesk', sans-serif;
  --font-graffiti: 'Permanent Marker', cursive;

  /* Layout */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── GLASS CARD ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(0,245,255,0.3);
  box-shadow: var(--glow-cyan);
}
.glass-strong {
  background: var(--glass-strong);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,13,15,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,245,255,0.1);
}
.nav-logo {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-shadow: var(--glow-cyan);
}
.nav-logo span { color: var(--text-muted); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--neon-cyan);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  background: rgba(13,13,15,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 999;
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--neon-cyan); }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  background: rgba(0,245,255,0.05);
  border-top: 1px solid rgba(0,245,255,0.1);
  border-bottom: 1px solid rgba(0,245,255,0.1);
  padding: 10px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 30s linear infinite;
}
.ticker-track span {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 0 40px;
  opacity: 0.7;
}
.ticker-track .dot {
  color: var(--neon-teal);
  padding: 0;
  opacity: 1;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION BASE ── */
section {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── BENTO GRID ── */
.bento-grid {
  display: grid;
  gap: 16px;
}
.bento-2 { grid-template-columns: repeat(2, 1fr); }
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-4 { grid-template-columns: repeat(4, 1fr); }
.bento-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.row-span-2 { grid-row: span 2; }

/* ── NEON TEXT ── */
.neon-cyan   { color: var(--neon-cyan);   text-shadow: var(--glow-cyan); }
.neon-teal   { color: var(--neon-teal);   text-shadow: var(--glow-teal); }
.neon-green  { color: var(--neon-green);  text-shadow: var(--glow-green); }
.neon-violet { color: var(--neon-violet); text-shadow: var(--glow-violet); }
.neon-orange { color: var(--neon-orange); text-shadow: var(--glow-orange); }

/* ── GRAFFITI ACCENT ── */
.graffiti {
  font-family: var(--font-graffiti);
  transform: rotate(-2deg);
  display: inline-block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}
.btn-primary {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  background: var(--neon-cyan);
  color: var(--bg-base);
  box-shadow: 0 0 40px rgba(0,245,255,0.6);
}
.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.btn-orange {
  background: transparent;
  border: 2px solid var(--neon-orange);
  color: var(--neon-orange);
  box-shadow: var(--glow-orange);
}
.btn-orange:hover {
  background: var(--neon-orange);
  color: var(--bg-base);
}
.btn-violet {
  background: transparent;
  border: 2px solid var(--neon-violet);
  color: var(--neon-violet);
  box-shadow: var(--glow-violet);
}
.btn-violet:hover {
  background: var(--neon-violet);
  color: var(--bg-base);
}

/* ── SECTION HEADERS ── */
.section-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── PRICING CARDS ── */
.price-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-teal));
}
.price-card.featured {
  border-color: rgba(0,245,255,0.4);
  box-shadow: var(--glow-cyan);
}
.price-card.featured::before {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  height: 4px;
}
.price-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-tech);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}
.price-tier {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 4px;
}
.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.price-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.price-list li::before {
  content: '▸';
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}
.deal-badge {
  display: inline-block;
  font-family: var(--font-graffiti);
  font-size: 0.95rem;
  color: var(--neon-green);
  text-shadow: var(--glow-green);
  transform: rotate(-3deg);
  margin-bottom: 12px;
}

/* ── BOOK CARD ── */
.book-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 40px;
}
.book-cover {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,245,255,0.2), 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-cover:hover {
  transform: rotate(2deg) scale(1.03);
  box-shadow: 0 0 60px rgba(0,245,255,0.35), 0 20px 60px rgba(0,0,0,0.6);
}
.book-cover img { width: 100%; display: block; }

/* ── FOOTER ── */
footer {
  background: var(--bg-100);
  border-top: 1px solid rgba(0,245,255,0.1);
  padding: 60px 40px 32px;
  margin-top: 100px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--neon-cyan); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-tech);
  letter-spacing: 0.1em;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 160px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SVG GRAFFITI DECORATIONS ── */
.graffiti-tag {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bento-4 { grid-template-columns: repeat(2, 1fr); }
  .bento-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-span-2 { grid-column: span 1; }
  .col-span-3 { grid-column: span 2; }
  .book-card { flex-direction: column; }
  .book-cover { width: 160px; }
}
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .bento-2, .bento-3, .bento-4 { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3 { grid-column: span 1; }
  .row-span-2 { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 120px 20px 60px; }
  footer { padding: 48px 20px 24px; }
  .price-card { padding: 24px; }
  .book-card { padding: 24px; }
}
@media (max-width: 480px) {
  .section-title { font-size: 2rem; }
  .btn { padding: 12px 24px; font-size: 0.65rem; }
}
