/* =========================================================
   NARI — index.css (INDEX ONLY)
   Purpose: dark landing with full-bleed hero image.
   MUST NOT affect internal pages.
   Depends on global assets/css/styles.css for base layout.
   ========================================================= */

body.index{
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* backplate behind the centred “phone” on desktop */
  background: #07121f url("../img/nari_page_bg.png") repeat;
  background-size: 520px auto;

  display:flex;
  align-items:center;
  justify-content:center;

  /* desktop breathing room */
  padding: 18px;
  margin: 0;
  overflow: hidden;
}

/* Use dynamic viewport height on mobile so footer doesn't drop behind phone UI */
body.index .stage{
  height: min(1024px, 100dvh);
}

/* On small screens, the phone frame becomes the screen (no rounding) */
@media (max-width: 430px){
  body.index{ padding: 0; }
  body.index .stage{
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}

/* Full-bleed hero image inside the stage */
body.index .index-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* full fill */
  object-position: center; /* keep face central */
  z-index: 1;
}

/* Make header/footer float over the image */
body.index .index-top-row,
body.index .index-footer-row{
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
}

/* Header sits inside safe area */
body.index .index-top-row{
  top: 0;
  padding-top: calc(14px + var(--safe-t));
  background: none; /* important: no bar background */
}

/* Footer sits inside safe area */
body.index .index-footer-row{
  bottom: 0;
  padding-bottom: calc(12px + var(--safe-b));
  background: none; /* important: no bar background */
}

/* Index header circles: slightly glassy (keep subtle) */
body.index .index-top-row .circle-btn{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
}

/* Index footer icon circles: slightly glassy (keep subtle) */
body.index .index-footer-row .icon-btn{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}

/* Ensure flag SVG fills the circle */
body.index .index-flag-img{
  width: 78%;
  height: 78%;
  object-fit: cover;
  border-radius: 999px;
}

/* Logo image sizing */
body.index .index-logo-img{
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* ===== Hero card ===== */
body.index .index-hero-card{
  position: absolute;
  left: 16px;
  right: 16px;

  /* Above footer with safe-area awareness */
  bottom: calc(86px + var(--safe-b));

  z-index: 30;

  padding: 16px 16px 14px;
  border-radius: 18px;

  background: rgba(12,18,28,.62);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px);

  color: rgba(255,255,255,.96);
  text-align: center;
}

/* Typographic scale (less shouty on phone) */
body.index .index-headline{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 900;
}

body.index .index-subcopy{
  margin: 0 auto 10px;
  font-size: 13px;
  line-height: 1.48;
  opacity: .92;
  max-width: 44ch;
}

/* Button row */
body.index .index-btn-row{
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* Single CTA button (tighter + more inviting) */
body.index .index-btn{
  border-radius: 999px;
  padding: 9px 16px; /* tighter fit around text */

  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.01em;

  border: 1px solid rgba(255,214,107,.42);
  cursor: pointer;

  width: auto;

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    filter .12s ease;
}

body.index .index-btn-primary{
  background: rgba(255,214,107,.95);
  color: #08121f;

  box-shadow: 0 4px 12px rgba(0,0,0,.20);
}

body.index .index-btn-primary:hover,
body.index .index-btn-primary:focus-visible{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.26);
  filter: brightness(1.04);
}

body.index .index-btn-primary:active{
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
}

/* Consult line */
body.index .index-consult{
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.35;
  opacity: .92;
  text-align: center;
}

/* Small phones: tighter spacing and smaller headline */
@media (max-width: 430px){
  body.index .index-hero-card{
    left: 12px;
    right: 12px;
    padding: 14px 14px 12px;
    bottom: calc(82px + var(--safe-b));
  }

  body.index .index-headline{ font-size: 20px; }
  body.index .index-subcopy{ font-size: 12.5px; }
}

/* Very short screens: prevent footer overlap by nudging card up */
@media (max-height: 740px){
  body.index .index-hero-card{
    bottom: calc(96px + var(--safe-b));
  }
}


/* ---------------------------------------------------------
   Legal footer line (company registration)
   Keeps layout stable (icons remain fixed) while allowing the
   copyright block to wrap on small screens.
   --------------------------------------------------------- */
body.index .footer-copy{
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: calc(100% - 170px);
  line-height: 1.15;
}
body.index .footer-legal{
  font-size: 12px;
  opacity: .78;
}
