/* Balticsec Global Styles */

:root {
  --color-primary: #0a2540;
  --color-bg-dark: #020617;
  --color-accent-blue: #00aeef;
  --color-accent-green: #00c49a;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-bg: #020617;
  --color-bg-alt: #020617;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(5, 19, 35, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(0, 174, 239, 0.12), transparent 55%), var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 37, 64, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #ffffff;
}

.logo-mark {
  height: 54px;
}

.logo-text {
  display: inline-block;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.1s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link.active {
  background: rgba(0, 174, 239, 0.18);
  color: #ffffff;
}

.nav-cta {
  border: 1px solid rgba(0, 174, 239, 0.6);
  padding-inline: 0.8rem;
}

.nav-cta.active,
.nav-cta:hover {
  background: var(--color-accent-blue);
  color: #02101e;
}

/* Hero (Home) */

.hero {
  background: radial-gradient(circle at top left, rgba(0, 174, 239, 0.19), transparent 55%),
    radial-gradient(circle at top right, rgba(0, 196, 154, 0.16), transparent 52%),
    linear-gradient(135deg, #020617 0%, #020617 35%, #020b17 70%, #020617 100%);
  color: #ffffff;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-arcade {
  padding: 1.3rem 1.2rem 1.1rem;
}

.hero-arcade-header {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.7rem;
}

.hero-arcade-body {
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(circle at bottom, rgba(34, 197, 94, 0.12), transparent 60%), #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.45rem 0.5rem;
}

.hero-missions {
  display: grid;
  gap: 0.45rem;
}

.mission {
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.mission-active {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.mission-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.98);
  margin-bottom: 0.2rem;
}

.mission-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.1rem;
}

.mission-sub {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

.hero-arcade-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.chip {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.chip-blue {
  background: rgba(37, 99, 235, 0.25);
  color: #dbeafe;
}

.chip-green {
  background: rgba(22, 163, 74, 0.25);
  color: #bbf7d0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 3vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: rgba(226, 232, 240, 0.9);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-trust {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 1rem;
  text-shadow: var(--neon-glow);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top, rgba(0, 174, 239, 0.25), transparent 55%), #020617;
  border-radius: 1.1rem;
  padding: 1.4rem 1.3rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft), var(--neon-glow);
  width: 100%;
  max-width: 320px;
  position: relative;
  overflow: hidden;
}

.hero-map-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.6rem;
}

.hero-map {
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.45), transparent 65%),
    radial-gradient(circle at bottom, rgba(37, 99, 235, 0.4), transparent 60%),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 1.1rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-widget {
  padding: 1rem;
  display: flex;
  align-items: stretch;
}

.hero-map::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.14), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-map span {
  align-self: flex-start;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
  position: relative;
  padding-left: 1.3rem;
}

.hero-map span:nth-child(2) {
  align-self: center;
}

.hero-map span:nth-child(3) {
  align-self: flex-end;
}

.hero-map span::before {
  content: '';
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.hero-map-caption {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  margin-top: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  width: 100%;
}

.hero-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

.hero-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Page Hero (subpages) */

.page-hero {
  background: radial-gradient(circle at top left, rgba(0, 174, 239, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 196, 154, 0.16), transparent 55%),
    linear-gradient(135deg, #020617, #020617 40%, #020b17 100%);
  color: #ffffff;
  padding: 3.1rem 0 3.3rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background-image: linear-gradient(rgba(30, 64, 175, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 0.7rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.page-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  max-width: 40rem;
}

/* Sections */

.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(0, 174, 239, 0.16), transparent 60%), var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}

.section-subtitle {
  margin: 0 0 1.4rem;
  color: var(--color-muted);
}

.section-cta {
  text-align: center;
  background: radial-gradient(circle at top, rgba(0, 174, 239, 0.08), transparent 60%), #020617;
  color: #ffffff;
}

.section-cta .section-title {
  margin-bottom: 0.5rem;
}

.section-cta .section-subtitle {
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 1.4rem;
}

/* Cards & Layouts */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.games-lobby {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
  border-radius: 1rem;
  padding: 1.3rem 1.2rem 1.2rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.section-alt .card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: radial-gradient(circle at 30% 0%, rgba(0, 174, 239, 0.35), transparent 65%),
    rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.game-tile {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), #020617);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e5e7eb;
}

.game-header h4 {
  margin: 0.35rem 0 0.15rem;
  font-size: 1rem;
}

.game-sub {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0.6rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.98);
}

.game-meta span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
}

.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.game-badge-green {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.game-badge-blue {
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
}

.game-badge-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #ffedd5;
}

.game-badge-purple {
  background: rgba(168, 85, 247, 0.22);
  color: #f3e8ff;
}

.game-badge-red {
  background: rgba(239, 68, 68, 0.22);
  color: #fee2e2;
}

.card h3,
.card h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: rgba(209, 213, 219, 0.95);
}

.card-list {
  padding: 1.1rem 1rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent-blue);
}

.card-link::after {
  content: ' →';
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  border-color: rgba(0, 174, 239, 0.55);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.1rem;
  margin-top: 1.6rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  margin-top: 1.6rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.3rem;
  align-items: flex-start;
}

/* Lists */

.list-checks,
.list-bullets {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list-checks li,
.list-bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.list-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.78rem;
  color: var(--color-accent-green);
}

.list-bullets li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--color-accent-blue);
}

/* Pills */

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.78rem;
  color: #0f172a;
  background: #ffffff;
}

.section-alt .pill {
  background: #f9fafb;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-blue), #38bdf8);
  color: #02101e;
  border-color: rgba(0, 174, 239, 0.8);
  box-shadow: 0 12px 25px rgba(56, 189, 248, 0.4);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.75);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8, var(--color-accent-blue));
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.85);
}

button.btn {
  border: none;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-form-wrapper {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-radius: 1.2rem;
  padding: 1.7rem 1.5rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e5e7eb;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 174, 239, 0.35);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

.optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form-note {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.contact-details {
  padding-top: 0.4rem;
}

.contact-details h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-details h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.3rem;
}

.contact-details p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
}

.contact-thanks {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: rgba(52, 211, 153, 0.9);
  display: none;
}

#thanks:target {
  display: block;
}

/* Footer */

.site-footer {
  background: #020617;
  color: rgba(148, 163, 184, 0.95);
  padding: 1.3rem 0 1.4rem;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  font-size: 0.8rem;
}

.footer-meta {
  color: rgba(148, 163, 184, 0.9);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .split,
  .grid-2,
  .grid-3,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 2.4rem 0;
  }
}
