/* ==========================================================================
   Data Planet AB — Sustainable Emerald Corporate Portfolio & Services
   Clean, Modern, Interactive Single-Page Website
   ========================================================================== */

:root {
  /* Deep Sustainable Forest Theme (Default) */
  --bg-primary: #05110c;
  --bg-secondary: #091c14;
  --bg-card: rgba(13, 36, 26, 0.65);
  --bg-card-hover: rgba(18, 48, 35, 0.85);
  --bg-glass: rgba(7, 22, 16, 0.8);
  --bg-input: rgba(6, 18, 13, 0.9);

  --text-primary: #f0fdf4;
  --text-secondary: #b7e4c7;
  --text-muted: #74c69d;
  --text-dim: #52796f;

  --accent-primary: #10b981;
  --accent-bright: #34d399;
  --accent-lime: #a3e635;
  --accent-glow: rgba(16, 185, 129, 0.22);

  --border-subtle: rgba(52, 211, 153, 0.12);
  --border-strong: rgba(52, 211, 153, 0.3);

  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.2);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  --bg-primary: #f4fbf7;
  --bg-secondary: #e6f5ed;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(244, 251, 247, 0.88);
  --bg-input: #ffffff;

  --text-primary: #062218;
  --text-secondary: #164e39;
  --text-muted: #297054;
  --text-dim: #588573;

  --accent-primary: #059669;
  --accent-bright: #10b981;
  --accent-lime: #4d7c0f;
  --accent-glow: rgba(5, 150, 105, 0.14);

  --border-subtle: rgba(5, 150, 105, 0.14);
  --border-strong: rgba(5, 150, 105, 0.32);

  --shadow-card: 0 16px 36px rgba(6, 34, 24, 0.06);
  --shadow-glow: 0 10px 28px rgba(5, 150, 105, 0.14);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient Background Glow */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 15%, var(--accent-glow), transparent 42%),
    radial-gradient(circle at 85% 30%, rgba(20, 184, 166, 0.1), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(163, 230, 53, 0.06), transparent 50%);
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-orbit-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04120c;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent-bright);
}

/* ==========================================================================
   Buttons & Section Tags
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #059669);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.48);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px var(--accent-lime);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 155px 0 95px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-lime) 65%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.highlight-item strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Orbital Visual Card */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(20px);
  text-align: center;
}

.planet-orbit-stage {
  position: relative;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 20px;
}

.planet-core {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-lime), var(--accent-primary) 58%, #064e3b 100%);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.5), inset -10px -10px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #04130d;
  font-weight: 800;
  z-index: 3;
  padding: 12px;
}

.planet-core span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.planet-core strong {
  font-size: 1rem;
  line-height: 1.15;
  margin-top: 2px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  animation: spinOrbit linear infinite;
}

.orbit-1 { width: 170px; height: 170px; animation-duration: 20s; }
.orbit-2 { width: 220px; height: 220px; animation-duration: 28s; animation-direction: reverse; }
.orbit-3 { width: 268px; height: 268px; animation-duration: 38s; }

.orbit-node {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.node-s1 { background: #10b981; color: #04120c; }
.node-s2 { background: #38bdf8; color: #04120c; }
.node-s3 { background: #a3e635; color: #04120c; }

@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.visual-caption-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-pill {
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* ==========================================================================
   What We Do — Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--accent-bright);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.service-tag {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--accent-bright);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 9px;
  border-radius: 6px;
}

/* ==========================================================================
   How We Work — Interactive 4-Step Process
   ========================================================================== */
.process-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.process-steps-list {
  display: grid;
  gap: 14px;
}

.process-step-btn {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-primary);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 18px;
}

.process-step-btn:hover,
.process-step-btn.active {
  border-color: var(--accent-bright);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
  transform: translateX(6px);
}

.step-num-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step-btn.active .step-num-circle {
  background: var(--accent-primary);
  color: #ffffff;
}

.process-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mapping-example-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

/* ==========================================================================
   Interactive Scope 1, 2 & 15 ESG Categories Showcase
   ========================================================================== */
.scope-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-bright);
}

.scope-explorer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 12px;
}

.cat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-item:hover,
.cat-item.active {
  border-color: var(--accent-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-bright);
}

.cat-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Contact Section & Footer
   ========================================================================== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: var(--accent-lime);
}

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

@media (max-width: 992px) {
  .hero-grid,
  .services-grid,
  .process-layout,
  .scope-explorer-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
