:root {
  --color-background: #020101;
  --color-surface: #0a0a0a;
  --color-surface-light: #1a1a1a;
  --color-border: #34353591;
  --color-text: #f2f3f3;
  --color-muted: #968f8b;
  --color-muted-light: #c8cacb;
  --color-accent: #f4c400;
  --color-accent-dark: #c99e00;
  --color-black: #050607;
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  user-select: none !important;
  font-family: "Plus Jakarta Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% -10%, rgba(244, 196, 0, 0.035), transparent 34%), var(--color-background);
  color: var(--color-text);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 4px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
select {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.header-menu-wrapper {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--color-border);
  background-color: transparent !important;
}

.menu-bar {
  width: min(1180px, calc(100% - 36px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background-color: transparent;
}

.brand-logo {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.menu-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex: 1;
}

.menu-link {
  position: relative;
  color: #c0c4c5;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.menu-link:hover,
.active-link {
  color: var(--color-accent);
}

.active-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 22px;
  height: 2px;
  transform: translateX(-50%);
  background: var(--color-accent);
}

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--color-accent-dark);
  border-radius: 5px;
  padding: 7px 11px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.login-button:hover {
  background: var(--color-accent);
  color: #111;
}

.login-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.main-wrapper {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  min-height: 420px;
  height: 100vh;
  /* position: relative; */
  overflow: hidden;
  display: grid;
  width: 92vw;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 50px;
  padding: 64px 4px 42px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 95%;
  height: 105vh;
  mask-image: linear-gradient(to right, transparent 0%, #020201 2%, #020201 95%, transparent 100%), linear-gradient(to bottom, transparent 0%, #020201 5%, #020201 95%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98vw;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.19;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  z-index: -1;
}

.hero-content {
  position: absolute;
  z-index: 1;
}

.hero-content {
  max-width: 590px;
  margin-top: -160px;
}

.eyebrow-text {
  display: block;
  margin-bottom: 9px;
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-content h1 {
  margin-bottom: 13px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-content p {
  max-width: 540px;
  margin-bottom: 22px;
  color: var(--color-muted-light);
  font-size: 12px;
  line-height: 1.75;
}

.primary-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 5px;
  background: var(--color-accent);
  border: 1px solid transparent;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  transition: all ease-in 100ms;
}

.primary-button {
  padding: 11px 15px;
}

.primary-button:hover,
.cta-button:hover {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  color: #fff;
  /* transform: translateY(-1px); */
}

.hero-visual {
  position: relative;
  height: 220px;
  margin-right: 1vw;
  display: none;
}

.book-stack {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 210px;
  height: 135px;
  transform: perspective(450px) rotateY(-9deg);
}

.book {
  position: absolute;
  left: 15px;
  width: 145px;
  height: 25px;
  border-radius: 7px 4px 4px 7px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.35);
  background: linear-gradient(90deg, #141414, #0f0f0f);
}

.book::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 3px;
  height: 17px;
  border-radius: 3px;
  background: #5b5e5e;
}

.book-one {
  bottom: 0;
  width: 165px;
}
.book-two {
  bottom: 23px;
  width: 145px;
  left: 23px;
}
.book-three {
  bottom: 46px;
  width: 155px;
  left: 11px;
}
.book-four {
  bottom: 69px;
  width: 137px;
  left: 28px;
}
.book-five {
  bottom: 92px;
  width: 148px;
  left: 13px;
}

.dashboard-card {
  position: absolute;
  right: 0;
  top: 15px;
  width: 265px;
  height: 170px;
  padding: 17px;
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, #121213, var(--color-surface));
  border-radius: 7px;
  box-shadow: var(--shadow-soft);
  opacity: 0.95;
}

.dashboard-top {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.dashboard-top span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #545b5e;
}

.dashboard-title {
  width: 95px;
  height: 8px;
  margin-bottom: 23px;
  border-radius: 4px;
  background: #363d40;
}

.dashboard-chart {
  height: 88px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 11px;
  border-bottom: 1px solid #292f32;
}

.dashboard-chart i {
  display: block;
  width: 13px;
  border-radius: 2px 2px 0 0;
  background: var(--color-accent);
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: -222px;
  margin-bottom: 52px;
}

.stat-card {
  min-height: 25px;
  display: flex;
  gap: 12px;
  height: 9.5vh;
  align-items: flex-start;
  background: radial-gradient(circle at 50% -10%, rgba(244, 196, 0, 0.035), transparent 34%), #0b0a0ad9;
  border: 1px solid #272626cd;
  border-radius: 7px;
  backdrop-filter: blur(34px);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.stat-card:hover {
  border-color: #343b3f;
  transform: translateY(-2px);
}

.stat-icon {
  flex: 0 0 auto;
  color: var(--color-accent);
  height: 100%;
  display: flex;
  align-items: center;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  margin-left: 5px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-copy {
  min-width: 0;
  height: 100%;
  margin-left: 0.6vw;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.stat-copy div p {
  font-size: 18px;
  font-weight: 600;
  margin-top: 1px;
}

.stat-label {
  display: block;
  margin-bottom: 2px;
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.stat-copy strong {
  display: block;
  color: #f5f5f5;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat-copy small {
  display: block;
  margin-top: 6px;
  color: var(--color-accent);
  font-size: 8px;
}

.library-section {
  margin-bottom: 52px;
  margin-top: 102px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading p {
  color: var(--color-muted);
  font-size: 11px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 150px 150px;
  gap: 11px;
  margin-bottom: 14px;
}

.search-field,
.filter-button,
.bibliotek-filter {
  min-height: 37px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 12px !important;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
}

.search-field svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: #777f83;
  stroke-width: 1.6;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 10px;
}

.search-field input::placeholder {
  color: #6f767a;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  font-size: 10px;
  cursor: pointer;
}

.filter-button option {
  color: white !important;
  background-color: #0a0a0a !important;
}

.filter-button option:checked {
  color: white !important;
  background-color: #0a0a0a !important;
}

.svg-filter-icon {
  background-color: red !important;
  position: fixed;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.library-card {
  position: relative;
  min-height: 98px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 13px 13px 12px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-surface);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.library-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
}

.library-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid #e9ecec;
  border-radius: 50%;
  background: #f6f7f7;
  color: #555;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 800;
}

.library-logo img {
  scale: 1.2;
  border-radius: 50%;
  border: 1px solid #3c3b3b;
}

.library-info {
  min-width: 0;
  padding-right: 17px;
}

.library-info h3 {
  margin-bottom: 1px;
  color: #e9ebeb;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.library-info span {
  display: block;
  margin-bottom: 8px;
  color: #737b7f;
  font-size: 8px;
}

.library-info strong {
  color: var(--color-accent);
  font-size: 10px;
  font-weight: 400;
}

.library-arrow {
  position: absolute;
  right: 13px;
  top: 46%;
  transform: translate(-50%);
  color: var(--color-accent);
  font-size: 15px;
}

.cta-section {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 54px;
  padding: 20px 25px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: radial-gradient(circle at 20% 50%, rgba(244, 196, 0, 0.05), transparent 32%), #0c0c0c;
}

.cta-section .cta-button {
  font-size: 11px;
}

.cta-icon {
  flex: 0 0 auto;
  color: var(--color-accent);
}

.cta-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-copy {
  flex: 1;
}

.cta-copy h2 {
  margin-bottom: 3px;
  font-size: 14px;
}

.cta-copy p {
  color: var(--color-muted);
  font-size: 11px;
}

.cta-button {
  flex: 0 0 auto;
  padding: 11px 17px;
  font-size: 9px;
}

.footer-section {
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
}

.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.footer-bottom span {
  font-size: 11px;
}

.footer-grid {
  min-height: 175px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 28px 0 26px;
}

.footer-brand p {
  margin-top: 11px;
  color: #70777a;
  font-size: 12px;
  line-height: 1.7;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-column h3 {
  margin-bottom: 5px;
  color: #e3e5e5;
  font-size: 14px;
}

.footer-column a,
.footer-column span {
  color: #747b7e;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  color: #626a6e;
  font-size: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
}

.social-links a {
  color: #72797c;
  font-size: 13px;
  font-weight: 700;
  transition: 200ms;
}

.social-links a:hover {
  color: var(--color-accent);
  scale: 1.1;
}

@media (max-width: 850px) {
  .menu-links {
    gap: 17px;
  }

  .hero-video {
    position: absolute;

    height: 100vh;
    left: 50%;
    transform: translate(-50%, -50%);
    background: fit-content;

    object-fit: cover;
    z-index: 0;
    opacity: 0.19;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
  }

  .book-stack {
    display: none;
  }

  .hero-image {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 45px;
    height: 100vh;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .dashboard-card {
    opacity: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  .menu-bar,
  .main-wrapper,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .menu-bar {
    min-height: 58px;
  }

  .menu-links {
    display: none;
    background-color: red;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0 35px;
  }

  .hero-content {
    margin-top: -90px;
  }

  .hero-content span {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 34px;
    text-align: center;
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .hero-content p {
    text-align: center;
    padding-bottom: 20px;
    margin-top: -20px;
    padding-left: 60px;
    padding-right: 60px;
  }

  .hero-content a {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero-visual {
    height: 180px;
  }

  .dashboard-card {
    margin-top: 20px;
    left: 50%;
    width: 205px;
    height: 132px;
    transform: translate(-50%, 0);
  }

  .book-stack {
    left: 0;
    bottom: 5px;
    transform: scale(0.78);
    transform-origin: left bottom;
  }

  .stats-grid,
  .library-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .cta-section {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    padding: 19px;
  }

  .cta-copy {
    min-width: calc(100% - 70px);
  }

  .cta-button {
    margin-left: 57px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 13px 0;
  }
}
