*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050608;
  --bg-alt: #0c0f15;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.14);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --card: #0f172a;
  --radius: 14px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --max-width: 860px;
  --pad: 1.25rem;
  --transition: 180ms ease-out;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(56, 189, 248, 0.15), transparent 55%),
    #020617;
}

/* Layout */

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #020617;
  background: radial-gradient(circle at 25% 0, #ffffff, #7dd3fc);
  box-shadow: var(--shadow-soft);
}

.brand-text {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition);
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-link.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

/* Hero */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin: 0 0 0.7rem;
}

.hero-text .lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

/* Live card */

.hero-live-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius);
  border: 1px solid rgba(51, 65, 85, 0.95);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
  margin-bottom: 0.55rem;
}

.live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f97373;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.9);
}

.stream-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(30, 64, 175, 0.7);
  min-height: 220px;
}

#printer-stream {
  display: block;
  width: 100%;
  height: auto;
}

.stream-error {
  display: none;
  font-size: 0.8rem;
  padding: 0.8rem;
  color: #fecaca;
}

.stream-caption {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 2.1rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.section-intro {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Grid & cards */

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.info-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 64, 175, 0.7);
  padding: 0.9rem 0.95rem 1.05rem;
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition),
    transform var(--transition), border-color var(--transition);
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #020617;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(56, 189, 248, 0.6);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.65);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn.full-width {
  width: 100%;
}

/* Quote form */

.quote-form {
  margin-top: 0.7rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 64, 175, 0.7);
  padding: 1rem 0.95rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.form-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.95);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.6);
  background: #020617;
}

.form-note {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Gallery */

.hero-compact {
  padding: 2.1rem 0 1.6rem;
}

.hero-compact-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  padding: 0.6rem 0.7rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Videos */

.video-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 64, 175, 0.7);
  padding: 0.8rem 0.85rem 0.95rem;
  box-shadow: var(--shadow-soft);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #020617;
  margin-bottom: 0.55rem;
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.video-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(2, 6, 23, 0.98);
}

.footer-inner {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-live-card {
    order: -1;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-compact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}
