:root{
  /* Base */
  --black: #212427;
  --white: #ffffff;
  --gray-300: #D4D4D4;

  /* Accent (optional) */
  --accent-200: #7EF473;
  --accent-300: #71DC68;

  /* Layout container */
  --container-max: 1240px;
  --container-gutter: clamp(16px, 2.5vw, 72px);

  /* Shared content inset (aligns topbar, hero, features, footer) */
  --content-inset: calc(max(0px, (100% - var(--container-max)) / 2) + var(--nav-margin-inline));

  /* Bar tokens */
  --header-height: clamp(56px, 5.2vh, 76px);
  --nav-margin-inline: var(--container-gutter);
  --nav-margin-block: clamp(12px, 2.2vh, 40px);

  --headerRadius: 20px;
  --box-shadow: 0px 1px 2px rgba(0,0,0,.12), 0px 2px 6px rgba(0,0,0,.08);
  --translucent-white: hsla(0,0%,100%,0.7);
  --headerBorderColor: var(--gray-300);

  /* Spacing */
  --space-d: 16px;

  /* Device */
  --device-dock: clamp(24px, 4vh, 56px);

  /* Controls */
  --control-radius: 14px;
  --control-border: rgba(33,36,39,.12);

  /* Feature scroll pacing */
  --feature-step-height: 70vh;
}

@media (min-width: 768px){
  :root{ --container-max: 1240px; }
}
@media (min-width: 1280px){
  :root{ --container-max: 1320px; }
}
@media (min-width: 1440px){
  :root{ --container-max: 1440px; }
}
@media (min-width: 1680px){
  :root{ --container-max: 1520px; }
}

*{ box-sizing: border-box; }
html,body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--black);
  background: #000000; /* ensures the page ends on true black */
}

#smooth-wrapper{
  position: relative;
  overflow: visible;
  z-index: 0;
}
#smooth-content{
  min-height: 100vh;
  background: #ffffff; /* keeps the hero area on white */
}

/* --- Header (single fixed shell + shared content axis) --- */
.Page-header{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 0;
  margin: 0;
  background: transparent;
  pointer-events: none;
}
.Page-header *{ pointer-events: all; }

.top-bar-wrapper{
  position: fixed;
  top: var(--nav-margin-block);
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  justify-content: flex-start;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
  pointer-events: none;
}
.top-bar-wrapper *{ pointer-events: all; }

.Page-topBar{
  display: grid;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  overflow: hidden;
  background-color: hsla(0,0%,100%,0.55);
  border-top: 1px solid var(--headerBorderColor);
  border-bottom: 1px solid var(--headerBorderColor);

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  grid-template-columns: auto 1fr auto;
  gap: var(--space-d);
  padding: 0 var(--space-d);

  transition: opacity 333ms ease-in-out;
  pointer-events: all;
}

@media (min-width: 1024px){
  .Page-topBar{
    width: auto;
    max-width: 100%;
    border-radius: var(--headerRadius);
    box-shadow: var(--box-shadow);
    background-color: var(--translucent-white);
  }
}

