:root {
    --bg: #faf8f4;
    --surface: #ffffff;
    --text: #171717;
    --muted: #595959;
    --soft: #f3f0eb;
    --line: rgba(23, 23, 23, 0.14);
    --accent: #258ed9;
    --max: 1280px;
    --shadow: 0 28px 80px rgba(23, 23, 23, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 80% 0%, rgba(25,34,255,0.05), transparent 34rem);
  background-repeat: no-repeat;
  background-size: auto;
  background-position: top right;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("topographie_light.png");
  background-repeat: repeat;
  background-size: 520px 520px;
  background-position: top left;
  opacity: 0.6;
}

body::selection { background: var(--accent); color: #fff; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 248, 244, 0.74);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav span,
.accent-line,
.feature-icon,
.card-number { color: var(--accent); }

.main-nav a:hover,
.footer-links a:hover { color: var(--accent); }

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.8rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.hero-content {
  max-width: 760px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(4.8rem, 10vw, 8.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(3.2rem, 5.6vw, 4.8rem);
  text-transform: uppercase;
}

h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.accent-line {
  width: 4.3rem;
  height: 4px;
  margin: 2.2rem 0 2rem;
  background: currentColor;
}

.hero-copy {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.7rem;
  padding: 0.9rem 1.35rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--accent);
}

.demo-button::after {
  content: "↗";
  margin-left: 0.45rem;
  font-size: 0.78rem;
}

.viewer-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viewer-frame {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1040px;
    margin: clamp(2.2rem, 5vw, 4rem) auto 0;
    overflow: hidden;
    border: 18px solid #202020;
    border-radius: 10px;
    background: #202020;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

    .viewer-frame:hover {
        border-color: var(--accent);
        box-shadow: 0 28px 80px rgba(23, 23, 23, 0.14), 0 0 0 3px rgba(25, 34, 255, 0.14);
    }

.viewer-badge {
    position: absolute;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 2;
    padding: 0.9rem 1.2rem;
    color: #fff;
    background: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.viewer-frame:hover .viewer-badge {
    opacity: 1;
    transform: translateY(0);
}

.viewer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(min(62vh, 680px) - 36px);
  border: 0;
  background: #8c8c89;
  pointer-events: none;
}

.viewer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.10));
}

.section-title { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-title .accent-line { margin-top: 0.8rem; margin-bottom: 0; }

.card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.info-card,
.step-card {
  padding: clamp(1.25rem, 2.1vw, 1.7rem);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
}

.info-card {
  min-height: 18.5rem;
}

.step-card {
  min-height: 16rem;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--accent);
  font-size: 0.98rem;
  font-weight: 900;
}

.info-card h3,
.step-card h3 { min-height: 3rem; }

.info-card p,
.step-card p,
.feature-item p,
.cta-box p,
.legal-page p {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.feature-item {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.9rem;
  line-height: 1;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h3 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-item p {
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

.cta-section { 
    padding-top: 2rem;

}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    background: #202020;
}

.cta-box h2 { max-width: 14ch; }
.cta-box p { color: rgba(255,255,255,0.72); }
.cta-box .button { border-color: #fff; color: #fff; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
  padding: 1.2rem clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  background: #171717;
}

.footer-logo {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

.footer-brand strong { font-size: 1.2rem; }
.footer-brand span { color: rgba(255,255,255,0.68); font-size: 0.92rem; }

.footer-links {
  display: flex;
  gap: 2rem;
  font-weight: 850;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-copyright {
    margin: 0;
    color: rgba(255,255,255,0.62);
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.legal-page {
  max-width: 860px;
}

.legal-page h1 {
  font-size: clamp(4rem, 11vw, 9rem);
}

.legal-note {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
}

.legal-block {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-block a { color: var(--accent); }

@media (max-width: 1040px) {
  .card-grid.three,
  .card-grid.four,
  .features { grid-template-columns: 1fr; }
  .viewer-frame { min-height: 54vh; }
  .viewer-frame iframe { min-height: calc(54vh - 36px); }
  .info-card,
  .step-card { min-height: auto; }
  .info-card h3,
  .step-card h3 { min-height: auto; }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-copyright {
        text-align: left;
        white-space: normal;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 5rem);
        line-height: 0.9;
    }

    .hero-copy {
        font-size: 1.05rem;
    }

    .hero-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .button {
        width: 100%;
    }

    .viewer-frame {
        margin-top: 2rem;
        border-width: 10px;
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: clamp(3rem, 14vw, 5rem);
        line-height: 0.9;
    }

    .hero {
        padding-top: 2rem;
    }

    .viewer-frame {
        width: 100%;
        max-width: 100%;
        min-height: 0 !important;
        aspect-ratio: 16 / 9;
        margin-top: 2rem;
        border-width: 8px;
    }

    .viewer-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .viewer-frame iframe {
        display: none;
    }
}

  .main-nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 1.2rem;
    font-size: 0.72rem;
  }

  h1 { font-size: clamp(3.6rem, 17vw, 6.4rem); }
  h2 { font-size: clamp(2.8rem, 13vw, 4.6rem); }

  .hero-actions,
  .cta-box,
  .site-footer,
  .footer-brand,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
    display: flex;
  }

  .button { width: 100%; }
  .viewer-frame { min-height: 62vh; }
  .viewer-frame iframe { min-height: calc(62vh - 36px); }
  .footer-brand { align-items: flex-start; }
}
