/* uk-cbdc.co.uk — Modern Design System */
:root {
  --primary: #4facfe;
  --primary-dark: #2d8cf0;
  --gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e8ecf1;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 64px;
  --footer-bg: #1a1f36;
  --badge-new: #ff6b6b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
nav .logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
nav .links {
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
nav .links a {
  color: var(--text);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s;
}
nav .links a:hover { background: #eef2ff; color: var(--primary); }
.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.nav-search:hover { border-color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
  padding: 80px 24px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  animation: heroShift 20s ease-in-out infinite alternate;
}
@keyframes heroShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 650px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .cta a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  transition: all 0.25s; text-decoration: none;
}
.cta-primary { background: #fff; color: #667eea !important; }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.cta-secondary { background: rgba(255,255,255,0.15); color: #fff !important; backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,0.2); }
.cta-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Tool Card */
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.tool-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}
.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.tool-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 8px;
}
.tool-card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.tool-card:hover .card-link { color: var(--primary-dark); }

/* NEW Badge */
.badge-new {
  display: inline-block;
  background: var(--badge-new);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section header with icon */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.section-header .sec-icon { font-size: 1.6rem; }

/* Info boxes / Guide content */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.info-card:hover { box-shadow: var(--shadow); }
.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.info-card p, .info-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-card ul { list-style: none; padding: 0; }
.info-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li::before { content: "▸ "; color: var(--primary); }

/* Footer */
footer {
  background: var(--footer-bg);
  color: #b0b8c8;
  padding: 48px 24px 32px;
  text-align: center;
}
footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
footer .footer-links a { color: #8892a8; font-size: 0.9rem; }
footer .footer-links a:hover { color: #fff; }
footer .footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
footer p { font-size: 0.85rem; color: #6b7488; line-height: 1.7; }
footer .footer-disclaimer {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #555d70;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 60px 20px 50px; }
  nav .container { gap: 10px; }
  nav .links { }
  .card-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .nav-search { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  nav .logo { font-size: 1rem; }
}
