/* ============================================================
   CONSISTENT CREATIVE — Shared Design System
   cc-theme.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Base backgrounds */
  --bg:   #08080f;
  --bg2:  #10101c;
  --bg3:  #181828;
  --bg4:  #202035;

  /* Borders */
  --border:  rgba(255,255,255,0.09);
  --border2: rgba(255,255,255,0.16);

  /* Text */
  --text:  #f4f4f2;
  --text2: #dcdce8;
  --text3: #aaaabc;

  /* Gold — primary accent */
  --gold:       #e8b84b;
  --gold-dim:   rgba(232,184,75,0.12);
  --gold-glow:  rgba(232,184,75,0.25);

  /* Neon blue — secondary accent */
  --blue:      #4d9fff;
  --blue-dim:  rgba(77,159,255,0.1);
  --blue-glow: rgba(77,159,255,0.25);

  /* Semantic UI colours */
  --green:      #3dd68c;
  --green-dim:  rgba(61,214,140,0.12);
  --red:        #f06060;
  --red-dim:    rgba(240,96,96,0.12);
  --purple:     #c084fc;
  --purple-dim: rgba(192,132,252,0.12);
  --pink:       #f472b6;
  --pink-dim:   rgba(244,114,182,0.12);
  --amber:      #f0a840;
  --amber-dim:  rgba(240,168,64,0.12);

  /* Layout */
  --max-width: 940px;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background textures ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Ambient orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(15,50,160,0.22), transparent 70%);
  top: -150px; left: -110px;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(77,159,255,0.1), transparent 70%);
  top: 60px; right: -80px;
  animation-delay: 3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,184,75,0.07), transparent 70%);
  top: 45%; left: 30%;
  animation-delay: 6s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.03); }
}

/* ── Layout ── */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

/* ── Wordmark ── */
.cc-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.wm-bold  { font-weight: 700; color: #d0d0ce; letter-spacing: 0.12em; }
.wm-light { font-weight: 400; color: #505058; letter-spacing: 0.08em; }

/* ── Nav ── */
.cc-nav {
  position: relative;
  z-index: 100;
  background: transparent;
  border-bottom: 0.5px solid var(--border);
}
.cc-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cc-nav-link {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.cc-nav-link:hover   { color: var(--text2); }
.cc-nav-link.active  { color: var(--gold); font-weight: 600; }
.cc-nav-link.account { color: var(--text3); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-xs);
  padding: 9px 20px;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--bg);
}
.btn-gold:hover { background: #f0c45a; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text3);
  border: 0.5px solid var(--border2);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text2); border-color: var(--border2); }

.btn-danger {
  background: transparent;
  color: rgba(240,96,96,0.6);
  border: 0.5px solid rgba(240,96,96,0.3);
}
.btn-danger:hover { background: var(--red-dim); color: var(--red); border-color: rgba(240,96,96,0.5); }

.btn-sm { font-size: 11px; padding: 7px 14px; }
.btn-lg { font-size: 14px; padding: 12px 28px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

/* ── Cards ── */
.card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Card colour tints */
.card-gold   { background: linear-gradient(145deg, rgba(232,184,75,0.09) 0%, rgba(16,16,24,0.95) 60%); border-color: rgba(232,184,75,0.2); }
.card-blue   { background: linear-gradient(145deg, rgba(77,159,255,0.08) 0%, rgba(16,16,24,0.95) 60%); border-color: rgba(77,159,255,0.18); }
.card-purple { background: linear-gradient(145deg, rgba(192,132,252,0.08) 0%, rgba(16,16,24,0.95) 60%); border-color: rgba(192,132,252,0.18); }
.card-green  { background: linear-gradient(145deg, rgba(61,214,140,0.08) 0%, rgba(16,16,24,0.95) 60%); border-color: rgba(61,214,140,0.18); }
.card-pink   { background: linear-gradient(145deg, rgba(244,114,182,0.07) 0%, rgba(16,16,24,0.95) 60%); border-color: rgba(244,114,182,0.18); }
.card-amber  { background: linear-gradient(145deg, rgba(240,168,64,0.08) 0%, rgba(16,16,24,0.95) 60%); border-color: rgba(240,168,64,0.18); }

/* Card accent left border */
.card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  border-radius: 0;
}
.acc-gold   { background: linear-gradient(180deg, var(--gold), rgba(232,184,75,0.15)); }
.acc-blue   { background: linear-gradient(180deg, var(--blue), rgba(77,159,255,0.15)); }
.acc-purple { background: linear-gradient(180deg, var(--purple), rgba(192,132,252,0.15)); }
.acc-green  { background: linear-gradient(180deg, var(--green), rgba(61,214,140,0.15)); }
.acc-pink   { background: linear-gradient(180deg, var(--pink), rgba(244,114,182,0.15)); }
.acc-amber  { background: linear-gradient(180deg, var(--amber), rgba(240,168,64,0.15)); }

