/* ==========================================================================
   d4yz3r0 - Digital LARP Website Styles
   ========================================================================== */

/* CSS Custom Properties (Variables) - Terminal aesthetic */
:root {
  --bg: #0a0a0a;
  --panel: #0f0f0f;
  --ink: #e1e8f0;
  --muted: #8a9bb0;
  --brand: #22c55e;
  --brand2: #16a34a;
  --good: #10b981;
  --bad: #ef4444;
  --warn: #f59e0b;
  --shadow: 0 4px 20px rgba(0,0,0,.4);
  --radius: 4px;
  --terminal-green: #22c55e;
  --terminal-green-dark: #16a34a;
  --terminal-green-glow: rgba(34,197,94,0.3);
  --terminal-bg: #0a0a0a;
  --terminal-panel: #0f0f0f;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: 
    radial-gradient(1200px 800px at 80% -10%, rgba(34,197,94,.02), transparent 55%),
    radial-gradient(900px 600px at -10% 10%, rgba(22,163,74,.015), transparent 40%),
    var(--bg);
  color: var(--ink);
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(11,15,20,.6);
  z-index: 20;
  border-bottom: 1px solid #1a2333;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}



.wordmark {
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: lowercase;
  text-shadow: 0 0 12px rgba(102,224,255,.35), 0 0 24px rgba(154,123,255,.25);
}

.nav a {
  margin: 0 10px;
  color: var(--ink);
  opacity: .9;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #06101a;
  font-weight: 800;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #22304a;
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255,255,255,.05);
}

/* ==========================================================================
   Glitch Effects & Cyberpunk Flavor
   ========================================================================== */

.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  clip-path: inset(0 0 0 0);
  opacity: .7;
}

.glitch-text::before {
  transform: translate(1px, 0);
  text-shadow: -1px 0 var(--brand);
}

.glitch-text::after {
  transform: translate(-1px, 0);
  text-shadow: 1px 0 var(--brand2);
}

.glitch-text:hover {
  animation: scan 1.6s linear infinite;
}

@keyframes scan {
  0% { filter: hue-rotate(0); }
  100% { filter: hue-rotate(360deg); }
}



/* Enhanced terminal with exposed infrastructure aesthetic */
.terminal {
  background: 
    radial-gradient(800px 400px at 10% -20%, rgba(59,130,246,.04), transparent 70%),
    #0a0f15;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: scan-line 5s ease-in-out infinite;
}

@keyframes scan-line {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Subtle exposed infrastructure ambient effects */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(600px 400px at 20% 20%, rgba(59,130,246,0.02), transparent 50%),
    radial-gradient(400px 300px at 80% 80%, rgba(99,102,241,0.015), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Enhanced section dividers with exposed infrastructure aesthetic */
section {
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.3;
}

.terminal .bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.terminal .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2c3b55;
  transition: background-color 0.3s ease;
}

.terminal .dot:nth-child(1) { background: #ff5f56; }
.terminal .dot:nth-child(2) { background: #ffbd2e; }
.terminal .dot:nth-child(3) { background: #27ca3f; }

.terminal pre {
  margin: 0;
  color: #bfeaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.4;
  position: relative;
}

.terminal pre::after {
  content: '█';
  color: var(--brand);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Enhanced cards with exposed infrastructure styling */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.06), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,.5), 0 0 12px rgba(59,130,246,0.06);
  border-color: rgba(59,130,246,0.15);
}

/* Enhanced buttons with terminal styling */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--terminal-bg);
  color: var(--terminal-green);
  font-weight: 400;
  box-shadow: var(--shadow);
  border: 1px solid var(--terminal-green);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,0.1), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 6px 20px var(--terminal-green-glow);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--terminal-green);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(34,197,94,0.05);
  border-color: var(--terminal-green);
  box-shadow: 0 0 10px var(--terminal-green-glow);
}

/* Enhanced form inputs */
input, textarea {
  width: 100%;
  border-radius: 10px;
  padding: 12px 12px;
  background: #0b1220;
  border: 1px solid #1b2435;
  color: var(--ink);
  font-family: inherit;
  transition: all 0.3s ease;
  position: relative;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(102,224,255,.1), 0 0 15px rgba(102,224,255,0.2);
  background: #0d1522;
}

/* Hero badge - terminal integrated */
.hero-badge {
  display: block;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-green);
  color: var(--terminal-green);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.hero-badge:hover {
  background: rgba(34,197,94,0.05);
  border-color: var(--terminal-green);
  box-shadow: 0 0 10px var(--terminal-green-glow);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--terminal-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* Enhanced tag with subtle effect */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0c1422;
  border: 1px solid #1e293b;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--brand);
  box-shadow: 0 0 8px rgba(59,130,246,0.2);
}

.tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  animation: pulse 3s ease-in-out infinite;
}

/* Enhanced FAQ with cyberpunk styling */
.faq details {
  background: #0d1420;
  border: 1px solid #1b2435;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq details:hover::before,
.faq details[open]::before {
  opacity: 1;
}

.faq details:hover {
  background: #0f1621;
  border-color: rgba(102,224,255,0.3);
  box-shadow: 0 0 15px rgba(102,224,255,0.1);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.faq summary:hover {
  color: var(--brand);
  text-shadow: 0 0 8px rgba(102,224,255,0.5);
}

.faq summary::after {
  content: '▶';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--brand);
  font-size: 12px;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Enhanced navigation with hover effects */
.nav a {
  margin: 0 10px;
  color: var(--ink);
  opacity: .9;
  transition: all 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(102,224,255,0.5);
}

/* Enhanced logo with terminal prompt styling */
.logo {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-green);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--terminal-green);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 0 10px var(--terminal-green-glow);
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  transition: all 0.3s ease;
}

.logo:hover {
  box-shadow: 0 0 15px var(--terminal-green-glow);
  transform: scale(1.05);
}

/* Typed.js styling for wordmark */
.wordmark {
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 0 8px rgba(34,197,94,.3);
  transition: all 0.3s ease;
  color: #22c55e;
}

.wordmark:hover {
  text-shadow: 0 0 12px rgba(34,197,94,.5);
}

/* Typed.js cursor styling */
.typed-cursor {
  color: #22c55e !important;
  font-weight: 400;
  font-size: 1.2em;
  text-shadow: 0 0 8px rgba(34,197,94,.3);
}

/* Reusable typing animation class for other elements */
.typing-animation {
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: .5px;
  text-transform: lowercase;
  text-shadow: 0 0 8px rgba(34,197,94,.3);
  transition: all 0.3s ease;
  color: #22c55e;
}

.typing-animation .typed-cursor {
  color: #22c55e !important;
  font-weight: 400;
  font-size: 1.2em;
  text-shadow: 0 0 8px rgba(34,197,94,.3);
}

/* Terminal typing animation */
#terminal-typed {
  font-family: 'Courier New', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #22c55e;
  white-space: pre;
  padding: 20px;
}

#terminal-typed .typed-cursor {
  color: #22c55e !important;
  font-weight: 400;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(34,197,94,.3);
}

/* Form note styling */
.form-note {
  font-size: 0.9em;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(34, 197, 94, 0.05);
  border-left: 3px solid var(--terminal-green);
  border-radius: 0 4px 4px 0;
}



.wordmark:hover {
  text-shadow: 0 0 12px rgba(34,197,94,.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 80px 0 50px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin: 0 0 18px;
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: clamp(16px, 2.6vw, 20px);
  color: var(--muted);
  max-width: 800px;
}

.cta {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

section {
  padding: 56px 0;
  border-top: 1px solid #141c2a;
}

h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid #1b2435;
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,.6);
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 18px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Terminal Component
   ========================================================================== */

.terminal {
  background: 
    radial-gradient(800px 400px at 10% -20%, rgba(102,224,255,.08), transparent 70%),
    #050a12;
  border: 1px solid #1a2233;
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.terminal .bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.terminal .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2c3b55;
}

.terminal pre {
  margin: 0;
  color: #bfeaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.4;
}

/* ==========================================================================
   Code & Typography
   ========================================================================== */

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #0a0f17;
  border: 1px solid #1b2435;
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
}

.kbd {
  border: 1px solid #2a364d;
  background: #0d1522;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* ==========================================================================
   Lists & Rules
   ========================================================================== */

.rules li {
  margin: 8px 0;
}

ul {
  padding-left: 18px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq details {
  background: #0d1420;
  border: 1px solid #1b2435;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  transition: background-color 0.2s ease;
}

.faq details:hover {
  background: #0f1621;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--brand);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

input, textarea {
  width: 100%;
  border-radius: 10px;
  padding: 12px 12px;
  background: #0b1220;
  border: 1px solid #1b2435;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(102,224,255,.1);
}

input::placeholder, textarea::placeholder {
  color: #5d6a82;
}

label .eyebrow {
  display: block;
  margin-bottom: 6px;
}

/* ==========================================================================
   Tags & Badges
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0c1422;
  border: 1px solid #1b2435;
  color: var(--muted);
  font-size: 12px;
}

.tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  padding: 50px 0 80px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav a {
    margin: 0 8px;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
  }
  
  section {
    padding: 40px 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .card {
    padding: 16px;
  }
}
