﻿/* ================================================================
   BLOGSIGNAL — Global Styles
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Base ── */
body {
  background-color: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient noise 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: 9999;
  opacity: 0.4;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-1);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-1);
}

.serif-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.text-lime    { color: var(--lime); }
.text-coral   { color: var(--coral); }
.text-ice     { color: var(--ice); }
.text-muted   { color: var(--text-2); }
.text-faint   { color: var(--text-3); }
.mono         { font-family: var(--font-mono); font-size: 0.8125rem; }

/* Gradient text */
.grad-lime {
  background: linear-gradient(135deg, var(--lime) 0%, #a8ff00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-multi {
  background: linear-gradient(135deg, var(--zinc-100) 0%, var(--zinc-400) 60%, var(--zinc-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container       { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-sm    { max-width: 720px; }
.container-lg    { max-width: 1360px; }
.container-fluid { max-width: 100%; padding: 0 var(--sp-8); }

.section    { padding: var(--sp-24) 0; }
.section-sm { padding: var(--sp-16) 0; }
.section-lg { padding: var(--sp-32) 0; }

/* ── Grid System ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }

/* ── Flex Utils ── */
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

/* ── Card Base ── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-expo),
    transform    var(--dur-base) var(--ease-expo),
    box-shadow   var(--dur-base) var(--ease-expo);
}
.card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Tag / Badge ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag-lime   { background: var(--lime-dim);  color: var(--lime);  border-color: rgba(200,255,0,0.2); }
.tag-coral  { background: var(--coral-dim); color: var(--coral); border-color: rgba(255,77,109,0.2); }
.tag-ice    { background: var(--ice-dim);   color: var(--ice);   border-color: rgba(125,211,252,0.2); }
.tag-ghost  { background: var(--surface-1); color: var(--text-3); border-color: var(--border-1); }
.tag-dark   { background: var(--bg-3);      color: var(--text-2); border-color: var(--border-1); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-5);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background  var(--dur-base) var(--ease-expo),
    box-shadow  var(--dur-base) var(--ease-expo),
    transform   var(--dur-fast) var(--ease-expo),
    color       var(--dur-fast);
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-lime {
  background: var(--lime);
  color: #000;
  font-weight: 600;
}
.btn-lime:hover {
  background: var(--lime-soft);
  box-shadow: var(--shadow-lime);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-2);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--border-3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
  padding: 8px var(--sp-4);
  font-size: 0.875rem;
}
.btn-ghost:hover { color: var(--text-1); background: var(--surface-1); }

.btn-sm  { padding: 7px var(--sp-4);  font-size: 0.8125rem; border-radius: var(--r-md); }
.btn-lg  { padding: 13px var(--sp-8); font-size: 1rem; font-weight: 600; border-radius: var(--r-lg); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-1) 20%, var(--border-1) 80%, transparent);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--zinc-600); }

/* ── Selection ── */
::selection { background: rgba(200,255,0,0.25); color: var(--text-1); }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: var(--r-sm); }

/* ── Animations ── */
@keyframes fadeUp    { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes ticker    { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes pulse-lime {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,255,0,0); }
  50%      { box-shadow: 0 0 20px 4px rgba(200,255,0,0.2); }
}
@keyframes blink     { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes float     { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes spin      { to { transform:rotate(360deg); } }
@keyframes shimmer   {
  from { background-position: -400px 0; }
  to   { background-position:  400px 0; }
}

.anim-fade-up  { animation: fadeUp  var(--dur-slow) var(--ease-expo) both; }
.anim-fade-in  { animation: fadeIn  var(--dur-slow) var(--ease-expo) both; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 340ms; }
.delay-5 { animation-delay: 460ms; }

/* ── Skeleton Shimmer ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* ── Form Inputs ── */
.form-group { margin-bottom: var(--sp-4); }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}
.form-required { color: var(--lime); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 10px var(--sp-4);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200,255,0,0.1);
}
.form-input::placeholder { color: var(--text-4); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b72' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select option { background: var(--bg-3); }
.form-checkbox-row { display: flex; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-2); }
.form-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--lime);
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.form-checkbox-row label { font-size: 0.8125rem; color: var(--text-2); cursor: pointer; }
.form-checkbox-row a { color: var(--lime); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: 60px;
  display: flex;
  align-items: center;
  transition:
    background   var(--dur-slow) var(--ease-expo),
    border-color var(--dur-slow) var(--ease-expo),
    backdrop-filter var(--dur-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3,3,4,0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--border-1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--sp-6);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-1);
  line-height: 1;
}
.nav-logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-lime 2.5s ease-in-out infinite;
}
.nav-links {
  display: flex; align-items: center; gap: var(--sp-1);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-link:hover  { color: var(--text-1); background: var(--surface-1); }
.nav-link.active { color: var(--text-1); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  transition: background var(--dur-fast);
}
.hamburger:hover { background: var(--surface-1); }
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-2);
  transition: transform var(--dur-base) var(--ease-expo), opacity var(--dur-base);
}

