/* -----------------------
   THEME (Puravida-like)
   ----------------------- */
:root{
  /* Puravida-ish bluish-gray base */
  --bg-base: #8FA9BF;
  --bg-deep: #5F7488;
  --bg-spot: #BFD0DE;

  --text-dark: rgba(10, 20, 28, 0.88);
  --text-mid: rgba(10, 20, 28, 0.70);

  /* Logo darker, similar vibe to app logo but tuned for light background */
  --brand: #0B3C3D;
  --brand-glow: rgba(11, 60, 61, 0.22);

  /* Softer glass */
  --glass: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.22);

  --btn: #0B3C3D;
  --btn-text: rgba(255,255,255,0.95);

  --link: rgba(11, 60, 61, 0.92);
  --link-hover: rgba(11, 60, 61, 1);

  --shadow-soft: 0 18px 50px rgba(0,0,0,0.14);
  --shadow-modal: 0 30px 90px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-base);
}

/* Background with spotlight (top-left -> darker bottom-right) */
.bg{
  min-height: 100vh;
  background:
    radial-gradient(980px 760px at 16% 14%, var(--bg-spot) 0%, rgba(191,208,222,0.55) 38%, rgba(191,208,222,0.0) 72%),
    linear-gradient(135deg, var(--bg-base) 0%, #86A2B9 42%, var(--bg-deep) 100%);
  padding-bottom: 28px;
}

/* Top bar */
.topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 26px 14px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo badge (so it feels like a logo, not plain text) */
/* --- Logo: premium underline style --- */
.brand{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.brandText{
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.6px;
  font-size: 22px;
  color: var(--brand);
  user-select: none;
  line-height: 1.1;
}

/* Glowing underline (subtle, premium) */
.brandUnderline{
  margin-top: 4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(11, 60, 61, 0.0),
    rgba(11, 60, 61, 0.85),
    rgba(11, 60, 61, 0.0)
  );
  box-shadow:
    0 0 10px rgba(11, 60, 61, 0.25),
    0 0 18px rgba(11, 60, 61, 0.15);
  opacity: 0.85;
}

/* Optional: extremely slow ambient pulse (not distracting) */
@media (prefers-reduced-motion: no-preference){
  .brandUnderline{
    animation: brandGlow 6.5s ease-in-out infinite;
  }

  @keyframes brandGlow{
    0%, 100%{
      opacity: 0.6;
      box-shadow:
        0 0 8px rgba(11, 60, 61, 0.18),
        0 0 14px rgba(11, 60, 61, 0.12);
    }
    50%{
      opacity: 1;
      box-shadow:
        0 0 14px rgba(11, 60, 61, 0.32),
        0 0 26px rgba(11, 60, 61, 0.22);
    }
  }
}

.brandText{
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.6px;
  font-size: 22px;
  color: var(--brand);
  text-shadow:
    0 10px 24px rgba(0,0,0,0.08),
    0 0 18px var(--brand-glow);
  user-select: none;
}

.contactLink{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 800;
  opacity: 0.95;
}
.contactLink:hover{ color: var(--link-hover); opacity: 1; }

/* Stage + grid layout */
.stage{
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 26px 0;
}

.grid{
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  grid-template-areas:
    "about video"
    ".     app";
  gap: 30px 32px;
  align-items: start;
  min-height: calc(100vh - 120px);
}

/* ABOUT (compact, no card) */
.about{ grid-area: about; max-width: 520px; }

.aboutTitle{
  margin: 6px 0 10px;
  font-size: 24px;
  font-weight: 900;
  color: rgba(10,20,28,0.90);
}

.aboutP{
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-mid);
  /* Slight handwritten, readable */
  font-family: Kalam, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
}

.aboutEm{
  margin-top: 10px;
  font-weight: 700;
  color: rgba(10,20,28,0.78);
}

/* -----------------------
   HERO VIDEO (premium embed)
   ----------------------- */
.videoWrap{
  grid-area: video;
  position: relative;
  border-radius: 22px;
  overflow: hidden;

  height: min(560px, 56vh);

  border: none;
  background: transparent;
  box-shadow: none;
}

