:root {
  --allirc-bg: #050716;
  --allirc-bg-soft: #0a0f24;
  --allirc-bg-lift: #101735;
  --allirc-card: rgba(255, 255, 255, 0.075);
  --allirc-card-strong: rgba(255, 255, 255, 0.12);
  --allirc-line: rgba(255, 255, 255, 0.14);
  --allirc-text: #f8fbff;
  --allirc-muted: #aeb8d8;
  --allirc-subtle: #7d89ac;
  --allirc-primary: #7c3aed;
  --allirc-cyan: #06b6d4;
  --allirc-pink: #ec4899;
  --allirc-gold: #fbbf24;
  --allirc-green: #34d399;
  --allirc-radius: 28px;
  --allirc-radius-sm: 18px;
  --allirc-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--allirc-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.34), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(6, 182, 212, 0.26), transparent 30%),
    radial-gradient(circle at 52% 95%, rgba(236, 72, 153, 0.16), transparent 28%),
    var(--allirc-bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(5, 7, 22, 0.15), #050716 78%);
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.section-padding {
  padding: 110px 0;
}

.bg-soft {
  background: linear-gradient(180deg, rgba(10, 15, 36, 0.68), rgba(6, 9, 24, 0.86));
  border-top: 1px solid var(--allirc-line);
  border-bottom: 1px solid var(--allirc-line);
}

.fw-black {
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1;
}

.section-lead,
.hero-lead {
  color: var(--allirc-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-lead {
  max-width: 700px;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.42;
  animation: floatGlow 12s ease-in-out infinite;
}

.glow-one {
  left: -140px;
  top: 120px;
  background: var(--allirc-primary);
}

.glow-two {
  right: -120px;
  top: 60px;
  background: var(--allirc-cyan);
  animation-delay: -4s;
}

.glow-three {
  left: 45%;
  bottom: -210px;
  background: var(--allirc-pink);
  animation-delay: -8s;
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -26px, 0) scale(1.08); }
}

.allirc-navbar {
  padding: 18px 0;
  background: rgba(5, 7, 22, 0.64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
  transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.allirc-navbar.navbar-scrolled {
  padding: 10px 0;
  background: rgba(5, 7, 22, 0.88);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.32);
}

.brand-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--allirc-primary), var(--allirc-cyan));
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.38);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.brand-copy small {
  color: var(--allirc-muted);
  font-size: 0.75rem;
  margin-top: 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar .nav-link {
  color: rgba(248, 251, 255, 0.78);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary-gradient {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--allirc-primary), var(--allirc-pink) 52%, var(--allirc-cyan));
  box-shadow: 0 16px 45px rgba(124, 58, 237, 0.35);
  font-weight: 800;
}

.btn-primary-gradient:hover,
.btn-primary-gradient:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(6, 182, 212, 0.28), 0 18px 50px rgba(124, 58, 237, 0.28);
}

.btn-glass {
  color: #fff;
  border: 1px solid var(--allirc-line);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(18px);
  font-weight: 800;
}

.btn-glass:hover,
.btn-glass:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero-section {
  padding-top: 160px;
}

.min-vh-lg-100 {
  min-height: calc(100vh - 120px);
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--allirc-line);
  border-radius: 999px;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow i {
  color: var(--allirc-gold);
}

.glass-card {
  position: relative;
  border: 1px solid var(--allirc-line);
  border-radius: var(--allirc-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--allirc-shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%);
  opacity: 0.55;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.hero-channel-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #eef4ff;
  text-decoration: none;
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  font-weight: 800;
}

.hero-channel-row a:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.hero-console {
  transform: rotate(1deg);
}