.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(3,3,4,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-1);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  z-index: var(--z-nav);
  transform: translateY(-8px);
  opacity: 0; pointer-events: none;
  transition: transform var(--dur-base) var(--ease-expo), opacity var(--dur-base);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu .nav-link {
  display: block; padding: var(--sp-3) var(--sp-4);
  font-size: 1rem; border-radius: var(--r-md);
}
.mobile-menu .btn { display: inline-flex; margin-top: var(--sp-4); }

/* ── Ticker Tape ── */
.ticker-wrap {
  background: var(--lime);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: var(--z-raised);
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  gap: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-6);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
}
.ticker-sep { opacity: 0.4; font-size: 0.5rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
  padding: var(--sp-16) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: 'VS';
  position: absolute;
  bottom: -30px; right: -20px;
  font-family: var(--font-display);
  font-size: 18rem;
  color: rgba(255,255,255,0.015);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.footer-about p {
  font-size: 0.9375rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-top: var(--sp-4);
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: var(--sp-4);
}
.footer-links li+li { margin-top: var(--sp-3); }
.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-3);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--text-1); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-1);
  font-size: 0.8125rem;
  color: var(--text-4);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { color: var(--text-4); transition: color var(--dur-fast); }
.footer-legal a:hover { color: var(--text-2); }

/* ================================================================
   SUBSCRIBE MODAL
   ================================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-expo);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-xl), var(--shadow-lime);
  transform: scale(0.96) translateY(8px);
  transition: transform var(--dur-slow) var(--ease-expo);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--r-md);
  background: var(--bg-4);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 0.875rem;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.modal-close:hover { color: var(--text-1); background: var(--bg-5); }

/* ================================================================
   COOKIE BANNER
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%; transform: translateX(-50%) translateY(120px);
  z-index: var(--z-toast);
  width: calc(100% - var(--sp-8));
  max-width: 600px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-5);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  transition: transform 0.5s var(--ease-expo);
}
.cookie-banner.visible { transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: 0.875rem; color: var(--text-2); flex: 1; }
.cookie-banner p a { color: var(--lime); }
.cookie-actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  top: var(--sp-5); right: var(--sp-5);
  z-index: var(--z-toast);
  background: var(--bg-4);
  border: 1px solid var(--border-lime);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-3);
  box-shadow: var(--shadow-lg);
  transform: translateX(140%);
  transition: transform var(--dur-slow) var(--ease-expo);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); flex-shrink: 0;
  animation: pulse-lime 2s infinite;
}
.toast-text { font-size: 0.875rem; color: var(--text-1); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-expo), transform 0.55s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVE NAV
   ================================================================ */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; gap: var(--sp-3); }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; text-align: center; justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: var(--sp-6); }
}

