/* ==========================================================================
   CoinConnect Intelligence — brand stylesheet
   Tokens taken directly from the coinconnect.site homepage source so the blog
   is visually identical to the main site.

     base #0a0a0f · cyan #06b6d4 · violet #8b5cf6 · blue #3b82f6 · accent #22d3ee
     display font Space Grotesk · body font Inter
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --glass: rgba(255, 255, 255, .03);
  --glass-strong: rgba(255, 255, 255, .05);
  --glass-border: rgba(255, 255, 255, .08);
  --glass-border-strong: rgba(255, 255, 255, .10);

  --text: #ffffff;
  --text-1: #d1d5db;
  --text-2: #9ca3af;
  --text-3: #6b7280;

  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --accent: #22d3ee;
  --accent-soft: #e2f8fb;
  --accent-border: rgba(6, 182, 212, .3);

  --grad: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #3b82f6 100%);
  --grad-btn: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1280px;
  --reading: 760px;
}

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

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: #fff; line-height: 1.15; }

.cc-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.cc-reading { max-width: var(--reading); margin: 0 auto; }
.cc-section { padding: 80px 0; }
.cc-text-center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #0a0a0f;
  padding: 10px 16px; z-index: 300; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- surfaces --- */
.cc-mesh {
  background:
    radial-gradient(at 40% 20%, rgba(6,182,212,.15) 0, transparent 50%),
    radial-gradient(at 80% 0%,  rgba(139,92,246,.15) 0, transparent 50%),
    radial-gradient(at 0%  50%, rgba(59,130,246,.15) 0, transparent 50%),
    radial-gradient(at 80% 50%, rgba(6,182,212,.10) 0, transparent 50%),
    radial-gradient(at 0% 100%, rgba(139,92,246,.15) 0, transparent 50%);
}
.cc-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cc-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}
.cc-glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-strong);
}

/* ----------------------------------------------------------- typography --- */
.cc-font-display { font-family: var(--font-display); }

.cc-gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cc-shimmer-text {
  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #3b82f6, #06b6d4);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cc-shimmer 3s linear infinite;
}
.cc-section-title {
  font-family: var(--font-display);
  font-weight: 700; color: #fff; line-height: 1.15;
  font-size: clamp(24px, 3.5vw, 48px);
}
.cc-section-desc {
  color: var(--text-3);
  max-width: 640px; margin: 16px auto 0;
  font-size: 15px; line-height: 1.7;
}
.cc-section-badge {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 9999px;
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-border);
  margin-bottom: 24px;
}
.cc-section-badge span {
  font-size: 12px; font-weight: 500; color: var(--accent-soft);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ---------------------------------------------------------- animations --- */
@keyframes cc-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(5deg); }
}
@keyframes cc-pulse-glow {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%      { opacity: .8; transform: scale(1.05); }
}
@keyframes cc-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes cc-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}
.cc-float      { animation: cc-float 6s ease-in-out infinite; }
.cc-float-2    { animation: cc-float 6s ease-in-out 2s infinite; }
.cc-float-slow { animation: cc-float 8s ease-in-out 1s infinite; }
.cc-pulse-glow { animation: cc-pulse-glow 4s ease-in-out infinite; }
.cc-pulse-dot  { animation: cc-pulse 2s ease-in-out infinite; }

.cc-card-hover { transition: all .4s cubic-bezier(.4,0,.2,1); }
.cc-card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(6,182,212,.2);
  border-color: rgba(6,182,212,.4) !important;
}

/* -------------------------------------------------------------- buttons --- */
.cc-btn-primary {
  background: var(--grad-btn);
  padding: 14px 32px; border-radius: 9999px;
  font-weight: 600; color: #fff !important;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s ease; font-size: 16px;
  cursor: pointer; white-space: nowrap; border: none;
}
.cc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(6,182,212,.4); }

.cc-btn-outline {
  border: 1px solid rgba(255,255,255,.2);
  padding: 14px 32px; border-radius: 9999px;
  font-weight: 600; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s ease; background: transparent;
  font-size: 16px; cursor: pointer; white-space: nowrap;
}
.cc-btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(6,182,212,.5); }

.cc-btn-sm { padding: 10px 22px; font-size: 14px; }

/* ------------------------------------------------------ canvas backdrop --- */
#cc-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .6; }
.cc-page { position: relative; z-index: 1; }

/* ----------------------------------------------------------- navigation --- */
.cc-nav {
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 100;
}
.cc-nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cc-logo { display: flex; align-items: center; gap: 12px; }
/* Real CoinConnect mark. Intrinsic ratio is 480:292, so height is derived
   rather than fixed -- prevents any squash if the asset is ever replaced. */
