/* ==========================================================
   Build-Pro Client Portal — coming-soon landing page
   Matches the main site's design language.
   ========================================================== */

:root {
  --color-ink: #0e1116;
  --color-dark: #0e1116;
  --color-dark-2: #161a21;
  --color-dark-soft: #2a313c;

  --color-accent: #f5b417;
  --color-accent-2: #e09c00;
  --color-accent-ink: #161a21;
  --color-primary: #d83a1c;

  --radius-md: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.45), 0 8px 16px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #e9ecf1;
  background: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.portal {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
  isolation: isolate;
}
.portal-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(245,180,23,.10), transparent 60%),
    radial-gradient(ellipse at 80% 75%, rgba(245,180,23,.06), transparent 55%),
    linear-gradient(135deg, #0e1116 0%, #1a1f2a 50%, #0e1116 100%);
}
.portal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'><path d='M0 50 H100 M50 0 V100'/><path d='M0 25 H100 M0 75 H100 M25 0 V100 M75 0 V100'/></g></svg>");
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Diagonal yellow stripe (mirrors the main-site hero) */
.portal-stripe {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 380px;
  height: 180%;
  background: linear-gradient(180deg, transparent 0%, var(--color-accent) 45%, var(--color-accent-2) 55%, transparent 100%);
  transform: rotate(18deg);
  opacity: .07;
  z-index: -1;
  pointer-events: none;
}

.portal-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

/* ---------- Brand mark (matches main site logo) ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--color-accent);
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.2);
}
.logo-mark::before, .logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
}
.logo-mark::before {
  width: 16px; height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.logo-mark::after {
  width: 2px; height: 16px;
  background: #fff;
  transform: rotate(45deg);
}
.logo-text { font-size: 1.2rem; }
.logo-text span { color: var(--color-accent); }

/* ---------- Card ---------- */
.card {
  width: 100%;
  background: rgba(22, 26, 33, .65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-accent);
  background: rgba(245,180,23,.08);
  border: 1px solid rgba(245,180,23,.25);
  border-radius: 999px;
  margin-bottom: 28px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  position: relative;
}
.dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  opacity: 0;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

.lock-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245,180,23,.15), rgba(245,180,23,.04));
  border: 1px solid rgba(245,180,23,.25);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  margin: 0 auto 24px;
}
.lock-icon svg { width: 36px; height: 36px; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
}
.lede {
  margin: 0 auto 32px;
  max-width: 460px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  text-align: left;
  max-width: 480px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.features svg {
  width: 16px; height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  box-shadow: 0 6px 18px rgba(245,180,23,.35);
}
.btn-primary:hover { background: var(--color-accent-2); box-shadow: 0 10px 24px rgba(245,180,23,.5); }
.btn-ghost {
  background: rgba(255,255,255,.05);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

/* ---------- Footer ---------- */
.portal-foot {
  text-align: center;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
}
.portal-foot p { margin: 0 0 4px; }
.portal-foot a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.portal-foot a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.portal-foot .copy {
  margin-top: 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.portal-foot span[aria-hidden] { margin: 0 8px; color: rgba(255,255,255,.3); }

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; max-width: 320px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .lock-icon { width: 64px; height: 64px; }
  .lock-icon svg { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
