/* ==========================================================================
   CITY CAPITAL TRADERS (CCT) — MAIN APPLICATION STYLESHEET
   ========================================================================== */

@import url('./tokens.css');
@import url('./grid.css');
@import url('./components.css');

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cct-bg);
  color: var(--cct-white);
  font-family: var(--font-main);
  font-size: var(--body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--cct-gold);
  color: #070a0f;
}

/* Background Ambient Lighting */
.cct-ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 150, 199, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(144, 224, 239, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(197, 160, 89, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 15%, rgba(2, 62, 138, 0.12) 0%, transparent 55%);
}

.cct-page-wrapper {
  position: relative;
  z-index: 1;
}

/* Typography Utility Classes */
.title-1 {
  font-size: var(--title-1);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  padding-bottom: 0.12em;
  margin-bottom: 36px;
}

.title-2 {
  font-size: var(--title-2);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
}

.title-3 {
  font-size: var(--title-3);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
}

.title-4 {
  font-size: var(--title-4);
  font-weight: 600;
  line-height: var(--lh-heading);
}

.title-5 {
  font-size: var(--title-5);
  font-weight: 600;
  line-height: 1.2;
}

.subhead-1 {
  font-size: var(--subhead-1);
  line-height: var(--lh-subhead);
  color: var(--cct-slate-300);
}

.subhead-2 {
  font-size: var(--subhead-2);
  line-height: var(--lh-subhead);
  color: var(--cct-slate-300);
}

.subhead-3 {
  font-size: var(--subhead-3);
  line-height: var(--lh-subhead);
  color: var(--cct-slate-400);
}

.text-gold {
  color: var(--cct-gold-light);
}

/* CCT2 Exact Logo & Complementary Brand Colors */
.text-logo-blue {
  color: var(--cct-logo-blue); /* #08a0fb */
}

.text-logo-ice {
  color: var(--cct-logo-ice); /* #ddfdfe */
}

.text-orange {
  color: var(--cct-orange); /* #ff9e58 */
}

.text-yellow {
  color: var(--cct-yellow); /* #fcd34d */
}

.text-green {
  color: var(--cct-green-fresh); /* #34d399 */
}

.text-gold-gradient {
  background: var(--cct-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--cct-slate-400);
}

/* Bauhaus Stylised Typography Utilities */
.bauhaus-rot-d {
  display: inline-block;
  transform: rotate(90deg);
  transform-origin: center center;
  margin: 0 0.06em 0 0.08em;
  font-weight: inherit;
  line-height: 1;
}

.bauhaus-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.font-serif {
  font-family: var(--font-main);
}

/* Spacings */
.py-160 { padding-top: 160px; padding-bottom: 160px; }
.py-120 { padding-top: 120px; padding-bottom: 120px; }
.py-80  { padding-top: 80px;  padding-bottom: 80px; }
.pt-160 { padding-top: 160px; }
.pb-160 { padding-bottom: 160px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mt-64  { margin-top: 64px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-48  { margin-bottom: 48px; }

@media (max-width: 743px) {
  .py-160 { padding-top: 80px; padding-bottom: 80px; }
  .py-120 { padding-top: 64px; padding-bottom: 64px; }
  .py-80  { padding-top: 48px; padding-bottom: 48px; }
}

/* Hero Section */
.cct-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
}

.cct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.35;
  background-image: 
    radial-gradient(ellipse at 50% -20%, rgba(197, 160, 89, 0.3), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--cct-bg) 100%);
}

.cct-hero-content {
  position: relative;
  z-index: 1;
}

/* Split Text Animation Classes */
.split-wrap {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.split-char {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease;
}

.split-char.revealed {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll Stack Effect */
.cct-scroll-stack {
  position: relative;
}

.cct-scroll-stack-item {
  position: sticky;
  top: 110px;
  margin-bottom: 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

/* Instrument Cards Grid */
.cct-instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cct-instrument-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cct-gold-subtle);
  border: 1px solid var(--cct-border-gold);
  color: var(--cct-gold-light);
  margin-bottom: 20px;
}

/* Global Footer */
.cct-footer {
  background: #05080c;
  border-top: 1px solid var(--cct-border);
  padding: 100px 0 48px;
  position: relative;
  margin-top: 120px;
}

.cct-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 1023px) {
  .cct-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .cct-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.cct-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cct-footer-col h4 {
  font-size: var(--body-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cct-gold-light);
  margin-bottom: 20px;
}

.cct-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cct-footer-links a {
  color: var(--cct-slate-400);
  text-decoration: none;
  font-size: var(--body-small);
  transition: color var(--duration-fast);
}

.cct-footer-links a:hover {
  color: var(--cct-white);
}

.cct-disclaimer-card {
  background: rgba(18, 26, 39, 0.4);
  border: 1px solid var(--cct-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 48px;
  font-size: var(--caption);
  color: var(--cct-slate-400);
  line-height: 1.7;
}

.cct-footer-bottom {
  border-top: 1px solid var(--cct-border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--cct-slate-400);
  flex-wrap: wrap;
  gap: 16px;
}

.cct-footer-credit {
  font-size: 14px;
  color: var(--cct-slate-300);
}