.cc-logo-mark { width: 46px; height: auto; flex: none; display: block; }
.cc-logo-text {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: -.02em; line-height: 1.1; display: block;
}
.cc-logo-sub {
  display: block; font-family: var(--font-body);
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600; margin-top: 3px;
}
.cc-nav-links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.cc-nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .25s ease; }
.cc-nav-links a:hover { color: #fff; }

/* ---------------------------------------------------------------- hero --- */
.cc-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--glass-border);
}
.cc-hero > * { position: relative; z-index: 1; }
.cc-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 9999px;
  border: 1px solid var(--accent-border);
  background: var(--glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  margin-bottom: 24px;
}
.cc-badge-text { font-size: 14px; font-weight: 500; color: var(--accent-soft); }
.cc-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.cc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.1; margin-bottom: 24px;
  max-width: 18ch;
}
.cc-hero-desc {
  font-size: 17px; color: var(--text-2);
  max-width: 620px; line-height: 1.75;
}
.cc-hero-desc strong { color: #fff; }

/* ---------------------------------------------------------- post cards --- */
.cc-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.cc-section-head h2 { font-family: var(--font-display); font-size: 28px; }
.cc-section-head p { color: var(--text-3); font-size: 14px; }

.cc-post-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.cc-post-card {
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.cc-post-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.35; }
.cc-post-card h3 a { color: #fff; }
.cc-post-card h3 a:hover { color: var(--accent); }
.cc-post-card p { color: var(--text-2); font-size: 14px; line-height: 1.65; }

.cc-post-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3);
}
.cc-tag {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.2);
  padding: 5px 12px; border-radius: 9999px;
}
.cc-read-more { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 6px; }
.cc-read-more:hover { color: #67e8f9; }

/* -------------------------------------------------------------- article --- */
.cc-post-header { padding: 64px 0 32px; border-bottom: 1px solid var(--glass-border); }
.cc-post-header .cc-tag { margin-bottom: 18px; }
.cc-post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px;
}
.cc-lede { color: var(--text-2); font-size: 18px; line-height: 1.7; margin-bottom: 20px; }
.cc-byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-3); }
.cc-byline strong { color: var(--text-1); font-weight: 600; }

.cc-post-body { padding: 40px 0 48px; font-size: 17px; color: var(--text-1); }
/* Content sits inside .cc-reading, so the flow spacing must target that
   wrapper's children -- not direct children of .cc-post-body. */
.cc-post-body .cc-reading > * + * { margin-top: 22px; }
.cc-post-body h2 { font-size: 26px; margin-top: 48px; scroll-margin-top: 90px; }
.cc-post-body h3 { font-size: 20px; margin-top: 34px; }
.cc-post-body strong { color: #fff; }
.cc-post-body ul, .cc-post-body ol { padding-left: 22px; }
.cc-post-body ul li { list-style: disc; }
.cc-post-body ol li { list-style: decimal; }
.cc-post-body li { margin-bottom: 10px; }
.cc-post-body li::marker { color: var(--accent); }
.cc-post-body a { color: var(--accent); }
.cc-post-body a:hover { color: #67e8f9; }
.cc-post-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 4px 0 4px 20px; color: var(--text-2); font-style: italic;
}
.cc-post-body code {
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 2px 6px; border-radius: 6px; font-size: .9em; color: var(--accent);
}
.cc-post-body pre {
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 18px; overflow-x: auto;
}
.cc-post-body pre code { background: none; border: none; padding: 0; color: var(--text-1); }
.cc-post-body hr { border: none; border-top: 1px solid var(--glass-border); margin: 40px 0; }

.cc-table-wrap { overflow-x: auto; }
.cc-post-body table, .cc-page-body table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  border: 1px solid var(--glass-border); border-radius: 12px;
}
.cc-post-body th, .cc-post-body td,
.cc-page-body th, .cc-page-body td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--glass-border);
}
.cc-post-body th, .cc-page-body th {
  background: var(--glass); color: #fff; font-weight: 600; font-size: 14px;
}
.cc-post-body tbody tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------------ cta --- */
.cc-cta-box {
  border-radius: 24px; padding: 40px 36px;
  margin-top: 48px; position: relative; overflow: hidden;
  border: 1px solid rgba(6,182,212,.2);
}
.cc-cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(6,182,212,.1), transparent 50%, rgba(139,92,246,.1));
}
.cc-cta-inner { position: relative; }
.cc-cta-box h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 12px; }
.cc-cta-box p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }

/* ------------------------------------------------------------------ page --- */
.cc-page-header { padding: 64px 0 28px; border-bottom: 1px solid var(--glass-border); }
.cc-page-header h1 { font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 44px); }
.cc-page-body { padding: 40px 0 48px; font-size: 16px; color: var(--text-1); }
.cc-page-body .cc-reading > * + * { margin-top: 20px; }
.cc-page-body h2 { font-size: 24px; margin-top: 44px; }
.cc-page-body h3 { font-size: 19px; margin-top: 30px; }
.cc-page-body strong { color: #fff; }
.cc-page-body ul, .cc-page-body ol { padding-left: 22px; }
.cc-page-body ul li { list-style: disc; }
.cc-page-body ol li { list-style: decimal; }
.cc-page-body li { margin-bottom: 9px; }
.cc-page-body li::marker { color: var(--accent); }
.cc-page-body a { color: var(--accent); }

/* ---------------------------------------------------------------- footer --- */
.cc-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 48px 0 40px; margin-top: 24px; }
.cc-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 40px; align-items: start; }
.cc-footer h4 {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 14px; font-weight: 600;
}
.cc-footer p { color: var(--text-2); font-size: 14px; max-width: 44ch; line-height: 1.7; }
.cc-footer ul { display: flex; flex-direction: column; gap: 6px; }
.cc-footer ul a { color: var(--text-1); font-size: 14px; transition: all .25s ease; display: inline-block; padding: 3px 0; }
.cc-footer ul a:hover { color: var(--accent); transform: translateX(2px); }
.cc-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-3);
}

/* ------------------------------------------------------------ scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: rgba(6,182,212,.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(6,182,212,.5); }

/* ------------------------------------------------------------ responsive --- */
@media (max-width: 1024px) {
  .cc-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cc-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .cc-section { padding: 48px 0; }
  .cc-container { padding: 0 16px; }
  .cc-hero { padding: 56px 0 44px; }
  .cc-post-grid { grid-template-columns: 1fr; gap: 16px; }
  .cc-post-body { font-size: 16px; }
  .cc-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cc-nav-links { gap: 18px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Keep the gradient fill or shimmer text would render invisible. */
  .cc-shimmer-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
  #cc-canvas { display: none; }
}
