:root{
  --bg-dark: #0b0f14;
  --text: #0b0f14;
  --muted: #4b5563;
  --white: #ffffff;
  --accent: #86c6e8;
  --accent-2: #86c6e8;    /* make it identical so buttons match */

  --radius-xl: 28px;
  --shadow: 0 18px 55px rgba(0,0,0,0.25);

  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #fff;
}

/* ---------- First-Visit Modal ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card{
  width: min(760px, 100%);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
}

.modal-title{
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--text);
}

.modal-text{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 16px;
}

.modal-close{
  margin-top: 8px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn--pill { border-radius: 999px; }
.btn--primary{
  background: var(--accent);
  color: #0b0f14;
}

.btn--primary:hover{
  filter: brightness(0.95);
}

/* Section 2 button slightly bigger */
.section--light .btn--primary{
  font-size: 20px;
  padding: 16px 30px;
}

/* the button in the center */
.hero .btn--primary{
  font-size: 24px;
  padding: 18px 42px;
  border-radius: 1100px;


  transition: all 0.25s ease;
}

/* ---------- HERO ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  background:
    linear-gradient(rgba(255,255,255,0.05), rgba(0,0,0,0.18)),
    url("/static/assets/background_bw.webp") center/cover no-repeat;

  filter: brightness(1.15) contrast(1.02);
}

/* Colored layer revealed with a soft "brush" (mask) */
.hero__color{
  position: absolute;
  inset: 0;
  background: url("/static/assets/background_col.webp") center/cover no-repeat;
  z-index: 0;
  pointer-events: none;

  /* hidden by default */
  opacity: 0;

  /* start with "no brush" */
  -webkit-mask-image: radial-gradient(circle 0px at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(circle 0px at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.hero__shade{
  position: absolute;
  inset: 0;

  /* soft top-to-bottom shading, no noir vignette */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.22) 55%,
    rgba(0,0,0,0.28) 100%
  );

  z-index: 1;
}

/* Nav */
.nav{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 42px;
}

.nav__logo{
  color: rgba(0, 0, 0, 0.92);
  letter-spacing: .04em;
  font-weight: 700;
  font-size: 28px;
}

.nav__actions{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__form-inline {
  margin: 0;
  display: inline-flex;
}

.nav__link{
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;  /* matches button text */
}
.nav__link--danger{
  color: #991b1b;
}

button.nav__link{
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.nav__link:hover{ color: rgba(255,255,255,1); }

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-modal--open {
  display: flex;
}

.confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.55);
  backdrop-filter: blur(2px);
}

.confirm-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(11, 15, 20, 0.14);
  padding: 22px;
  animation: confirmModalEnter 0.18s ease;
}

.confirm-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #4b5563;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal__close:hover {
  color: #111827;
}

.confirm-modal__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.confirm-modal__text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirm-modal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-modal__btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.confirm-modal__btn--secondary {
  color: var(--text);
  background: rgba(0, 0, 0, 0.08);
}

.confirm-modal__btn--danger {
  color: #ffffff;
  background: #991b1b;
}

@keyframes confirmModalEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav .btn{
  font-size: 18px;   /* same as Log In */
  padding: 14px 26px; /* keep it consistent */
}

.hero__content{
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 92px);

  display: flex;
  flex-direction: column;
  justify-content: center;   /* keep centered vertically */
  align-items: center;
  text-align: center;

  transform: translateY(5vh);  /* subtle downward shift */
}

.hero__title{
  margin: 0 0 28px;
  font-size: clamp(44px, 5vw, 88px);
  line-height: 1.05;
  font-weight: 500;
  color: rgba(236, 252, 255, 0.9);
  margin-bottom: 100px;  /* increase space under headline */
}

/* scroll cue */
.scroll-cue{
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  opacity: .7;
}
.scroll-cue span{
  display: block;
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  position: relative;
}
.scroll-cue span::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  transform: translateX(-50%);
  animation: dot 1.4s infinite ease-in-out;
}
@keyframes dot{
  0%{ transform: translate(-50%, 0); opacity: .2; }
  40%{ opacity: 1; }
  80%{ transform: translate(-50%, 14px); opacity: .2; }
  100%{ opacity: .2; }
}

/* ---------- Section 2 ---------- */
.section{
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section--light{
  background: #f5f7fb;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: 50px 0;
}

.split{
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;  /* more space to text */
  gap: 78px;
  align-items: center;
}

.split__left h2{
  margin: 0 0 28px;
  font-size: clamp(28px, 2.6vw, 38px); /* slightly smaller */
  line-height: 1.15;                  /* less cramped */
  letter-spacing: -0.01em;
  max-width: 640px;                   /* prevents too-narrow stacking */
}

.lead{
  margin: 0 0 28px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
}

.accent{ color: #69b8de; font-style: italic; }
.accent-italic{ color: #69b8de; font-style: italic; }

.mockup-wrap{
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(6px);
}

.mockup{
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-xl) - 10px);
}

/* ---------- Reveal animations ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Landing Footer ---------- */
.landing-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px 20px;
  background: rgba(245, 245, 245, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.landing-footer__left,
.landing-footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-footer__link {
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  font-family: inherit;
}

.landing-footer__link--button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.landing-footer__note {
  color: rgba(0, 0, 0, 0.72);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-footer__note::before {
  content: "";
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.landing-footer__link:hover {
  color: rgba(0, 0, 0, 0.95);
}

.landing-footer__form {
  margin: 0;
  display: inline-flex;
}

button.landing-footer__link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.landing-footer__link--danger {
  color: #991b1b;
  font-weight: 500;
}

.policy-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.policy-modal--open {
  display: flex;
}

.policy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.56);
  backdrop-filter: blur(2px);
}

.policy-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(11, 15, 20, 0.14);
  box-shadow: var(--shadow);
  padding: 24px;
}

.policy-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #4b5563;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.policy-modal__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
}

.policy-modal__content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.policy-modal__content p:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px){
  .nav{ padding: 22px 20px; }
  .nav__logo{ font-size: 22px; }
  .split{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .mockup-wrap{ padding: 12px; }

  .landing-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    padding: 12px 14px;
  }

  .landing-footer__left,
  .landing-footer__right {
    display: contents;
  }

  .landing-footer__link,
  .landing-footer__form {
    order: 1;
  }

  .landing-footer__note {
    order: 2;
    flex-basis: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 2px;
  }

  .landing-footer__note::before {
    display: none;
  }

  .landing-footer__link,
  .landing-footer__note {
    font-size: 13px;
  }

}