/* Video fills the area */
.heroVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;

  /* Softer blend — reduce “hole” feeling */
  -webkit-mask-image: radial-gradient(
    110% 90% at 50% 50%,
    rgba(0,0,0,1) 76%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    110% 90% at 50% 50%,
    rgba(0,0,0,1) 76%,
    rgba(0,0,0,0) 100%
  );
}

/* Additional blend layer so edges match background tone */
.videoWrap::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    radial-gradient(
      110% 95% at 50% 50%,
      rgba(0,0,0,0) 68%,
      rgba(143,169,191,0.22) 86%,
      rgba(143,169,191,0.40) 100%
    );
}

/* fallback hint if video fails */
.videoHint{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(10,20,28,0.20);
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

/* -----------------------
   APP card (softer glass)
   ----------------------- */
.appCard{
  grid-area: app;
  width: clamp(620px, 68vw, 940px);
  justify-self: end;

  padding: 24px 24px 20px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);

  margin-top: 18px;

  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.appCard:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.16);
}

.appTitle{
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: rgba(10,20,28,0.92);
}

.appSubtitle{
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 900;
  color: rgba(10,20,28,0.78);
}

.appP{
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(10,20,28,0.72);
}

.appList{
  margin: 10px 0 10px 18px;
  padding: 0;
  color: rgba(10,20,28,0.75);
  font-weight: 700;
  margin-bottom: 14px;
}
.appList li{ margin: 7px 0; font-size: 15px; }

.appSmall{
  margin-top: 12px;
  font-size: 14px;
  color: rgba(10,20,28,0.64);
  font-weight: 600;
}

/* CTA: cleaner + more separation */
.ctaRow{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding-top: 6px;
}

.ctaLink{
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;

  color: var(--link);
  font-weight: 900;
  text-decoration: none;
  position: relative;
}
.ctaLink::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:2px;
  background: currentColor;
  opacity: 0.75;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease, opacity 220ms ease;
}
.ctaLink:hover{ color: var(--link-hover); }
.ctaLink:hover::after{ transform: scaleX(1); opacity: 0.95; }

.ctaBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,0.14);

  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}
.ctaBtn:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.ctaBtn:active{ transform: translateY(0px) scale(0.99); }

.footer{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 26px 0;
  color: rgba(10,20,28,0.60);
  font-weight: 700;
}

/* -----------------------
   DEMO MODAL
   ----------------------- */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.modal.modal--open{ display: block; }

.modalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}

.modalCard{
  position: relative;
  width: min(920px, 92vw);
  margin: 7vh auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 20, 26, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-modal);
}

.modalClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 900;
}

.demoVideo{
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------
   Micro animation (premium feel)
   ----------------------- */
[data-anim="in"]{
  opacity: 0;
  transform: translateY(10px);
  animation: mpIn 520ms ease forwards;
}
[data-anim="in"][data-anim-delay="1"]{ animation-delay: 90ms; }
[data-anim="in"][data-anim-delay="2"]{ animation-delay: 180ms; }

@keyframes mpIn{
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  [data-anim="in"]{ animation: none; opacity: 1; transform: none; }
  .appCard, .ctaBtn{ transition: none; }
}

/* -----------------------
   Responsive
   ----------------------- */
@media (max-width: 980px){
  .topbar{ padding: 16px 16px 10px; }
  .brand{ padding: 7px 10px; }
  .brandText{ font-size: 20px; }
  .stage{ padding: 10px 16px 0; }

  .grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "about"
      "video"
      "app";
    min-height: auto;
  }

  .about{ max-width: none; }

  .videoWrap{
    height: 300px;
    border-radius: 18px;
  }

  .appCard{
    width: 100%;
    justify-self: stretch;
    margin-top: 0;
  }
}

@media (max-width: 520px){
  .appTitle{ font-size: 22px; }
  .aboutTitle{ font-size: 22px; }
  .aboutP, .appP{ font-size: 15px; }

  /* buttons stack nicely on small screens */
  .ctaRow{ flex-direction: column; align-items: stretch; }
  .ctaBtn{ width: 100%; }
  .ctaLink{ text-align: left; }
}
