@import url('layout.css');
@import url('components.css');

:root {
  --bg: #030816;
  --bg2: #07101d;
  --gold: #f6b93b;
  --gold2: #ffd166;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --border: rgba(255, 255, 255, .12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 190, 80, .32), transparent 18%),
    radial-gradient(circle at 18% 16%, rgba(16, 80, 255, .22), transparent 25%),
    linear-gradient(180deg, #020617 0%, #020816 42%, #030a18 100%);
  overflow-x: hidden;
  padding-top: 82px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: 0;
}

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

h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 16px 0 22px;
  font-weight: 800;
}

h3 {
  margin: 0;
}

.section {
  padding: 82px 0;
}

.section-header {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-header p {
  color: rgba(255, 255, 255, .72);
  font-size: 20px;
  line-height: 1.65;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .24em;
  color: #ffd166;
  font-weight: 800;
  font-size: 13px;
}

a {
  color: inherit;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: min(920px, calc(100% - 32px));
  z-index: 9999;
  background: rgba(2, 8, 22, .92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 209, 102, .18);
  border-radius: 22px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
}

.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}

.cookie-text h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #ffd166;
  letter-spacing: .02em;
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .70);
  max-width: 520px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 209, 102, .35);
}

.cookie-btn.primary {
  background: linear-gradient(90deg, #f6b93b, #ffd166);
  color: #07101d;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(246, 185, 59, .25);
}

.cookie-btn.secondary {
  background: transparent;
}

.cookie-btn.ghost {
  border: 1px solid rgba(255, 209, 102, .25);
  color: #ffd166;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  z-index: 10000;
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-box {
  width: min(520px, calc(100% - 28px));
  background: rgba(2, 8, 22, .96);
  border: 1px solid rgba(255, 209, 102, .18);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

.cookie-modal-header h3 {
  margin: 0 0 6px;
  color: #ffd166;
  font-size: 20px;
}

.cookie-modal-header p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  margin-bottom: 10px;
}

.cookie-option strong {
  display: block;
  color: white;
  font-size: 14px;
}

.cookie-option span {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  margin-top: 2px;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  accent-color: #ffd166;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 520px) {
  .cookie-modal-actions {
    flex-direction: column;
  }
}

#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(7, 16, 29, .95), rgba(2, 8, 22, .95));
  border: 1px solid rgba(255, 209, 102, .35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px);
  color: white;
  min-width: 260px;
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  transition: all .35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.success .toast-icon {
  background: rgba(80, 200, 120, .15);
  border: 1px solid rgba(80, 200, 120, .35);
}

.toast.success i {
  color: #50c878;
}

.toast.error .toast-icon {
  background: rgba(255, 90, 90, .15);
  border: 1px solid rgba(255, 90, 90, .35);
}

.toast.error i {
  color: #ff5a5a;
}

.toast-title {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}