/* ===================================================
   ProgressForge – Landing Page Styles
   =================================================== */

/* ===== RESET & CUSTOM PROPERTIES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  --ember:            #FF6A1A;
  --amber:            #FFC24D;
  --forge-red:        #EE2F18;
  --ink:              #141113;
  --ink-soft:         #1e1b1f;
  --bone:             #FAF7F4;
  --bone-2:           #F0ECE8;
  --white:            #FFFFFF;
  --text-on-dark:     rgba(255, 255, 255, 0.62);
  --border-on-dark:   rgba(255, 255, 255, 0.08);
  --border-on-light:  rgba(20, 17, 19, 0.07);

  --font-display: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-card:  20px;
  --r-btn:   100px;
  --r-badge: 100px;

  --transition-base: 0.18s ease;
  --transition-move: 0.12s ease;
}

/* ===== BASE ===== */
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(20, 17, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-on-dark);
  transition: background var(--transition-base);
}

.nav.is-scrolled {
  background: rgba(20, 17, 19, 0.97);
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 26px;
  height: 24px;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1;
}

.nav__logo-name .p { color: var(--white); }
.nav__logo-name .f { color: var(--ember); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--r-btn);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background var(--transition-base),
    transform  var(--transition-move),
    box-shadow var(--transition-base);
}

.nav__cta:hover {
  background: #e85a0f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 106, 26, 0.35);
}

.nav__cta:active { transform: translateY(0); }

/* ===== HERO ===== */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 80px 28px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 106, 26, 0.16) 0%,
    rgba(238,  47,  24, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__text { padding-bottom: 0; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.22);
  color: var(--ember);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-badge);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--ember);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

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

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--white);
  margin-bottom: 22px;
}

.hero__title .accent { color: var(--ember); }

.hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-on-dark);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ember);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  text-decoration: none;
  box-shadow: 0 4px 28px rgba(255, 106, 26, 0.38);
  transition:
    background var(--transition-base),
    transform  var(--transition-move),
    box-shadow var(--transition-base);
}

.btn--primary:hover {
  background: #e85a0f;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255, 106, 26, 0.48);
}

.btn--primary:active { transform: translateY(0); }

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

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: var(--r-badge);
}

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

.hero__mockup {
  width: 300px;
  max-width: 100%;
  border-radius: 44px;
  filter:
    drop-shadow(0 40px 80px rgba(255, 106, 26, 0.30))
    drop-shadow(0 8px 32px rgba(0, 0, 0, 0.55));
}

/* ===== SHARED SECTION ELEMENTS ===== */
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--ink);
}

.section-title--light { color: var(--white); }

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

/* ===== SCROLL-IN ANIMATION ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered delay for grid children */
.features__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.07s; }
.features__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.14s; }
.features__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.21s; }
.features__grid .animate-on-scroll:nth-child(5) { transition-delay: 0.28s; }
.features__grid .animate-on-scroll:nth-child(6) { transition-delay: 0.35s; }

.integrations__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.integrations__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.integrations__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }

/* ===== FEATURES ===== */
.features {
  background: var(--bone);
  padding: 96px 28px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1140px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px 28px;
  border: 1px solid var(--border-on-light);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(20, 17, 19, 0.09);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.1), rgba(255, 194, 77, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 14.5px;
  color: rgba(20, 17, 19, 0.58);
  line-height: 1.65;
}

/* ===== INTEGRATIONS ===== */
.integrations {
  background: var(--ink-soft);
  padding: 96px 28px;
}

.integrations .section-label { color: var(--amber); }

.integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.integration-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--r-card);
  padding: 28px 20px;
  text-align: center;
  transition:
    background 0.2s ease,
    transform  0.2s ease,
    opacity    0.5s ease;
}

.integration-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.integration-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.integration-card__icon svg {
  width: 26px;
  height: 26px;
}

.integration-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 6px;
}

.integration-card__desc {
  font-size: 13px;
  color: var(--text-on-dark);
  line-height: 1.5;
}

/* ===== STORE BUTTONS ===== */
.store-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__actions.store-buttons {
  justify-content: flex-start;
}

.btn--googleplay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  text-decoration: none;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-move);
}

.btn--googleplay:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn--googleplay:active { transform: translateY(0); }

/* ===== CTA ===== */
.cta {
  background: var(--ink);
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 106, 26, 0.14) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 auto 32px;
  box-shadow: 0 16px 48px rgba(255, 106, 26, 0.3);
}

.cta__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__subtitle {
  font-size: 18px;
  color: var(--text-on-dark);
  max-width: 480px;
  margin: 16px auto 44px;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d0b0e;
  border-top: 1px solid var(--border-on-dark);
  padding: 40px 28px;
}

.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.footer__logo .p { color: rgba(255, 255, 255, 0.5); }
.footer__logo .f { color: var(--ember); }

.footer__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.36);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-base);
}

.footer__links a:hover { color: rgba(255, 255, 255, 0.75); }

.footer__copy {
  width: 100%;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  border-top: 1px solid var(--border-on-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero__text { padding-bottom: 40px; }
  .hero__mockup { width: 230px; }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .integrations__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav__inner { padding: 0 20px; height: 56px; }

  .hero { padding: 64px 20px 64px; }
  .hero__text { padding-bottom: 36px; }
  .hero__mockup { width: 200px; }

  .features { padding: 72px 20px; }
  .features__grid { grid-template-columns: 1fr; }

  .integrations { padding: 72px 20px; }
  .integrations__grid { grid-template-columns: repeat(2, 1fr); }

  .cta { padding: 88px 20px; }

  .footer { padding: 32px 20px; }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== LEGAL PAGES (Impressum / Datenschutz) ===== */
.legal-hero {
  background: var(--ink);
  padding: 72px 28px 64px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(255, 106, 26, 0.10) 0%,
    transparent 65%);
  pointer-events: none;
}

.legal-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal-hero__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}

.legal-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--white);
}

.legal-body {
  background: var(--bone);
  padding: 72px 28px 96px;
}

.legal-body__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin: 48px 0 12px;
  padding-top: 48px;
  border-top: 1px solid var(--border-on-light);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 28px 0 8px;
}

.legal-body p {
  font-size: 15px;
  color: rgba(20, 17, 19, 0.72);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-body ul {
  margin: 8px 0 14px 20px;
}

.legal-body ul li {
  font-size: 15px;
  color: rgba(20, 17, 19, 0.72);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 26, 0.3);
  transition: border-color var(--transition-base);
}

.legal-body a:hover {
  border-color: var(--ember);
}

.legal-placeholder {
  background: rgba(255, 106, 26, 0.08);
  border: 1px dashed rgba(255, 106, 26, 0.4);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--ember);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 600px) {
  .legal-hero { padding: 56px 20px 48px; }
  .legal-body  { padding: 48px 20px 72px; }
  .legal-body h2 { margin: 36px 0 10px; padding-top: 36px; }
}
