/* ============================================================
   X2 Workshop — landing styles
   Palette: black, red, greys, white. Inspired by x2framework.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --surface: #1c1c1c;
  --line: #262626;
  --line-strong: #333333;
  --text: #f5f5f5;
  --text-dim: #b3b3b3;
  --text-mute: #7a7a7a;
  --red: #e10600;
  --red-2: #ff2d20;
  --red-soft: rgba(225, 6, 0, 0.12);
  --white: #ffffff;
  --grey-50: #f5f5f5;
  --grey-100: #e5e5e5;
  --grey-200: #cccccc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6);
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--red); }

.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 12px;
  border: 1px solid rgba(225,6,0,0.35);
  border-radius: 999px;
  background: var(--red-soft);
  margin-bottom: 16px;
}
.eyebrow--on-dark { color: var(--red-2); }

/* ---------- Logo mark ---------- */
.logo-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--white);
}
.logo-mark__two {
  color: var(--red);
  margin-left: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(225,6,0,0.7);
}
.btn--primary:hover {
  background: var(--red-2);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--white);
}

/* ============================================================
   Password gate
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 500px at 70% 20%, rgba(225,6,0,0.18), transparent 60%),
    radial-gradient(700px 600px at 20% 80%, rgba(225,6,0,0.10), transparent 60%),
    #060606;
}
.gate[hidden] { display: none; }

.gate__panel {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.gate__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.gate__brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.gate__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}
.gate__sub {
  color: var(--text-mute);
  font-size: 0.92rem;
  margin: 0 0 22px;
}
.gate__field { display: block; margin: 0 0 12px; }
.gate__field input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.gate__field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.18);
}
.gate__submit { width: 100%; }
.gate__error {
  margin: 12px 0 0;
  min-height: 1.1em;
  color: var(--red-2);
  font-size: 0.88rem;
}
.gate.shake .gate__panel { animation: shake .35s var(--ease); }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 0.93rem;
  color: var(--text-dim);
  transition: color .15s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__cta { padding: 10px 16px; font-size: 0.88rem; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(225,6,0,0.25), transparent 60%),
    radial-gradient(700px 500px at -10% 60%, rgba(225,6,0,0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0c0c0c 100%);
  pointer-events: none;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 50%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 50%, transparent 80%);
}
.hero__inner {
  position: relative;
  max-width: 920px;
}
.hero__title {
  margin-bottom: 24px;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 880px;
}
.hero__stats li {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.hero__stats strong {
  display: block;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.hero__stats span {
  color: var(--text-mute);
  font-size: 0.88rem;
}

/* ============================================================
   Strip
   ============================================================ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
}
.strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.strip__label {
  color: var(--text-mute);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.strip__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.strip__list li {
  color: var(--text-dim);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 96px 0;
}
.section--alt { background: var(--bg-2); }
.section--dark {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(225,6,0,0.18), transparent 60%),
    #050505;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head { margin-bottom: 56px; max-width: 760px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__lede {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ============================================================
   Grids
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--modules {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red-2);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { color: var(--white); margin-bottom: 6px; }
.card p { color: var(--text-dim); font-size: 0.94rem; margin: 0; }

.module {
  position: relative;
  background: #131313;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s var(--ease);
}
.module:hover { border-color: var(--red); }
.module__tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  margin-bottom: 14px;
}
.module h3 { color: var(--white); margin-bottom: 6px; }
.module p { font-size: 0.94rem; margin: 0; }

/* ============================================================
   Split (private label)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}
.split__copy h2 { margin-bottom: 18px; }
.split__copy p { font-size: 1.02rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 28px; }
.checks li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.checks li:last-child { border-bottom: none; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  background:
    linear-gradient(135deg, var(--red), var(--red-2));
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.checks li::after {
  content: '';
  position: absolute;
  left: 4px; top: calc(50% - 4px);
  width: 6px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.split__visual {
  position: relative;
  min-height: 360px;
}
.brand-card {
  position: absolute;
  width: 78%;
  background: linear-gradient(180deg, #1c1c1c 0%, #121212 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-card__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}
.brand-card__pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-2);
  border: 1px solid rgba(225,6,0,0.4);
}
.brand-card--a { top: 0;   left: 0;   transform: rotate(-3deg); }
.brand-card--b { top: 100px; right: 0; transform: rotate(2deg);
  background: linear-gradient(180deg, var(--red) 0%, #a30400 100%);
  border-color: #ff4f44;
}
.brand-card--b .brand-card__logo { color: var(--white); }
.brand-card--b .brand-card__pill { background: rgba(255,255,255,0.18); color: var(--white); border-color: rgba(255,255,255,0.3); }
.brand-card--c { top: 220px; left: 8%; transform: rotate(-1deg);
  background: linear-gradient(180deg, #f5f5f5 0%, #e3e3e3 100%);
  border-color: #cccccc;
}
.brand-card--c .brand-card__logo { color: #0a0a0a; }
.brand-card--c .brand-card__pill { background: rgba(0,0,0,0.06); color: #0a0a0a; border-color: rgba(0,0,0,0.12); }

@media (max-width: 600px) {
  .split__visual { min-height: 320px; }
  .brand-card { width: 88%; }
}

/* ============================================================
   Nordic / flags
   ============================================================ */
.flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.flag-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.flag-card:hover {
  border-color: var(--red);
  background: rgba(225,6,0,0.06);
}
.flag-card__cc {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 4px;
}
.flag-card span:last-child {
  color: var(--text-mute);
  font-size: 0.88rem;
}

/* ============================================================
   Contact / CTA band
   ============================================================ */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
}
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-mute);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.16);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-form__note {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: #050505;
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text);
}
.footer__copy {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Mobile tightening
   ============================================================ */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .section__head { margin-bottom: 36px; }
  .cta-band { padding: 24px; }
  .nav__cta { display: none; }
}
