/* =====================================================================
   Country Landing Page — Shared Stylesheet
   Used by all /deriv-bot-<country>/ pages.
   Design tokens mirrored from /login/assets/css/style.css
   ===================================================================== */

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

:root {
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --coral-500: #ef4444;
  --coral-400: #f5576c;
  --ink: #0e0e0e;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-900: #111827;

  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #ef4444 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --duration-300: 300ms;
  --duration-500: 500ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-soft: rgba(255, 255, 255, 0.6);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--font-family-base);
  background: var(--gradient-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--primary-500); text-decoration: none; transition: opacity var(--duration-300) var(--ease-out); }
a:hover { opacity: 0.85; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-4); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
header.site-header {
  padding: 0.625rem 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky; top: 0; z-index: 100;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-login { color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; }
.logo img { height: 30px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.header-cta {
  background: var(--gradient-secondary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transition: all var(--duration-300) var(--ease-out);
  white-space: nowrap;
}
.header-cta:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45); }

/* Breadcrumb */
.breadcrumb { padding: 0.625rem 0; font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--violet-400); font-weight: 600; }

/* Hero */
.hero { padding: 1.75rem 0 2rem; text-align: center; animation: fadeInUp 0.8s var(--ease-out); }
.hero h1 {
  font-size: clamp(1.625rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--violet-400) 0%, var(--violet-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .local-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  background: none;
  -webkit-text-fill-color: var(--text-muted);
}
.hero p.lead {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}
.btn-primary { background: var(--gradient-secondary); color: #fff; box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3); }
.btn-primary:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5); }
.btn-secondary {
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover { opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-lg); background: #1a1a1a; }

.hero-trust { margin-top: 1.25rem; font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }
.hero-trust strong { color: var(--violet-400); font-weight: 700; }

/* Section */
section.block { padding: 1.75rem 0; }
section.block h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.875rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
section.block .section-lead {
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.875rem; }
.card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1.125rem;
  transition: all var(--duration-300) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, 0.07); border-color: rgba(139, 92, 246, 0.3); }
.card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--violet-500); display: inline-block; line-height: 1; }
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem; color: #fff; }
.card p { color: rgba(255, 255, 255, 0.65); font-size: 0.875rem; line-height: 1.55; }

/* Bots strip */
.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; }
.bot-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  color: var(--text);
  transition: all var(--duration-300) var(--ease-out);
}
.bot-card:hover { opacity: 1; transform: translateY(-3px); box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, 0.07); border-color: rgba(139, 92, 246, 0.3); }
.bot-card h3 { color: var(--violet-400); font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.bot-card p { color: rgba(255, 255, 255, 0.6); font-size: 0.8125rem; line-height: 1.5; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.step {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1.5rem 1.125rem 1.125rem;
  position: relative;
  counter-increment: step;
  transition: all var(--duration-300) var(--ease-out);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, 0.07); border-color: rgba(139, 92, 246, 0.3); }
.step::before {
  content: counter(step);
  position: absolute; top: -16px; left: 1.125rem;
  background: linear-gradient(135deg, var(--violet-400) 0%, var(--violet-500) 100%); color: #fff;
  width: 34px; height: 34px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.step h3 { font-size: 1rem; margin: 0.25rem 0 0.375rem; font-weight: 600; }
.step p { color: rgba(255, 255, 255, 0.65); font-size: 0.875rem; line-height: 1.55; }

/* FAQ */
.faq-list details {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: all var(--duration-300) var(--ease-out);
}
.faq-list details:hover { border-color: rgba(139, 92, 246, 0.3); }
.faq-list details[open] { background: rgba(255, 255, 255, 0.06); border-color: rgba(139, 92, 246, 0.35); }
.faq-list summary {
  padding: 0.875rem 1.125rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--violet-400); font-size: 1.375rem; font-weight: 300; flex-shrink: 0; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.faq-list .faq-body { padding: 0.875rem 1.125rem 1.125rem; color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; line-height: 1.65; }

/* CTA strip */
.cta-strip {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  margin: 1rem 0;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.15), transparent 60%);
  pointer-events: none;
}
.cta-strip h2 {
  margin-bottom: 0.5rem;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  position: relative;
}
.cta-strip p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1rem; position: relative; font-size: 0.9375rem; }
.cta-strip .btn-primary { position: relative; }

/* Country switcher (visible footer strip) */
.country-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.country-switcher span { color: var(--text-muted); font-size: 0.8125rem; margin-right: 0.5rem; align-self: center; }
.country-switcher a {
  color: var(--violet-400);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.05);
}
.country-switcher a:hover { background: rgba(139, 92, 246, 0.15); opacity: 1; }

/* Footer */
footer.site-footer {
  padding: 1.5rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  margin-top: 2rem;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.875rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; font-size: 0.8125rem; }
.footer-links a { color: rgba(255, 255, 255, 0.6); }
.footer-links a:hover { color: var(--text); opacity: 1; }
.footer-copy { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.footer-disclaimer { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.5); margin-top: 1rem; max-width: 900px; line-height: 1.55; }

/* Mobile */
@media (max-width: 768px) {
  .container { padding: 0 0.875rem; }
  .logo img { height: 26px; }
  .header-cta { padding: 0.5rem 0.75rem; font-size: 0.6875rem; }
  .hero { padding: 1.25rem 0 1.5rem; }
  .hero p.lead { margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.55; }
  .hero-cta-row { gap: 0.5rem; }
  .btn { padding: 0.75rem 1rem; font-size: 0.8125rem; flex: 1 1 auto; min-width: 0; }
  .hero-trust { font-size: 0.6875rem; padding: 0 0.5rem; }
  section.block { padding: 1.5rem 0; }
  .grid-3, .bot-grid, .steps { gap: 0.625rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .bot-grid { grid-template-columns: 1fr 1fr; }
  .card, .bot-card, .step, .cta-strip { padding: 1rem; }
  .step { padding-top: 1.5rem; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 0.625rem; }
  .footer-links { gap: 0.5rem 0.875rem; }
}
@media (max-width: 420px) {
  .bot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .header-cta span.cta-long { display: none; }
}
