/* ====================================================================
   BASE.CSS – OpenSovereign Design Foundation
   Fonts, design tokens, reset, base elements, container
   ==================================================================== */

/* ====== FONT FACES ====== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ====== DESIGN TOKENS ====== */

:root {
  /* Typography */
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Brand colors */
  --color-primary: #FF3131;  /* Same as --color-accent: one red site-wide */
  --color-accent: #FF3131;  /* Red of the Swiss cross in the logo */
  --color-darkblack: #112344;

  /* Backgrounds */
  --bg-dark: #111112;
  --bg-dark-2: #151515;
  --bg-dark-3: #1a1a1b;

  /* Text */
  --text-white: #fff;
  --text-gray: #6F6F6F;
  --text-gray-light: #999;

  /* Borders */
  --border-dark: #474747;
  --border-subtle: #2a2a2a;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-full: 100px;

  /* Layout */
  --max-width: 1200px;

  /* Soft overlays */
  --primary-soft: rgba(255, 49, 49, 0.08);
  --accent-soft: rgba(255, 49, 49, 0.08);

  /* Partner palette */
  --color-vshn: #4081CB;
  --color-puzzle: #E5352D;
  --color-adfinis: #1D4F91;
  --color-cloudscale: #0C7C84;
  --color-cyberlink: #1DE8E8;

  /* Partner dots — variants for dark backgrounds, min. 3:1 contrast (WCAG 1.4.11).
     Only Adfinis differs from its brand colour: #1D4F91 reaches just 2.24:1 on
     --bg-dark-2 and is indistinguishable from VSHN's blue at dot size. */
  --dot-vshn: var(--color-vshn);
  --dot-puzzle: var(--color-puzzle);
  --dot-adfinis: #7FB2E8;
  --dot-cloudscale: var(--color-cloudscale);
  --dot-cyberlink: var(--color-cyberlink);
}

/* ====== RESET ====== */

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

/* ====== HTML ====== */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== BODY ====== */

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ====== BASE ELEMENTS ====== */

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== CONTAINER ====== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ====== RESPONSIVE CONTAINER ====== */

@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
