/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
  --bg: #050713;
  --bg-elevated: #090c1c;
  --bg-elevated-soft: #0d1023;
  --border-subtle: rgba(255, 255, 255, 0.06);

  --text: #f9fafb;
  --text-soft: #b5bed8;

  --accent: #7f5dff;
  --accent2: #4fd1ff;
  --accent-soft: rgba(127, 93, 255, 0.18);
  --accent-soft2: rgba(79, 209, 255, 0.15);

  --danger-soft: rgba(255, 99, 132, 0.24);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 22px 55px rgba(0, 0, 0, 0.9);
}

/* ===========================
   RESET / BASE
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #17192f 0, #050713 55%);
  color: var(--text);
  min-height: 100vh;
}

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

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

/* ===========================
   LAYOUT HELPERS
   =========================== */
.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 6rem 0 5rem;
  position: relative;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-lead {
  max-width: 640px;
  color: var(--text-soft);
  line-height: 1.6;
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
}

@media (max-width: 880px) {
  .two-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   TOPBAR
   =========================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 19, 0.95),
    rgba(5, 7, 19, 0.92)
  );
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

/* ===========================
   BRAND
   =========================== */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0%,
    #ffffff 0,
    #7f5dff 35%,
    #111827 70%
  );
  box-shadow: 0 0 22px rgba(127, 93, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-orb {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ecfeff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
  animation: orb 3.5s ease-in-out infinite;
}

@keyframes orb {
  0% {
    transform: translate(-4px, 2px) scale(0.85);
  }
  50% {
    transform: translate(5px, -2px) scale(1.1);
  }
  100% {
    transform: translate(-4px, 2px) scale(0.85);
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* ===========================
   NAVIGATION + DROPDOWN
   =========================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

/* pojedynczy link */
.nav-link {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, transform 0.12s ease;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link.nav-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Contact – pill */
.nav-pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 255, 0.5);
  background: radial-gradient(
    circle at 0 0,
    rgba(79, 209, 255, 0.4),
    transparent 55%
  );
}

.nav-pill:hover {
  background: radial-gradient(
    circle at 0 0,
    rgba(79, 209, 255, 0.6),
    transparent 60%
  );
}

/* Dropdown (Solutions – styl Anthropic) */
.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--text-soft);
  font: inherit;
}

.nav-link-dropdown::after {
  display: none;
}

.nav-caret {
  font-size: 0.7rem;
  transform-origin: center;
  transition: transform 0.16s ease;
}

.nav-item-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

/* panel dropdown */
.nav-dropdown-panel {
  position: absolute;
  top: 140%;
  left: 0;
  min-width: 280px;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(5, 7, 19, 0.98);
  border: 1px solid rgba(148, 163, 255, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}

.nav-item-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-column {
  min-width: 0;
}

.dropdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.dropdown-link {
  display: block;
  padding: 0.32rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-radius: 0.45rem;
}

.dropdown-link:hover {
  color: #e5e7ff;
  background: rgba(30, 64, 175, 0.65);
}

/* Responsywność nawigacji */
@media (max-width: 880px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .nav-dropdown-panel {
    position: static;
    box-shadow: none;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 255, 0.3);
    margin-top: 0.35rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding-top: 5rem;
}

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

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

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, var(--accent-soft2), transparent 60%);
  border: 1px solid rgba(148, 163, 255, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.3rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3vw + 1.4rem, 3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

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

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; /* Safari / Chrome */
  background-clip: text;         /* standard */
  color: transparent;
}

.hero-lead {
  color: var(--text-soft);
  max-width: 560px;
  line-height: 1.7;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #0b1020;
  box-shadow: 0 18px 40px rgba(67, 56, 202, 0.7);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 255, 0.35);
  color: var(--text-soft);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(196, 181, 253, 0.65);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 0.75rem;
}

/* Right panel (Mission card on home) */
.hero-panel {
  background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 60%),
    radial-gradient(circle at 90% 110%, var(--accent-soft2), transparent 60%),
    linear-gradient(135deg, var(--bg-elevated-soft), var(--bg-elevated));
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

.panel-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.panel-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-soft);
}

.panel-list li + li {
  margin-top: 0.55rem;
}

/* ===========================
   MISSION – CENTERED SECTION
   =========================== */
.mission-centered {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.mission-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mission-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(79, 209, 255, 0.6);
  background: radial-gradient(circle at 0 0, var(--accent-soft2), transparent 60%);
  margin-bottom: 0.9rem;
}

.section-title.center {
  text-align: center;
  margin-bottom: 0.9rem;
}

.mission-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 auto 1.8rem;
}

/* pigułki pod misją */
.mission-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.1rem;
}

.pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: radial-gradient(circle at 0 0, var(--accent-soft2), transparent 70%);
  border: 1px solid rgba(148, 163, 255, 0.4);
  color: var(--text-soft);
  backdrop-filter: blur(10px);
}

/* trzy karty pod misją */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

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

.mission-card {
  text-align: left;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 255, 0.35);
  background: radial-gradient(circle at 0 0, rgba(79, 209, 255, 0.08), transparent 55%),
    linear-gradient(135deg, #050816, #0b1020);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mission-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(129, 140, 248, 0.9);
}

/* dekoracyjna orbita w tle, jak logo */
.mission-orbit {
  position: absolute;
  inset: -120px auto auto 50%;
  width: 480px;
  height: 480px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(127, 93, 255, 0.32), transparent 70%);
  opacity: 0.22;
  filter: blur(2px);
  pointer-events: none;
}

/* Mission – mobile dopieszczenie */
@media (max-width: 600px) {
  .mission-inner {
    padding: 0 0.5rem;
  }

  .mission-orbit {
    width: 320px;
    height: 320px;
    inset: -80px auto auto 50%;
  }

  .mission-text {
    font-size: 0.95rem;
  }
}

/* ===========================
   CARDS (TECHNOLOGY, ETC.)
   =========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  background: radial-gradient(circle at 0 0, rgba(79, 209, 255, 0.06), transparent 55%),
    linear-gradient(135deg, #050816, #0b1020);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.45rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease,
    background 0.18s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(148, 163, 255, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card p,
.card ul {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft2);
  color: #e0faff;
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}

.card-tag.soft {
  background: rgba(148, 163, 255, 0.16);
  color: #e5e7ff;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  border-top: 1px solid rgba(148, 163, 255, 0.18);
  background: radial-gradient(
      circle at 0 0,
      rgba(148, 163, 255, 0.12),
      transparent 60%
    ),
    #050713;
}

.footer-inner {
  padding: 1.2rem 0 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 30% 0, #ffffff 0, var(--accent) 30%, #111827 70%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  color: #0b1020;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
  z-index: 120;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: var(--shadow-hover);
  background: radial-gradient(
    circle at 35% 0,
    #ffffff 0,
    var(--accent2) 35%,
    #020617 75%
  );
}

/* ===========================
   MISSION – AERO (XenarAI)
   =========================== */

.mission-aero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

/* tło-orbita – możesz używać istniejącej .mission-orbit, ale damy delikatny tweak */
.mission-aero .mission-orbit {
  position: absolute;
  inset: -140px auto auto 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 50% 55%, rgba(127, 93, 255, 0.4), transparent 70%);
  opacity: 0.22;
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

.mission-aero .container {
  position: relative;
  z-index: 1;
}

/* HEADER MISSION */

.mission-header {
  max-width: 880px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.mission-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid rgba(79, 209, 255, 0.6);
  background: radial-gradient(circle at 0 0, var(--accent-soft2), transparent 60%);
  margin-bottom: 0.9rem;
}

.mission-title {
  margin: 0 0 1rem;
}

.mission-lead {
  margin: 0 auto 1.8rem;
  max-width: 640px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1.02rem;
}

/* PILL ROW POD TEKSTEM */

.mission-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

/* używamy istniejącej .pill? jeśli nie, to definicja poniżej */
.mission-pill-row .pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: radial-gradient(circle at 0 0, var(--accent-soft2), transparent 70%);
  border: 1px solid rgba(148, 163, 255, 0.4);
  color: var(--text-soft);
  backdrop-filter: blur(10px);
}

/* GRID + KARTY – korzystasz już z .mission-grid i .mission-card,
   ale doprecyzujmy, że na tej sekcji mają pełną szerokość */

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

.mission-aero .mission-card {
  text-align: left;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 255, 0.35);
  background: radial-gradient(circle at 0 0, rgba(79, 209, 255, 0.08), transparent 55%),
    linear-gradient(135deg, #050816, #0b1020);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mission-aero .mission-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.mission-aero .mission-card p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.mission-aero .mission-card ul {
  padding-left: 1.1rem;
  margin: 0;
  list-style: disc;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.mission-aero .mission-card li + li {
  margin-top: 0.35rem;
}

.mission-aero .mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(129, 140, 248, 0.9);
}

/* MOBILE TWEAKS */

@media (max-width: 960px) {
  .mission-aero .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mission-aero {
    padding: 4.5rem 0 4rem;
  }

  .mission-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .mission-lead {
    font-size: 0.95rem;
  }

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

  .mission-aero .mission-orbit {
    width: 320px;
    height: 320px;
    inset: -90px auto auto 50%;
  }
}
