/* =========================================================================
   Bricky Technologies marketing site
   Palette derived from the brick logo: warm coral/terracotta on deep charcoal
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #0b0c10;
  --bg-2: #0e0f14;
  --surface: #14161e;
  --surface-2: #191c26;
  --border: #242836;
  --border-strong: #313648;

  /* Text */
  --text: #f4f5f8;
  --text-muted: #9ea2b3;
  --text-dim: #6b7080;

  /* Brand: the brick */
  --coral: #e8917a;
  --coral-light: #f2b4a0;
  --coral-deep: #d4745a;
  --terracotta: #c35f45;
  --brand-grad: linear-gradient(135deg, #f2b4a0 0%, #e2805f 55%, #c35f45 100%);
  --brand-glow: rgba(226, 128, 95, 0.35);

  /* Accents */
  --green: #5bd6a0;
  --mint: #7fd1b9;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(226, 128, 95, 0.14), transparent 60%),
    radial-gradient(700px 500px at 8% 8%, rgba(127, 148, 232, 0.06), transparent 55%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Shared live pulse dot */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(91, 214, 160, 0.6);
  animation: pulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 214, 160, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(91, 214, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 214, 160, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn .discord-mark { width: 20px; height: 16px; }
.btn-lg { font-size: 1rem; padding: 14px 24px; }
.btn-lg .discord-mark { width: 23px; height: 18px; }
.btn-primary {
  background: var(--coral);
  color: #1a0f0a;
  box-shadow: 0 6px 18px -8px var(--brand-glow);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--coral-light); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--coral); }
.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(88, 101, 242, 0.7);
}
.btn-discord:hover { transform: translateY(-2px); background: #4e5bdd; }
.btn-login {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-login svg { width: 17px; height: 17px; }
.btn-login:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--coral); color: #fff; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { color: var(--text-muted); font-size: 0.93rem; font-weight: 500; transition: color 0.15s; }
.nav-links a.lnk:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-light);
  background: rgba(226, 128, 95, 0.09);
  border: 1px solid rgba(226, 128, 95, 0.22);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.16rem; color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-meta .m { display: flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 0.9rem; }
.hero-meta .m svg { width: 17px; height: 17px; color: var(--coral); }

