/* ==========================================================================
   Reguladora MiCA - European Union Markets in Crypto-Assets Portal
   Design System & Styling Rules
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette - European Union Regulatory Theme */
  --eu-blue: #004494;
  --eu-blue-dark: #002b66;
  --eu-blue-deep: #040d21;
  --eu-gold: #ffcd35;
  --eu-gold-hover: #e6b422;

  --accent-cyan: #06b6d4;
  --accent-azure: #357df9;
  --accent-emerald: #10b981;
  --accent-teal: #00b090;

  --bg-dark: #070d1e;
  --bg-card: rgba(13, 23, 48, 0.75);
  --bg-card-hover: rgba(18, 32, 66, 0.85);
  --bg-surface: #0a142c;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-blue: rgba(53, 125, 249, 0.3);
  --border-gold: rgba(255, 205, 53, 0.3);

  --text-white: #ffffff;
  --text-body: #94a3b8;
  --text-light: #cbd5e1;
  --text-muted: #64748b;

  --font-heading: 'Epilogue', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 68, 148, 0.15);
}

/* Base Styles & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

a {
  color: var(--accent-azure);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--eu-gold);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 68, 148, 0.3);
  border: 1px solid rgba(53, 125, 249, 0.4);
  color: var(--accent-azure);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.badge-gold {
  background: rgba(255, 205, 53, 0.12);
  border-color: rgba(255, 205, 53, 0.35);
  color: var(--eu-gold);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
  min-height: 46px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.btn-primary {
  background: linear-gradient(135deg, var(--eu-blue), #0056bd);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 68, 148, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056bd, #0066e6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 230, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--eu-gold), #e6b422);
  color: #040d21;
  box-shadow: 0 4px 15px rgba(255, 205, 53, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ffe066, var(--eu-gold));
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 205, 53, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-blue);
  box-shadow: 0 15px 35px rgba(0, 68, 148, 0.3);
}

/* Site Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 13, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(4, 13, 33, 0.96);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-eu-stars {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--eu-blue);
  border: 2px solid var(--eu-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eu-gold);
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(255, 205, 53, 0.3);
}

.logo-title-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--eu-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.nav-link {
  color: var(--text-light);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}

.lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
  background: var(--eu-blue);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 130px 0 60px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(0, 68, 148, 0.4) 0%, rgba(7, 13, 30, 1) 70%);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin-top: 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #a5c7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section Padding & Headers */
.section-padding {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-header p {
  color: var(--text-body);
  font-size: 1rem;
  margin-top: 10px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Consultation & Package Cards */
.pkg-card {
  position: relative;
  overflow: hidden;
}

.pkg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--eu-blue);
}

.pkg-card.gold::before {
  background: var(--eu-gold);
}

.pkg-card.cyan::before {
  background: var(--accent-cyan);
}

.pkg-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--eu-gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Form Control Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(4, 13, 33, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-azure);
  box-shadow: 0 0 15px rgba(53, 125, 249, 0.25);
  background: rgba(7, 20, 50, 0.95);
}

/* Footer */
.site-footer {
  background: var(--eu-blue-deep);
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
  color: var(--text-body);
  font-size: 0.88rem;
}

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

.footer-brand p {
  margin-top: 12px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-body);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0 !important;
  }
  
  .logo-eu-stars {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }

  .logo-title {
    font-size: 1.02rem;
  }

  .logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .lang-selector {
    padding: 2px;
    gap: 2px;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 0.68rem;
  }

  .hero-section { padding: 90px 0 35px; }
  .section-padding { padding: 28px 0 !important; }
  .section-header { margin-bottom: 20px !important; }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(4, 13, 33, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    display: none;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
  }

  .glass-card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