/* Card corner glow */
.card-glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  pointer-events: none;
}
.glow-gold   { background: radial-gradient(circle, rgba(232,184,75,0.18) 0%, transparent 70%); }
.glow-blue   { background: radial-gradient(circle, rgba(77,159,255,0.16) 0%, transparent 70%); }
.glow-purple { background: radial-gradient(circle, rgba(192,132,252,0.14) 0%, transparent 70%); }

/* ── Badges / Pills ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
}
.badge-gold   { color: var(--gold);   background: rgba(232,184,75,0.1);  border: 0.5px solid rgba(232,184,75,0.22); }
.badge-gold   .badge-dot { background: var(--gold);   box-shadow: 0 0 5px rgba(232,184,75,0.9); }
.badge-blue   { color: var(--blue);   background: rgba(77,159,255,0.08); border: 0.5px solid rgba(77,159,255,0.2); }
.badge-blue   .badge-dot { background: var(--blue);   box-shadow: 0 0 5px rgba(77,159,255,0.9); }
.badge-purple { color: var(--purple); background: rgba(192,132,252,0.08);border: 0.5px solid rgba(192,132,252,0.2); }
.badge-purple .badge-dot { background: var(--purple); box-shadow: 0 0 5px rgba(192,132,252,0.8); }
.badge-green  { color: var(--green);  background: rgba(61,214,140,0.08); border: 0.5px solid rgba(61,214,140,0.2); }
.badge-green  .badge-dot { background: var(--green);  box-shadow: 0 0 5px rgba(61,214,140,0.8); }
.badge-dim    { color: var(--text3);  background: rgba(255,255,255,0.04);border: 0.5px solid var(--border); }

/* ── Form fields ── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  color: var(--text3);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.field-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: all 0.2s;
}
.field-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,75,0.1);
}
.field-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  width: 100%;
}
.field-input::placeholder { color: var(--text3); }
.field-hint {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}
.field-error {
  font-size: 12px;
  color: var(--red);
  line-height: 1.5;
  display: none;
}
.field-error.visible { display: block; }

/* ── Section blocks ── */
.section-block {
  padding: 28px;
  border-top: 0.5px solid var(--border);
  position: relative;
  z-index: 1;
}
.section-block-alt { background: rgba(255,255,255,0.014); }
.section-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.section-block-desc { font-size: 11px; color: var(--text3); }
.section-block-link {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.section-block-link:hover { color: #f0c45a; }

/* ── Neon eyebrow ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow-pip {
  width: 22px; height: 1.5px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(77,159,255,0.95);
  flex-shrink: 0;
}
.eyebrow-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── Pulse dot ── */
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 7px rgba(77,159,255,1);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Switch ── */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
  position: absolute; inset: 0;
  background: var(--bg4);
  border: 0.5px solid var(--border2);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.22s;
}
.switch-track::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 2px; top: 2px;
  background: var(--text3);
  border-radius: 50%;
  transition: all 0.22s;
}
.switch input:checked + .switch-track { background: rgba(232,184,75,0.2); border-color: var(--gold); }
.switch input:checked + .switch-track::before { transform: translateX(20px); background: var(--gold); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation: fadeUp 0.5s 0.05s ease both; }
.fade-up-2 { animation: fadeUp 0.5s 0.12s ease both; }
.fade-up-3 { animation: fadeUp 0.5s 0.19s ease both; }
.fade-up-4 { animation: fadeUp 0.5s 0.26s ease both; }

/* ── Footer ── */
.cc-footer {
  border-top: 0.5px solid var(--border);
  padding: 16px 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  background: rgba(6,6,14,0.8);
  max-width: 100%;
}
.cc-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cc-footer p {
  font-size: 11px;
  color: var(--text3);
  font-family: 'DM Mono', monospace;
  line-height: 1.8;
}
.cc-footer a { color: var(--text3); text-decoration: none; border-bottom: 0.5px solid var(--border2); }
.cc-footer a:hover { color: var(--text2); }

/* ── Utility ── */
.mono { font-family: 'DM Mono', monospace; }
.text-gold   { color: var(--gold); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text3); }
.text-body   { color: var(--text2); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .cc-nav-inner { padding: 0 1.25rem; }
  .section-block { padding: 20px 1.25rem; }
  .card { padding: 1.5rem 1.25rem; }
}
