/* Next Compute — final dark-tech stylesheet.
   Layer 1 (below): dark theme rewrite of the original hand-written CSS so that
   every legacy class (card, legal, form-*, messages, footer-*) stays readable
   on the dark background. Layer 2 (bottom): V3 dark-tech components adopted
   from site_v2/index_v3.html (glass cards, img frames, hero photo, page hero). */

:root {
  --bg: #0B0F17;
  --surface: #121824;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --brand: #00E599;
  --brand-2: #00C883;
  --accent: #00E599;
  --border: #1E293B;
  --radius: 12px;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

/* ------------------------------------------------------- legacy: header */
.site-header { background: var(--bg); }

.lang-form { padding: 0; }
.lang-form select { display: none; } /* lang form now lives in the Tailwind nav */

/* ------------------------------------------------------------------ main */
main { flex: 1; }

h1 { color: var(--text); margin-top: 0; }

.lead { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }

/* ------------------------------------------------- legacy: generic cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  max-width: 760px;
}

.card--narrow { max-width: 460px; }

.card h3 { margin-top: 0.25rem; color: var(--text); }
.card .tagline { color: var(--brand); font-style: italic; margin-top: 0; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #0B0F17;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--brand-2);
  box-shadow: 0 0 25px -5px rgba(0, 229, 153, 0.3);
}

/* ------------------------------------------------------------------ forms */
.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #0F1520;
  color: var(--text);
}

textarea { resize: vertical; }

.form-input:focus,
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

input[type="checkbox"] { width: auto; accent-color: var(--brand); }

.errorlist, .form-errors { color: #fb7185; font-size: 0.9rem; margin: 0.25rem 0; }

.form-help { color: var(--muted); font-size: 0.85rem; }

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(18, 24, 36, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
}

.form-field--consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.form-field--consent label { font-weight: normal; }

/* --------------------------------------------------------------- messages */
.messages { list-style: none; padding: 0; margin: 0; }

.messages__item {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.messages__item--success {
  background: rgba(5, 46, 22, 0.6);
  color: #6ee7b7;
  border: 1px solid rgba(0, 229, 153, 0.35);
}

.messages__item--error {
  background: rgba(76, 5, 25, 0.6);
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.35);
}

/* ----------------------------------------------------------------- legal */
.legal { max-width: 800px; margin-inline: auto; }
.legal h1, .legal h2 { color: var(--text); }
.legal h2 { color: var(--brand); margin-top: 1.75rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--brand); }
.legal table { border-collapse: collapse; width: 100%; margin: 0.75rem 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; }
.legal th { background: var(--surface); }

/* ---------------------------------------------------------------- footer */
.footer-legal { list-style: none; padding: 0; margin: 0.35rem 0; }
.footer-legal a { color: var(--muted); }

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0.35rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* ========================================================================
   V3 dark-tech components (from site_v2/index_v3.html)
   ======================================================================== */

/* Tech grid background pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 20%, rgba(0, 229, 153, 0.15) 0%, rgba(11, 15, 23, 0) 70%);
}

/* Glass card */
.glass-card {
  background: rgba(18, 24, 36, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glass-card:hover { border-color: rgba(0, 229, 153, 0.3); }

/* Animated glow pulse */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}

.animate-pulse-glow { animation: pulseGlow 4s infinite ease-in-out; }

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.scanline { animation: scanline 8s linear infinite; }

/* Numbered glowing cards (01-03) */
.glow-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #059669, #00E599);
}

.glow-card:hover { transform: translateY(-4px); box-shadow: 0 0 25px -5px rgba(0, 229, 153, 0.3); }
.glow-card:hover h3 { color: var(--brand); }

.glow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  text-shadow: 0 0 18px rgba(0, 229, 153, 0.55);
}

.icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(6, 46, 33, 0.8);
  border: 1px solid rgba(5, 150, 105, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

/* Real-photo frames (rounded, bordered, shadowed, hover micro-interaction) */
.img-frame {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(0, 229, 153, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 25px -8px rgba(0, 229, 153, 0.35);
  overflow: hidden;
  background-color: #121824;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.img-frame:hover {
  border-color: rgba(0, 229, 153, 0.55);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 40px -5px rgba(0, 229, 153, 0.45);
  transform: translateY(-2px);
}

.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.img-frame:hover img {
  transform: scale(1.04);
  filter: brightness(1.12) saturate(1.05);
}

.img-caption {
  display: block;
  margin-top: 0.625rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #94A3B8;
}

/* Hero photo layer: real-photo background + dark gradient veils for readability */
.hero-photo-layer {
  position: absolute;
  inset: 0;
  background-image: url('../img/token-factory-bc.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero-photo-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 15, 23, 0.62) 0%, rgba(11, 15, 23, 0.40) 35%, rgba(11, 15, 23, 0.88) 100%),
    linear-gradient(to right, rgba(11, 15, 23, 0.92) 0%, rgba(11, 15, 23, 0.55) 55%, rgba(11, 15, 23, 0.35) 100%);
}

/* Inner-page hero band (services / token factory / about / contact / configurator) */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
}

.page-hero h1 { color: #fff; font-weight: 800; font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0 0; max-width: 60ch; }

.section-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #1E293B;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Closing belt (full-width block under card grids) */
.closing-belt {
  background: rgba(18, 24, 36, 0.7);
  border-left: 4px solid var(--brand);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

/* Configurator */
.cfg-range { accent-color: var(--brand); }

.cfg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.6);
  cursor: pointer;
}

.cfg-est-box {
  background: rgba(2, 6, 17, 0.9);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B0F17; }
::-webkit-scrollbar-thumb { background: #1E293B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00E599; }

@media (max-width: 640px) {
  .page-hero { padding: 2rem 1.25rem; }
  .page-hero h1 { font-size: 1.5rem; }
}
