/* ============================================================
   Rengised Limited — Landing page
   Built from Figma (VHALf97OAv1nXbCr8iEwK2, node 2128-830)
   ============================================================ */

@font-face{
  font-family: "Millik";
  src: url("assets/fonts/millik/Millik-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Somar Sans";
  src: url("assets/fonts/somar-sans/SomarSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Somar Sans";
  src: url("assets/fonts/somar-sans/SomarSans-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face{
  font-family: "Somar Sans";
  src: url("assets/fonts/somar-sans/SomarSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Somar Sans";
  src: url("assets/fonts/somar-sans/SomarSans-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Somar Sans";
  src: url("assets/fonts/somar-sans/SomarSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
  --purple: #4946A6;
  --purple-dark: #38357F;
  --green: #15CC79;
  --navy: #0A1B33;
  --ink: #0C1316;
  --border: #343434;
  --footer-link: #949494;
  --pattern-stroke: #CAC6DD;
  --clipbit-bg: #A2C5FF;
  --suztane-bg: #150038;
  --page-bg: #F8F8F8;
  --white: #FFFFFF;

  --font-display: "Millik", "Fraunces", Georgia, serif;
  --font-body: "Somar Sans", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --container-w: 1520px;
  --gutter: clamp(20px, 5.5vw, 40px);

  --fs-display: clamp(2.25rem, 1.15rem + 4.6vw, 5rem);
  --fs-copy: clamp(1.0625rem, 0.92rem + 0.65vw, 1.5rem);
  --lh-display: 1.05;

  --ease: cubic-bezier(.22,.9,.28,1);
  --dur-fast: .22s;
  --dur-med: .45s;
  --dur-slow: .8s;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1, h2, p{ margin: 0; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 4px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout ---------- */
.container{
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{ position: relative; }

.section-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
}
.section-title .line{ display: block; }
.line.accent{ color: var(--purple); }

.section-copy{
  font-size: var(--fs-copy);
  line-height: 1.5;
}

.btn-row{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ---------- Buttons ---------- */
.btn{
  --btn-bg: var(--ink);
  --btn-fg: #F9FAFB;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 28px;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn::after{
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  z-index: -1;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.35);
}
.btn:active{
  transform: translateY(0) scale(.98);
  box-shadow: 0 4px 10px -6px rgba(0,0,0,.3);
}

.btn--black{ --btn-bg: #000; --btn-fg: #F9FAFB; --btn-border: var(--border); }
.btn--outline{ --btn-bg: #000; --btn-fg: #F9FAFB; --btn-border: var(--border); }
.btn--purple{ --btn-bg: var(--purple); --btn-fg: #F9FAFB; }
.btn--purple:hover{ --btn-bg: var(--purple-dark); }
.btn--green{ --btn-bg: var(--green); --btn-fg: var(--navy); --btn-border: var(--green); }
.btn--green:hover{ --btn-bg: #12b56a; }
.btn--white{ --btn-bg: #fff; --btn-fg: #000; }
.btn--white:hover{ --btn-bg: #ececec; }
.btn--navy{ --btn-bg: var(--navy); --btn-fg: #fff; }
.btn--navy:hover{ --btn-bg: #0f2a4d; }
.btn--ghost{ --btn-bg: rgba(0,0,0,.2); --btn-fg: #F9FAFB; --btn-border: #fff; }
.btn--ghost:hover{ --btn-bg: rgba(255,255,255,.12); }

/* ---------- Navbar ---------- */
.navbar{
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 24px var(--gutter);
  display: flex;
  transition: background-color var(--dur-med) var(--ease), backdrop-filter var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), padding var(--dur-med) var(--ease);
}
.navbar.is-scrolled{
  background: rgba(12, 19, 22, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px -20px rgba(0,0,0,.6);
  padding-block: 16px;
}
.navbar__inner{
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo{ display: inline-flex; transition: opacity var(--dur-fast) var(--ease); }
.navbar__logo:hover{ opacity: .82; }
.navbar__logo img{ width: clamp(140px, 12vw, 200px); height: auto; }

.navbar__nav{
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__link{
  position: relative;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  padding-block: 4px;
}
.navbar__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}
.navbar__link:hover::after{ transform: scaleX(1); transform-origin: left; }
.navbar__cta{ height: 48px; padding: 0 24px; font-size: 16px; }

.navbar__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.navbar__toggle span{
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  overflow: clip;
  padding-top: clamp(140px, 18vw, 216px);
  padding-bottom: clamp(80px, 12vw, 168px);
  background: linear-gradient(180deg, #151F24 0%, #131D21 29.5%, #111A1F 47%, #0F171B 70.5%, #0C1316 100%);
  color: #fff;
}
.hero__pattern{
  position: absolute;
  top: -12%;
  right: -38%;
  width: min(120vw, 1500px);
  aspect-ratio: 1;
  opacity: .55;
  pointer-events: none;
}
.hero__pattern svg{ width: 100%; height: 100%; display: block; }
.ripple-ring{
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: var(--ring-o, .1);
  animation: ripple-pulse 5.2s var(--ease) infinite;
}
.ripple-ring--1{ animation-delay: 0s; }
.ripple-ring--2{ animation-delay: .55s; }
.ripple-ring--3{ animation-delay: 1.1s; }
.ripple-ring--4{ animation-delay: 1.65s; }
.ripple-ring--5{ animation-delay: 2.2s; }
.hero__bloom{
  position: absolute;
  left: 50%;
  bottom: -38%;
  width: min(90vw, 808px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(73,70,166,.55) 0%, rgba(73,70,166,.28) 45%, rgba(73,70,166,0) 72%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__container{ position: relative; z-index: 1; }
.hero__title{ color: #fff; }
.hero__subtitle{
  margin-top: clamp(20px, 3vw, 40px);
  max-width: 640px;
  font-size: var(--fs-copy);
  color: #fff;
}
.hero__divider{
  position: absolute;
  left: 50%;
  top: clamp(110px, 11.5vw, 110px);
  transform: translateX(-50%);
  width: min(90%, 1720px);
  height: 1px;
  background: rgba(255,255,255,.14);
  transform-origin: left center;
  animation: divider-draw var(--dur-slow) var(--ease) .3s both;
}

@keyframes divider-draw{
  from{ transform: translateX(-50%) scaleX(0); }
  to{ transform: translateX(-50%) scaleX(1); }
}
@keyframes ripple-pulse{
  0%, 100%{ opacity: var(--ring-o, .1); transform: scale(1); }
  50%{ opacity: calc(var(--ring-o, .1) * 2.6); transform: scale(1.04); }
}

/* ---------- Intro (Section 2) ---------- */
.intro{
  background: #fff;
  border-block: 1px solid var(--border);
  padding-block: clamp(72px, 11vw, 168px);
}
.intro__grid{ max-width: 1120px; }
.intro__body{ margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Product sections ---------- */
.product{ padding-block: clamp(72px, 11vw, 168px); overflow: clip; }
.product__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.product__copy{ max-width: 620px; }
.product__logo{ height: 52px; width: auto; margin-bottom: clamp(24px, 3vw, 40px); }
.product__logo-row{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.product__logo-mark{ height: 40px; width: auto; }
.product__logo-type{ height: 34px; width: auto; }
.product__text{ color: inherit; }

.product__media{
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-y 7s ease-in-out infinite;
}
.product__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); */
  transition: transform var(--dur-med) var(--ease), filter var(--dur-med) var(--ease);
  transform: perspective(1000px);
  transform-origin: center center;
  will-change: transform;
  animation: product-tilt-loop 30s ease-in-out infinite;
}
.product--penta .product__media img{ animation-delay: 0s; }
.product--subpool .product__media img{ animation-delay: -5s; }
.product--clipbit .product__media img{ animation-delay: -10s; }
.product--suztane .product__media img{ animation-delay: -15s; }
.product__media:hover img{
  filter: drop-shadow(0 38px 60px rgba(0,0,0,.4));
}
.product__glow{
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color, rgba(255,255,255,.4)) 0%, transparent 68%);
  filter: blur(30px);
  opacity: .5;
  animation: glow-pulse 6s ease-in-out infinite;
  animation-delay: -1.5s;
  pointer-events: none;
}
.product--penta .product__glow{ --glow-color: rgba(21, 204, 121, .45); }
.product--subpool .product__glow{ --glow-color: rgba(255, 255, 255, .28); }
.product--clipbit .product__glow{ --glow-color: rgba(10, 27, 51, .3); }
.product--suztane .product__glow{ --glow-color: rgba(45, 112, 247, .5); }

.product__media:hover .product__glow{ opacity: .8; }

@keyframes float-y{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px); }
}
/* Automated corner-tilt + zoom loop: TL -> TR -> BL -> BR -> zoom in -> zoom out -> loop.
   Each pose holds for ~3.75s then eases into the next over ~1.25s (30s / 6 poses = 5s each). */
@keyframes product-tilt-loop{
  0%, 12.5%    { transform: perspective(1000px) rotateX(6deg)  rotateY(-9deg) scale(1.03); }
  16.67%, 29.17%{ transform: perspective(1000px) rotateX(6deg)  rotateY(9deg)  scale(1.03); }
  33.33%, 45.83%{ transform: perspective(1000px) rotateX(-6deg) rotateY(-9deg) scale(1.03); }
  50%, 62.5%   { transform: perspective(1000px) rotateX(-6deg) rotateY(9deg)  scale(1.03); }
  66.67%, 79.17%{ transform: perspective(1000px) rotateX(0deg)  rotateY(0deg)  scale(1.09); }
  83.33%, 95.83%{ transform: perspective(1000px) rotateX(0deg)  rotateY(0deg)  scale(0.97); }
  100%{ transform: perspective(1000px) rotateX(6deg) rotateY(-9deg) scale(1.03); }
}
@keyframes glow-pulse{
  0%, 100%{ transform: scale(.92); opacity: .38; }
  50%{ transform: scale(1.06); opacity: .62; }
}

.product--penta{ background: var(--navy); color: #fff; }
.product--subpool{ background: #000; color: #fff; }
.product--clipbit{ background: #fff; color: var(--navy); }
.product--suztane{
  background: var(--suztane-bg);
  color: #fff;
  border-block: 1px solid var(--border);
}

.suztane-logo{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.suztane-logo__mark{
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  flex: none;
}
.suztane-logo__ring{ position: absolute; inset: 0; width: 100%; height: 100%; }
.suztane-logo__dot{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60.6%;
  height: 60.6%;
  transform: translate(-50%, -50%);
}
.suztane-logo__type{ height: 32px; width: auto; }

/* ---------- CTA (Section 7) ---------- */
.cta{
  background: #fff;
  border-block: 1px solid var(--border);
  padding-block: clamp(72px, 11vw, 148px);
}
.cta__container{ max-width: 1120px; text-align: center; margin-inline: auto; }
.cta__title{ text-align: center; }
.cta__copy{ margin: 0 auto; text-align: center; margin-top: clamp(20px, 3vw, 40px); }
.cta .btn-row{ justify-content: center; }

/* ---------- Footer (Section 8) ---------- */
.footer{
  background: linear-gradient(180deg, #1E2C2F 0%, #1C292D 33.646%, #172227 65.417%, #111B1F 100%);
  border-block: 1px solid var(--border);
  padding-block: clamp(56px, 8vw, 96px);
  color: #fff;
}
.footer__container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
  text-align: center;
}
.footer__logo{ width: 180px; height: auto; }
.footer__links{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 5vw, 80px);
}
.footer__links a{
  position: relative;
  font-weight: 500;
  font-size: clamp(1rem, .9rem + .4vw, 1.5rem);
  color: var(--footer-link);
  transition: color var(--dur-fast) var(--ease);
}
.footer__links a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transition: transform var(--dur-fast) var(--ease);
}
.footer__links a:hover{ color: #fff; }
.footer__links a:hover::after{ transform: scaleX(1); }
.footer__copyright{
  font-weight: 500;
  font-size: clamp(1rem, .9rem + .4vw, 1.5rem);
  color: #fff;
}

/* ---------- Scroll reveal ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* Faux 3D spin-in for product images: plays once, the moment the section enters view */
.product__spin[data-reveal]{
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: perspective(1200px) rotateY(-110deg) scale(.75);
  transition: none;
}
.product__spin[data-reveal].is-visible{
  animation: spin-in 1.1s cubic-bezier(.2,.75,.25,1) forwards;
}
@keyframes spin-in{
  0%{ opacity: 0; transform: perspective(1200px) rotateY(-110deg) scale(.75); }
  55%{ opacity: 1; transform: perspective(1200px) rotateY(14deg) scale(1.045); }
  100%{ opacity: 1; transform: perspective(1200px) rotateY(0deg) scale(1); }
}

@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; }
  .hero__pattern, .product__media, .product__media img, .hero__divider, .ripple-ring, .product__glow, .product__spin{ animation: none; }
  .product__glow{ opacity: .5; transform: scale(1); }
  .ripple-ring{ opacity: var(--ring-o, .1); }
  .product__media img{ transform: perspective(1000px); }
  .product__spin{ opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px){
  .product__grid{
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 56px);
  }
  .product__copy{ max-width: 640px; }
  .product__media{ max-width: 460px; margin-inline: auto; width: 100%; order: 2; }
  .hero__bloom{ bottom: -50%; }
}

@media (max-width: 860px){
  .navbar__nav{
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12, 19, 22, .98);
    backdrop-filter: blur(16px);
    padding: 96px 28px 32px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-med) var(--ease), opacity var(--dur-med) var(--ease), visibility var(--dur-med);
  }
  .navbar__nav.is-open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .navbar__nav .navbar__link{
    font-size: 22px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .navbar__nav.is-open .navbar__link{ opacity: 1; transform: translateY(0); }
  .navbar__nav.is-open .navbar__link:nth-child(1){ transition-delay: .08s; }
  .navbar__nav.is-open .navbar__link:nth-child(2){ transition-delay: .14s; }
  .navbar__nav.is-open .navbar__cta{ margin-top: 24px; width: 100%; transition-delay: .2s; opacity: 0; transform: translateY(10px); }
  .navbar__nav.is-open .navbar__cta{ opacity: 1; transform: translateY(0); }
  .navbar__toggle{ display: flex; }
}

@media (max-width: 560px){
  .btn-row{ flex-direction: column; align-items: stretch; }
  .btn{ width: 100%; }
  .cta .btn-row{ align-items: center; }
  .footer__links{ gap: 20px 32px; }
  .hero{ padding-top: 128px; }
}
