:root {
  --bg: #0d1218;
  --bg-alt: #101722;
  --fg: #f0ece4;
  --muted: #8a8a8a;
  --accent: #b8963e;
  --accent-soft: rgba(184, 150, 62, 0.14);
  --card: #131b27;
  --border: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 10px;
}

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

body {
  margin: 0;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at 20% 20%, rgba(184, 150, 62, 0.08), transparent 32%), radial-gradient(circle at 80% 0%, rgba(74, 127, 165, 0.08), transparent 28%), var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4vw;
  background: rgba(13, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav nav a:hover {
  color: var(--fg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), #c9aa57);
  color: #0d0f14;
  box-shadow: 0 12px 30px rgba(184, 150, 62, 0.28);
}

.button.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.button:hover {
  transform: translateY(-1px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 4vw;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0.28;
  display: block;
  transform: scale(1.12);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 18, 24, 0.78) 0%,
    rgba(13, 18, 24, 0.42) 50%,
    rgba(13, 18, 24, 0.78) 100%
  );
  z-index: 1;
}

.hero__content,
.hero__accent {
  position: relative;
  z-index: 2;
}

.hero__content h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin: 12px 0 12px;
  line-height: 1.15;
}

.hero__content .lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__accent {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(184, 150, 62, 0.12), rgba(74, 127, 165, 0.12)), radial-gradient(circle at 35% 30%, rgba(184, 150, 62, 0.2), transparent 45%), radial-gradient(circle at 75% 70%, rgba(74, 127, 165, 0.18), transparent 48%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__accent-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero__logo {
  width: 82%;
  max-width: 380px;
  height: auto;
}

.trygg-def {
  color: rgba(240, 236, 228, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0;
  font-style: normal;
}

.hero__accent::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(184, 150, 62, 0.35);
  border-radius: 12px;
  transform: rotate(-6deg);
  opacity: 0.8;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.4fr;
  gap: 36px;
}

.section__title h2,
.section__header h3,
.grid h3,
.services h3,
.process h3,
.value h3,
.frameworks h3,
.cta h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section__body p {
  color: var(--muted);
  margin: 0 0 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.pill-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
}

.aside {
  color: var(--muted);
  font-style: italic;
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card__eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 6px 0 10px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.meta {
  color: var(--fg);
  font-weight: 600;
}

.card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 10px 0 0;
}

.process .steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}

.steps li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.step__label {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.planner {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.planner__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.planner__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.planner__card h4 {
  margin: 0 0 10px;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.chip-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip {
  background: rgba(255, 255, 255, 0.02);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.chip.active {
  border-color: var(--accent);
  background: rgba(184, 150, 62, 0.12);
}

.chip:hover {
  transform: translateY(-1px);
}

.range {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.range input[type="range"] {
  accent-color: var(--accent);
}

.range__value {
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.checklist label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.planner__summary {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.summary__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.summary__header h4 {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.summary__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#summary-text {
  background: #0b0f15;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--fg);
  white-space: pre-wrap;
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  margin: 12px 0 0;
}

.value .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.value h4 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.value p {
  margin: 0;
  color: var(--muted);
}

.frameworks {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 16px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.framework-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
}

.framework-card h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 4px;
  font-size: 1rem;
}

.framework-card .fc-who {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.framework-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.frameworks__cta {
  margin-top: 24px;
  color: var(--muted);
  font-style: italic;
}

.frameworks__cta a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(184, 150, 62, 0.12), transparent 45%), rgba(255, 255, 255, 0.02);
  border-radius: 16px;
}

.cta__actions {
  margin: 18px 0 10px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 4vw 48px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer .logo {
  color: var(--fg);
}

.footer__nav,
.footer__meta {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.footer__legal {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav nav {
    width: 100%;
    justify-content: center;
  }
  .nav .button {
    width: 100%;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 72px 6vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
