/* ============================
   DESIGN SYSTEM — Sales Intelligence Labs
   ============================ */

/* 1. RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  position: relative;
}

/* Global grid pattern — fills white gaps between sections */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================
   2. COLORS
   ============================ */

:root {
  /* Neutrals — Light theme (warm) */
  --color-bg:           #FAFAF8;
  --color-bg-elevated:  #F5F4F0;
  --color-bg-subtle:    #EDECEA;
  --color-surface:      #FEFEFE;

  --color-text:         #1a1a1a;
  --color-text-muted:   #555555;
  --color-text-subtle:  #999999;

  /* Borders */
  --color-border:       rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);

  /* Brand — Electric Blue */
  --color-accent:        #0EA5E9;
  --color-accent-hover:  #0284C7;
  --color-accent-subtle: rgba(14, 165, 233, 0.08);
  --color-accent-glow:   rgba(14, 165, 233, 0.12);

  /* Brand — Indigo (Gradient-Partner) */
  --color-indigo:        #6366F1;
  --color-indigo-subtle: rgba(99, 102, 241, 0.08);

  /* Gradients */
  --gradient-brand:      linear-gradient(135deg, #0EA5E9, #6366F1);
  --gradient-brand-soft: linear-gradient(135deg, #0EA5E9, #818CF8);
  --gradient-surface:    linear-gradient(180deg, #f8f7f4 0%, #f4f3f0 100%);
  --gradient-elevated:   linear-gradient(180deg, #f7f6f2 0%, #f4f3ef 100%);

  /* Warm Accent — Gold (dezent, nur fuer Highlights) */
  --color-warm:            #D4A853;
  --color-warm-subtle:     rgba(212, 168, 83, 0.06);
  --color-warm-glow:       rgba(212, 168, 83, 0.04);

  /* Warm Accent — Amber (Senfgelb, fuer warme Akzente) */
  --color-amber:           #D4952A;
  --color-amber-subtle:    rgba(212, 149, 42, 0.06);
  --color-amber-glow:      rgba(212, 149, 42, 0.08);

  /* Warm Accent — Terracotta (fuer erdige Waerme) */
  --color-terracotta:        #C17A56;
  --color-terracotta-subtle: rgba(193, 122, 86, 0.06);
  --color-terracotta-glow:   rgba(193, 122, 86, 0.08);

  /* Warm Accent — Rose/Pink (warmer Gegenpol zu Blue/Indigo, inspiriert von awork) */
  --color-rose:              #E8578A;
  --color-rose-hover:        #D14477;
  --color-rose-subtle:       rgba(232, 87, 138, 0.08);
  --color-rose-glow:         rgba(232, 87, 138, 0.12);

  /* Dark Theme (Footer / CTA sections) */
  --color-dark-bg:           #0F172A;
  --color-dark-surface:      #1E293B;
  --color-dark-text:         #E2E8F0;
  --color-dark-text-muted:   #94A3B8;
  --color-dark-border:       rgba(255, 255, 255, 0.08);

  /* Section Color Tokens */
  --section-blue-tint:     rgba(14, 165, 233, 0.06);
  --section-blue-glow:     rgba(14, 165, 233, 0.12);
  --section-indigo-tint:   rgba(99, 102, 241, 0.06);
  --section-indigo-glow:   rgba(99, 102, 241, 0.10);
  --section-warm-tint:     rgba(212, 168, 83, 0.06);
  --section-warm-glow:     rgba(212, 168, 83, 0.08);
  --section-amber-tint:    rgba(212, 149, 42, 0.05);
  --section-terracotta-tint: rgba(193, 122, 86, 0.04);

  /* Secondary — Emerald (success, ROI) */
  --color-secondary:        #10B981;
  --color-secondary-subtle: rgba(16, 185, 129, 0.10);

  /* Functional */
  --color-success:      #10B981;
  --color-warning:      #F59E0B;
  --color-error:        #EF4444;

  /* ============================
     3. TYPOGRAPHY
     ============================ */

  --font-heading:  'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.563rem;
  --text-3xl:   1.953rem;
  --text-4xl:   2.441rem;
  --text-5xl:   3.052rem;
  --text-6xl:   3.815rem;
  --text-hero:  clamp(3rem, 8vw, 7rem);

  /* Line heights */
  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.6;
  --leading-relaxed: 1.8;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;

  /* Font weights */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;

  /* ============================
     4. SPACING
     ============================ */

  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  --section-gap: clamp(6rem, 14vw, 12rem);

  /* ============================
     5. LAYOUT
     ============================ */

  --container-max: 1400px;
  --container-padding: clamp(1.25rem, 5vw, 3rem);
  --grid-gap: var(--space-6);

  /* ============================
     6. TRANSITIONS
     ============================ */

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  max-width: 65ch;
}

small, .text-sm {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.text-lg {
  font-size: var(--text-lg);
}

.overline {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  font-family: var(--font-body);
}

.mono {
  font-family: var(--font-mono);
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ============================
   7. ICON GLASSMORPHISM SYSTEM
   ============================ */

/* Glassmorphism icon container */
.icon-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    0 2px 8px rgba(14, 165, 233, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* Hover: deeper shadow + subtle lift */
.icon-ring:hover,
*:hover > .icon-ring {
  box-shadow:
    0 8px 24px rgba(14, 165, 233, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* SVG inside icon-ring: gradient strokes */
.icon-ring svg {
  position: relative;
  z-index: 1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.4s var(--ease-out-expo), filter 0.4s ease;
}

.icon-ring:hover svg,
*:hover > .icon-ring svg {
  transform: scale(1.12);
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.45));
}

/* ============================
   SECTION-SPECIFIC ICON TINTS
   ============================ */

/* Blue tint — Leistungen / HubSpot */
.icon-ring--blue {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(14, 165, 233, 0.03));
  box-shadow:
    0 2px 12px rgba(14, 165, 233, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.icon-ring--blue:hover,
*:hover > .icon-ring--blue {
  box-shadow:
    0 8px 28px rgba(14, 165, 233, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Indigo tint — Strukturen / Team */
.icon-ring--indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0.03));
  box-shadow:
    0 2px 12px rgba(99, 102, 241, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.icon-ring--indigo:hover,
*:hover > .icon-ring--indigo {
  box-shadow:
    0 8px 28px rgba(99, 102, 241, 0.20),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Warm tint — Maerkte / CTA */
.icon-ring--warm {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.10), rgba(212, 168, 83, 0.04));
  box-shadow:
    0 2px 12px rgba(212, 168, 83, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.icon-ring--warm:hover,
*:hover > .icon-ring--warm {
  box-shadow:
    0 8px 28px rgba(212, 168, 83, 0.20),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Gradient tint — Process / Uebergang */
.icon-ring--gradient {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.08));
  box-shadow:
    0 2px 12px rgba(14, 165, 233, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.04);
}
.icon-ring--gradient:hover,
*:hover > .icon-ring--gradient {
  box-shadow:
    0 8px 28px rgba(14, 165, 233, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.06);
}