.console-top span {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.console-top span:nth-child(1) { background: #ff5f57; }
.console-top span:nth-child(2) { background: #ffbd2e; }
.console-top span:nth-child(3) { background: #28c840; }

.console-top small {
  color: var(--allirc-muted);
  font-weight: 700;
}

.console-window {
  min-height: 288px;
  border-radius: 22px;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.chat-line {
  color: #e8eeff;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chat-line span,
.chat-line.muted {
  color: var(--allirc-subtle);
}

.chat-line.success span,
.chat-line.success {
  color: var(--allirc-green);
}

.chat-line strong {
  color: #fff;
  margin-right: 0.45rem;
}

.chat-line.active {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(6, 182, 212, 0.26);
  border-radius: 16px;
  background: rgba(6, 182, 212, 0.1);
}

.mini-stat {
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat i {
  color: var(--allirc-cyan);
  margin-bottom: 0.7rem;
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  color: #fff;
  font-size: 1rem;
}

.mini-stat span {
  color: var(--allirc-muted);
  font-size: 0.86rem;
}

.section-strip {
  border-top: 1px solid var(--allirc-line);
  border-bottom: 1px solid var(--allirc-line);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 800;
}

.strip-item i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.channel-tools .input-group-text,
.channel-tools .form-control {
  border: 0;
  color: #fff;
  background: transparent;
}

.channel-tools .input-group-text {
  color: var(--allirc-cyan);
}

.channel-tools .form-control::placeholder {
  color: rgba(223, 231, 255, 0.52);
}

.channel-tools .form-control:focus {
  box-shadow: none;
}

.filter-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--allirc-line);
  border-radius: 999px;
  color: #dfe7ff;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.45);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.2));
}

.channel-card {
  height: 100%;
  border-radius: var(--allirc-radius);
  overflow: hidden;
  border: 1px solid var(--allirc-line);
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.channel-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.channel-card-inner {
  height: 100%;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.channel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.channel-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(6, 182, 212, 0.88));
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.18);
  font-size: 1.35rem;
}

.channel-badge {
  color: #dce8ff;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
  font-size: 0.78rem;
}

.channel-card h3 {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 880;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.channel-card p {
  color: var(--allirc-muted);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}

.channel-card .channel-url {
  color: rgba(223, 231, 255, 0.72);
  font-size: 0.82rem;
  word-break: break-all;
  margin-bottom: 1rem;
}

.channel-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.channel-actions .btn {
  font-weight: 850;
}

.empty-state i {
  font-size: 3rem;
  color: var(--allirc-cyan);
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #fff;
  font-weight: 850;
}

.empty-state p {
  color: var(--allirc-muted);
  margin-bottom: 0;
}

.feature-card,
.rule-card {
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.rule-card:hover {
  transform: translateY(-8px);
}

.feature-icon,
.rule-card i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--allirc-primary), var(--allirc-cyan));
  box-shadow: 0 16px 44px rgba(124, 58, 237, 0.28);
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.feature-card h3,
.rule-card h3 {
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p,
.rule-card p {
  color: var(--allirc-muted);
  line-height: 1.72;
  margin-bottom: 0;
}

.rule-card {
  padding: 1.6rem;
  border-radius: var(--allirc-radius);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--allirc-line);
}

.connect-card {
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.052));
}

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-row span {
  color: var(--allirc-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.connect-row span i {
  color: var(--allirc-cyan);
}

.connect-row strong,
.connect-row a {
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  text-align: right;
}

.connect-row a:hover {
  color: var(--allirc-cyan);
}

.connect-note {
  display: flex;
  gap: 0.85rem;
  color: #dce6ff;
  line-height: 1.7;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.18);
}

.connect-note i {
  color: var(--allirc-gold);
  margin-top: 0.25rem;
}

.premium-accordion .accordion-item {
  color: #fff;
  border: 1px solid var(--allirc-line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
  margin-bottom: 1rem;
}

.premium-accordion .accordion-button {
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-weight: 850;
  padding: 1.25rem 1.4rem;
}

.premium-accordion .accordion-button:not(.collapsed) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.premium-accordion .accordion-button::after {
  filter: invert(1);
}

.premium-accordion .accordion-body {
  color: var(--allirc-muted);
  line-height: 1.75;
  padding: 1.25rem 1.4rem 1.5rem;
}

.contact-shortcuts a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--allirc-line);
  background: rgba(255, 255, 255, 0.06);
}

.contact-shortcuts a:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.contact-shortcuts i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--allirc-primary), var(--allirc-cyan));
}

.contact-shortcuts strong,
.contact-shortcuts small {
  display: block;
}

.contact-shortcuts small {
  color: var(--allirc-muted);
  margin-top: 0.25rem;
}

.contact-form .form-label {
  color: #fff;
  font-weight: 800;
}

.contact-form .form-control {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.contact-form .form-control::placeholder {
  color: rgba(223, 231, 255, 0.5);
}

.contact-form .form-control:focus {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 0.25rem rgba(6, 182, 212, 0.12);
}

.form-alert {
  border-radius: 18px;
  padding: 1rem;
  font-weight: 800;
}

.form-alert.success {
  color: #bdfce6;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.11);
}

.form-alert.error {
  color: #ffd0df;
  border: 1px solid rgba(236, 72, 153, 0.3);
  background: rgba(236, 72, 153, 0.12);
}

.site-footer {
  border-top: 1px solid var(--allirc-line);
  background: rgba(5, 7, 22, 0.88);
}

.footer-links a,
.quick-chat-link {
  color: var(--allirc-muted);
  text-decoration: none;
  font-weight: 800;
}

.footer-links a:hover,
.quick-chat-link:hover {
  color: #fff;
}

.footer-bottom {
  color: var(--allirc-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--allirc-line);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--allirc-primary), var(--allirc-cyan));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 88px 0;
  }

  .hero-section {
    padding-top: 132px;
  }

  .min-vh-lg-100 {
    min-height: auto;
  }

  .fw-black {
    letter-spacing: -0.052em;
  }

  .hero-console {
    transform: none;
  }

  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--allirc-line);
    border-radius: 22px;
    background: rgba(5, 7, 22, 0.92);
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 72px 0;
  }

  .hero-section {
    padding-top: 120px;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .fw-black {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-lead,
  .section-lead {
    font-size: 1rem;
  }

  .glass-card,
  .channel-card,
  .rule-card {
    border-radius: 22px;
  }

  .channel-actions .btn {
    width: 100%;
  }

  .connect-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .connect-row a,
  .connect-row strong {
    text-align: left;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