/* Hero visual: live console */
.hero-visual { display: flex; justify-content: center; min-width: 0; }
.console {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #13151d, #0d0e13);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.85), 0 0 60px -30px var(--brand-glow);
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.console-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.console-bar .dot.r { background: #ff5f57; }
.console-bar .dot.y { background: #febc2e; }
.console-bar .dot.g { background: #28c840; }
.console-title { font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim); margin-left: 8px; }
.console-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 600; color: var(--green); }
.console-body { padding: 18px 18px 22px; font-family: var(--mono); font-size: 0.83rem; line-height: 1.95; }
.cline { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); opacity: 0; transform: translateY(4px); animation: lineIn 0.5s ease forwards; }
.cline:nth-child(1) { animation-delay: 0.15s; }
.cline:nth-child(2) { animation-delay: 0.5s; }
.cline:nth-child(3) { animation-delay: 0.9s; }
.cline:nth-child(4) { animation-delay: 1.3s; }
.cline:nth-child(5) { animation-delay: 1.7s; }
.cline:nth-child(6) { animation-delay: 2.1s; }
@keyframes lineIn { to { opacity: 1; transform: translateY(0); } }
.cline .t { color: #565b6b; margin-right: 8px; }
.cline .muted { color: #6f7486; }
.cline .ok { color: var(--text); font-weight: 600; }
.cline .accent { color: var(--coral); font-weight: 600; }
.cline.hi { background: rgba(226, 128, 95, 0.08); margin: 0 -18px; padding: 0 18px; }
.cline.good { color: var(--text); }
.cline .check { color: var(--green); font-weight: 700; margin-right: 4px; }
.cursor { display: inline-block; width: 7px; height: 1.05em; background: var(--coral); margin-left: 4px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Section scaffolding ---------- */
section { padding: 88px 0; position: relative; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.sec-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; font-weight: 800; margin-bottom: 14px; }
.sec-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Clubs (spotlight cards) ---------- */
.clubs { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.club-card {
  position: relative;
  min-height: 210px;
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* cursor-follow spotlight tinted with the club accent */
.club-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -20%),
    color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.club-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong));
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.85),
    0 0 42px -22px color-mix(in srgb, var(--accent) 70%, transparent);
}
.club-card:hover::before { opacity: 1; }

/* oversized faint crest bleeding out of the corner */
.crest-bg {
  position: absolute;
  right: -26px; bottom: -30px;
  width: 150px; height: 150px;
  object-fit: contain;
  opacity: 0.06;
  z-index: 0;
  filter: grayscale(1);
  transform: rotate(-8deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.crest-bg.crest-tall { width: auto; height: 170px; }
.club-card:hover .crest-bg { opacity: 0.14; transform: rotate(-8deg) scale(1.06); }

/* main crest with an accent glow behind it */
.crest-main {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.crest-main::after {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 68%);
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.club-card:hover .crest-main::after { opacity: 1; }
.crest-main img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.crest-main img.crest-tall { width: auto; height: 68px; }

.card-foot {
  position: absolute;
  left: 26px; right: 26px; bottom: 24px;
  z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-foot .club-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.card-foot .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 600; color: var(--green);
  padding: 4px 10px; border-radius: 100px;
  background: rgba(91, 214, 160, 0.1); border: 1px solid rgba(91, 214, 160, 0.22);
}

/* full-width "more clubs" strip */
.more-strip {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px dashed var(--border-strong);
  background:
    radial-gradient(500px 160px at 12% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--surface);
  flex-wrap: wrap;
}
.more-left { display: flex; align-items: center; gap: 18px; }
.more-plus {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 700; color: #1a0f0a;
  background: var(--brand-grad);
}
.more-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.more-sub { color: var(--text-muted); font-size: 0.92rem; }
.more-dots { display: flex; gap: 10px; }
.more-dots span {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.more-dots span:nth-child(4) { opacity: 0.6; }
.more-dots span:nth-child(5) { opacity: 0.3; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .ico {
  width: 46px; height: 46px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(226, 128, 95, 0.1);
  border: 1px solid rgba(226, 128, 95, 0.2);
  margin-bottom: 18px;
}
.card .ico svg { width: 23px; height: 23px; color: var(--coral); }
.card h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Clubs & pricing (combined) ---------- */
.pricing { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}
.plans-pricing { position: sticky; top: 90px; }
.plans-pricing .price-card { max-width: none; margin: 0; }
.plans-coverage .coverage-grid { grid-template-columns: repeat(2, 1fr); }
.plans-coverage .club-card { min-height: 180px; }
.plans-coverage .more-strip { margin-top: 18px; }

.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
}
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-grad); }
.price-card .plan { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.price-card .amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.price-card .amount .num { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; }
.price-card .amount .per { color: var(--text-muted); font-size: 1rem; }
.price-card .sub { color: var(--text-muted); margin-bottom: 26px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.price-card li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.96rem; color: var(--text); }
.price-card li svg { width: 19px; height: 19px; color: var(--mint); flex-shrink: 0; margin-top: 2px; }
.price-card .btn { width: 100%; justify-content: center; }

/* ---------- Discord / community ---------- */
.discord-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(700px 300px at 80% 20%, rgba(88, 101, 242, 0.25), transparent 60%),
    linear-gradient(135deg, #16181f, #0f1015);
  padding: 54px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.discord-card .d-copy { max-width: 580px; }
.discord-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.discord-card p { color: var(--text-muted); font-size: 1.05rem; }
.discord-card .d-logo { color: #fff; margin-bottom: 20px; }
.discord-card .d-logo svg { width: 58px; height: 44px; }

/* ---------- Mega footer: giant BRICKY ---------- */
.mega-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #070809 100%);
  padding: 80px 0 44px;
  text-align: center;
  overflow: hidden;
}
.mega-word {
  font-weight: 900;
  font-size: 26vw;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
  padding: 0 12px;
}
.mega-word span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mega-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.mega-sub a { color: var(--text-muted); transition: color 0.15s; }
.mega-sub a:hover { color: var(--coral); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .plans-pricing { position: static; }
  .plans-pricing .price-card { max-width: 480px; margin: 0 auto; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 18px 24px; gap: 16px;
  }
  .nav-links.open .nav-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-links.open .btn { justify-content: center; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
  .sec-head { margin-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { gap: 14px 20px; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .club-card { min-height: 180px; padding: 20px; }
  .crest-main { width: 60px; height: 60px; }
  .crest-main img { width: 54px; height: 54px; }
  .crest-main img.crest-tall { height: 58px; }
  .card-foot { left: 20px; right: 20px; bottom: 18px; }
  .card-foot .club-name { font-size: 0.95rem; }
  .crest-bg { width: 120px; height: 120px; }
  .crest-bg.crest-tall { height: 140px; }
  .more-strip { padding: 22px 20px; gap: 18px; }
  .more-dots { display: none; }
  .console { max-width: 100%; }
  .console-bar { padding: 11px 13px; }
  .console-title { display: none; }
  .console-body { font-size: 0.7rem; line-height: 1.85; padding: 15px 14px 18px; }
  .discord-card { padding: 34px 22px; gap: 26px; }
  .discord-card .d-copy { max-width: 100%; }
  .discord-card .btn-lg { width: 100%; justify-content: center; }
  .price-card { padding: 30px 22px; }
  .price-card .amount .num { font-size: 3rem; }
  .mega-footer { padding: 56px 0 36px; }
  .mega-word { font-size: 25vw; }
  .mega-sub { flex-direction: column; gap: 10px; margin-top: 22px; }
}
@media (max-width: 380px) {
  .hero-meta .m { font-size: 0.84rem; }
  .mega-word { font-size: 24.5vw; }
}
