/* === Base Colors (Dark Mode default) === */
:root {
  --cc-bg: #0d1b2a;
  --cc-bg-alt: #11243a;
  --cc-accent: #2e5aac;
  --cc-accent-2: #5aa0ff;
  --cc-text: #e6ecf5;
  --cc-muted: #8ca3bc;
  --cc-border: #23364f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body.cc-body {
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: linear-gradient(180deg, var(--cc-bg) 0%, #0f2135 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--cc-text);
  line-height: 1.5;
}

/* === Header === */
.cc-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--cc-bg);
  border-bottom: 1px solid var(--cc-border);
  z-index: 100;
}
.cc-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff; /* always white */
  font-weight: 700;
}
.cc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-nav a:not(.cc-btn) {
  color: #fff; /* plain links stay white */
}

/* === Footer === */
.cc-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--cc-bg);
  border-top: 1px solid var(--cc-border);
}
.cc-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--cc-muted);
}
.cc-footer a {
  color: #fff;
  text-decoration: none;
}

/* === Buttons === */
.cc-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--cc-border);
  background: var(--cc-bg-alt);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cc-btn:hover { opacity: 0.9; }
.cc-btn:focus { outline: 2px solid var(--cc-accent); outline-offset: 2px; }

.cc-btn-primary {
  background: linear-gradient(145deg, var(--cc-accent), var(--cc-accent-2));
  border: none;
  color: #fff;
}
.cc-btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* === Landing page === */
.cc-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* Hero Section */
.hero {
  margin-bottom: 40px;
}
.hero-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 16px;
  color: var(--cc-muted);
  text-align: justify;
}

/* Features */
.features {
  display: grid;
  gap: 28px;
}
@media (min-width: 700px) {
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  color: var(--cc-accent-2);
  font-size: 28px;
  margin-top: 4px;
}
.feature-text { flex: 1; }
.feature-text h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.feature-text p {
  font-size: 15px;
  color: var(--cc-muted);
  text-align: justify;
}

/* Call-to-action */
.landing-cta {
  margin-top: 40px;
}
.landing-cta .cc-btn {
  font-size: 17px;
  padding: 14px;
  border-radius: 12px;
}

/* === Light Mode === */
@media (prefers-color-scheme: light) {
  :root {
    --cc-text: #1a1a1a;
    --cc-muted: #555;
    --cc-border: #d0d7e2;
  }

  body.cc-body {
    background: linear-gradient(180deg, #f7f9fc 0%, #e9eef5 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--cc-text);
  }

  /* Default buttons (Login) → black text */
  .cc-btn {
    background: #fff;
    color: #000; /* force black text */
    border: 1px solid var(--cc-border);
  }

  /* Primary buttons (Register) stay blue */
  .cc-btn-primary {
    background: linear-gradient(145deg, var(--cc-accent), var(--cc-accent-2));
    color: #fff;
  }

  /* Header/Footer links remain white */
  .cc-brand,
  .cc-nav a:not(.cc-btn),
  .cc-footer a {
    color: #fff !important;
  }
}