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

body {
  font-family: 'Montserrat', sans-serif;
  background: #090D14;
  color: #d9d9d9;
  height: 100vh;
  overflow: hidden;
}

/* ── Header ── */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #090D14;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 32px;
  height: 32px;
}

.title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d9d9d9;
  letter-spacing: 0.04em;
}

.login-button {
  background: transparent;
  border: 1px solid #333333;
  border-radius: 8px;
  color: #d9d9d9;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 20px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.03em;
}

.login-button:hover {
  background: #1a1a1a;
  border-color: #555;
}

main {
  margin-top: 50px;
}

/* ── Hero ── */

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 50px);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 13, 20, 0.3) 0%,
    rgba(9, 13, 20, 0.0) 30%,
    rgba(9, 13, 20, 0.5) 65%,
    rgba(9, 13, 20, 0.85) 100%
  );
  pointer-events: none;
}

.hero-spacer {
  flex: 1;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  gap: 20px;
}

/* ── Page intro ── */

.page-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
}

.page-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: #d9d9d9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Section cards ── */

.sections {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  flex-wrap: wrap;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 280px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: #d9d9d9;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.section-card:hover {
  border-color: rgba(0, 136, 241, 0.7);
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 136, 241, 0.15);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.card-icon img,
.card-icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.85;
}

.card-icon svg {
  stroke: #d9d9d9;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.card-description {
  font-size: 0.85rem;
  font-weight: 400;
  color: #aaa;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.card-open {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0088f1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.section-card:hover .card-open {
  gap: 10px;
}

.section-card--disabled {
  cursor: default;
  opacity: 0.5;
}

.section-card--disabled:hover {
  border-color: #2a2a2a;
  transform: none;
  background: rgba(0, 0, 0, 0.5);
}

.section-card--disabled .card-open {
  color: #555;
}

.card-coming-soon {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 8px;
}

@media (max-width: 768px) {
  body {
    height: auto;
    overflow: auto;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding-bottom: 32px;
  }

  .hero-bg {
    content: url('./assets/HomeBackgroundWithLogoMobile.png');
    inset: 0;
    width: 100%;
    height: 115%;
    top: -25%;
    left: 0;
    object-fit: cover;
    object-position: center top;
  }

  .hero-spacer {
    min-height: 30svh;
  }

  .hero-bottom {
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(9,13,20,0.95) 20%);
    padding-top: 48px;
  }
}