/* --- Left: logo --- */
.brand{
  display:flex;
  flex: 0 0 auto;
  align-items:center;
  gap: 10px;
  min-width: 140px;
}
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #212427;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
}
.brand-name{
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand-logo{
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: transparent;
}

/* --- Middle: nav links --- */
.nav{
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.nav a{
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  opacity: .9;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.nav a:hover{
  background: rgba(33,36,39,.06);
  opacity: 1;
}

/* Small screens */
@media (max-width: 767px){
  .nav{ justify-content:flex-start; overflow:auto; scrollbar-width:none; }
  .nav::-webkit-scrollbar{ display:none; }
  .brand-name{ display:none; }
}

/* --- Hero (full viewport) --- */
main{
  padding-top: calc(var(--header-height) + var(--nav-margin-block) + var(--space-d));
  padding-left: var(--nav-margin-inline);
  padding-right: var(--nav-margin-inline);
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero{
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(22px, 4vh, 56px);
  padding-bottom: clamp(22px, 4vh, 56px);
}

@media (max-width: 900px){
  main{ min-height: auto; }
  .hero{
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
}

.hero-kicker{
  font-size: clamp(14px, 1vw, 16px);
  letter-spacing: .02em;
  opacity: .75;
  color: rgba(33,36,39,.75);
  margin: 0 0 14px 0;
}
.hero-title{
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hero-title .line{ display:block; }
.hero-title .line-muted{ opacity: .92; }

.hero-sub{
  margin: 18px 0 0 0;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.55;
  color: rgba(33,36,39,.78);
  max-width: 54ch;
}

/* --- Device (Video) column --- */
.device-wrap{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.device-spacer{
  width: clamp(320px, 22vw, 440px);
  aspect-ratio: 9 / 19.5;
}

@media (max-width: 900px){
  .device-wrap{ justify-content: center; }
  .device-spacer{ display: none; }
}

/* Pinned device (desktop/tablet) */
@media (min-width: 901px){
  .device-spacer{ visibility: hidden; }
  .device--fixed{
    position: fixed;
    right: calc(var(--content-inset) + var(--device-dock));
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    max-height: min(78vh, 720px);
  }
}

.device{
  width: clamp(320px, 22vw, 440px);
  height: auto;
  filter: drop-shadow(0px 18px 40px rgba(0,0,0,.18));
  max-height: 72vh;
  user-select: none;
  -webkit-user-drag: none;

  /* The MP4 already contains the device frame; avoid extra rounding/cropping. */
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

@media (max-width: 900px){
  .device{ width: min(320px, 68vw); max-height: none; }
  .device--fixed{
    position: static;
    transform: none;
    max-height: none;
    pointer-events: none;
  }
}

/* --- Features stage (pinned card + scroll steps) --- */
.features-stage{
  color: #ffffff;
  background: #000000;
  position: relative;
}
.features-step{
  min-height: var(--feature-step-height);
  display: block;
}

.features-pin{
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--nav-margin-inline);
  padding-right: var(--nav-margin-inline);

  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;

  pointer-events: none;
}

.feature-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--headerRadius);
  padding: clamp(24px, 4vw, 56px);
  box-shadow: 0px 8px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: clamp(560px, 38vw, 820px);
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 30vh, 360px);
}

@media (min-width: 901px){
  .feature-card{
    width: min(
      clamp(560px, 38vw, 820px),
      calc(100% - (clamp(320px, 22vw, 440px) + var(--device-dock) + 64px))
    );
  }
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.section-title{
  margin: 18px 0 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #ffffff;
  max-width: 22ch;
  min-height: 2.2em;
}
.section-text{
  margin: 14px 0 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  max-width: 60ch;
  min-height: 4.8em;
}

/* Flip-like content swap */
.feature-swap{
  transform-origin: 50% 50%;
  transition: transform 220ms ease, opacity 220ms ease;
  will-change: transform, opacity;
}
.feature-swap.is-leaving{
  transform: translateY(-10px) rotateX(10deg);
  opacity: 0;
}
.feature-swap.is-entering{
  transform: translateY(10px) rotateX(-10deg);
  opacity: 0;
}

@media (max-width: 900px){
  .features-pin{
    position: static;
    top: auto;
    transform: none;
    padding-top: clamp(28px, 6vh, 64px);
    padding-bottom: clamp(28px, 6vh, 64px);
  }
  .features-step{ min-height: auto; padding-bottom: 56px; }
}

/* --- Footer --- */
.site-footer{
  background: #000000;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
}
.footer-inner{
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--nav-margin-inline);
  padding-right: var(--nav-margin-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand{
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .2px;
  color: #ffffff;
}
.footer-links{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a{
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color .15s ease;
  white-space: nowrap;
}
.footer-links a:hover{
  color: rgba(255,255,255,0.85);
}

@media (max-width: 700px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --- Legal / static pages (Privacy, Support, Imprint) --- */
.legal-page #smooth-content{
  background: #ffffff;
}

.legal-page main.legal-main{
  padding-top: calc(var(--header-height) + var(--nav-margin-block) + 32px);
  padding-left: var(--nav-margin-inline);
  padding-right: var(--nav-margin-inline);
  max-width: var(--container-max);
  margin: 0 auto;
  height: auto;
  display: block;
}

.legal-hero{
  padding-top: clamp(12px, 2vh, 28px);
  padding-bottom: 18px;
}

.legal-kicker{
  margin: 0 0 10px 0;
  font-size: 14px;
  letter-spacing: .02em;
  opacity: .75;
  color: rgba(33,36,39,.75);
}

.legal-title{
  margin: 0;
  font-size: clamp(32px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.legal-sub{
  margin: 12px 0 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(33,36,39,.78);
  max-width: 70ch;
}

.legal-card{
  border: 1px solid rgba(33,36,39,.12);
  border-radius: var(--headerRadius);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: 0px 1px 2px rgba(0,0,0,.06), 0px 8px 20px rgba(0,0,0,.06);
  background: rgba(255,255,255,0.96);
  margin-bottom: 56px;
}

.legal-card h2{
  margin: 22px 0 10px 0;
  font-size: 18px;
  letter-spacing: -.01em;
}

.legal-card ul{
  margin: 10px 0 0 18px;
}

.legal-card li{
  margin: 8px 0;
}

.legal-note{
  color: rgba(33,36,39,.72);
}

.legal-meta{
  margin-top: 22px;
  color: rgba(33,36,39,.62);
}

@media (max-width: 900px){
  .legal-page main.legal-main{
    padding-top: calc(var(--header-height) + var(--nav-margin-block) + 18px);
  }
}
