*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050819;
  --bg-alt: #060b23;
  --card: #0b1026;
  --text: #f6f7ff;
  --muted: #9aa2c6;
  --accent-pink: #ff4fb8;
  --accent-blue: #42c6ff;
  --accent-green: #3df29b;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.66);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #101840 0, #050819 46%, #020411 100%);
  color: var(--text);
}

/* LAYOUT BASICS */

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  padding: 72px 0;
  background: radial-gradient(circle at top left, #10173a 0, #050819 60%);
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.section-lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  max-width: 640px;
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(5, 8, 25, 0.96), rgba(5, 8, 25, 0.88), transparent);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-title-block {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.16s ease-out, border-color 0.16s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-pink));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  color: #050819;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-cta {
  font-size: 1.05rem;      /* grotere tekst */
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* HERO */

.hero {
  padding: 56px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink);
}

.separator {
  opacity: 0.4;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 540px;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tag {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(8, 13, 40, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-note code {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.08rem 0.4rem;
  border-radius: 6px;
}

/* HERO MEDIA */

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top, #ff8e7a 0, #120621 50%, #010107 100%);
  box-shadow: var(--shadow-soft);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(4, 7, 25, 0.7);
  backdrop-filter: blur(10px);
  color: #fefefe;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
}

.status-card {
  margin-left: auto;
  margin-right: 8px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(66, 198, 255, 0.2), rgba(8, 14, 40, 0.95));
  border: 1px solid rgba(73, 198, 255, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.72);
  width: min(290px, 100%);
}

.status-header {
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 14px var(--accent-green);
}

.status-body {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* CARDS / GRID */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background: linear-gradient(145deg, rgba(9, 15, 45, 0.96), rgba(7, 11, 36, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card-meta {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.card p {
  margin: 0;
  font-size: 0.88rem;
}

.card-photo-inner {
  margin: 0.4rem 0 0.6rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-photo-inner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-photo-upload {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.upload-label input {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

/* VIDEO GRID */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.video-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.2rem;
  background: linear-gradient(145deg, rgba(9, 14, 43, 0.98), rgba(7, 11, 36, 0.99));
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65);
}

.video-wrapper {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: #000;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(6, 10, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.6rem 0.75rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 20px;
  background: radial-gradient(circle at top, #151b3b 0, #050819 55%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-right {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

/* AI/WEATHER/MARKET LISTS */

.ai-news-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.ai-news-item + .ai-news-item {
  margin-top: 0.75rem;
}

.ai-news-meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

.market-list li + li {
  margin-top: 0.25rem;
}

.card-footnote {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section,
  .section-alt,
  .hero {
    padding-inline: 0;
  }

  .nav-inner {
    padding-inline: 0;
  }

  .status-card {
    margin-inline: 0;
  }
}
