/* Sorontil one-page site (Framer-inspired)
   - Dark glass header
   - Soft blue blobs + subtle grain
   - Responsive grids, hover motion, reveal-on-scroll
*/

:root{
  --bg: #04060D; 
  --bg2:#050812;
  --text:#EAF0FF;
  --muted:#AAB6D6;
  --line: rgba(255,255,255,.10);
  --shadow: 0 20px 70px rgba(0,0,0,.45);
  --shadow2: 0 12px 30px rgba(0,0,0,.35);

  --primary:#2E7BFF;
  --primary2:#6AA6FF;
  --primaryGlow: rgba(46,123,255,.30);

  --r-xl: 22px;
  --r-lg: 18px;

  --max: 1120px;
  --ease: cubic-bezier(.2,.8,.2,1);

  --h1: clamp(1.6rem, 6vw, 3.5rem); 
  --h2: clamp(1.6rem, 2.6vw, 2.2rem);
  --h3: 1.1rem;
}

*{ box-sizing:border-box; }

/* FIX FOR WHITE SCROLL FLASH */
html{ 
  scroll-behavior:smooth; 
  background-color: var(--bg); 
}

/* CRITICAL FIX: Body must be totally transparent so it doesn't hide the .bg container */
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: transparent; 
  color:var(--text);
  overflow-x:hidden;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font: inherit; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin-inline:auto;
}

.section{ padding: 88px 0; position: relative; }
.section--cta{ padding: 110px 0; }

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,8,18,.78), rgba(5,8,18,.35));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 14px 0;
}

.brand{ display:flex; align-items:center; }
.brand__logo{ height: 36px; width:auto; opacity:.95; transition: height .25s var(--ease), opacity .25s var(--ease); }

.nav{ display:flex; gap: 22px; align-items:center; }
.nav__link{
  font-size: .95rem;
  color: rgba(234,240,255,.86);
  padding: 10px 10px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__link:hover{ background: rgba(255,255,255,.06); color: var(--text); }
.nav__link.is-active{
  background: rgba(46,123,255,.14);
  box-shadow: 0 0 0 1px rgba(46,123,255,.25) inset;
}

.header__cta{ display:flex; align-items:center; gap: 12px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: transform .2s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  cursor:pointer;
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.btn--primary{
  background: linear-gradient(180deg, rgba(46,123,255,1), rgba(46,123,255,.82));
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 10px 28px var(--primaryGlow);
}
.btn--primary:hover{ box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 14px 36px rgba(46,123,255,.45); transform: translateY(-2px); }
.btn--ghost{ background: rgba(255,255,255,.02); }
.btn--full{ width:100%; border-radius: 14px; }

/* --- PREMIUM HAMBURGER MENU --- */
.hamburger {
  display:none; 
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.hamburger span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: #EAF0FF;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger span:nth-child(2) { width: 14px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 20px; }

.mobileMenu{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(5,8,18,.86);
  padding: 10px 1rem 18px;
}
.mobileMenu__link{ display:block; padding: 12px 6px; color: rgba(234,240,255,.88); }
.mobileMenu__btn{ margin-top: 10px; width: 100%; border-radius: 14px; }

.hero{ padding-top: 60px; }
.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items:center;
}

/* BADGE */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.86);
  font-size: .85rem;
}
.badge__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E; 
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* TEXT ROTATOR & TITLE FORMATTING */
.hero__title{
  margin: 16px 0 28px; 
  font-size: var(--h1);
  letter-spacing: -0.03em;
  line-height: 1.1; 
}
.hero__title br { display: none; }
.hero__titleTop {
  display: block; 
  color: #FFFFFF; 
  font-weight: 800; 
  margin-bottom: 8px; 
}
.hero__titleFor { font-weight: 400; color: rgba(255, 255, 255, 0.7); }

/* 3D BARREL ROLL CSS */
.text-rotator {
  display: grid; 
  text-align: left;
  perspective: 800px;
}
.text-rotator__item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: rotateX(60deg) translateY(-1.2em);
  transform-origin: center center -0.8em; 
  transition: none; 
  pointer-events: none;
  background: linear-gradient(135deg, #4DA4FF 0%, #B84DFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  white-space: nowrap; 
}
.text-rotator__item.is-active {
  opacity: 1;
  transform: rotateX(0deg) translateY(0);
  pointer-events: auto;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.text-rotator__item.is-exiting {
  opacity: 0;
  transform: rotateX(-60deg) translateY(1.2em);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.section__header .h2 {
  background: linear-gradient(135deg, #FFFFFF 0%, #AAB6D6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle{
  margin: 0 0 18px;
  color: rgba(234,240,255,.78);
  font-size: 1.05rem;
  max-width: 52ch;
}
.hero__actions{ display:flex; gap: 12px; flex-wrap:wrap; }

/* ENHANCED TRUST LABELS */
.hero__trust{
  margin-top: 24px;
  display:grid;
  gap: 12px;
  color: #EAF0FF; 
  font-size: 0.95rem;
  font-weight: 500;
}
.trust-label {
  background: linear-gradient(135deg, #4DA4FF 0%, #B84DFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-right: 4px;
}

/* --- HERO LOTTIE BOX --- */
.hero__visual{
  align-self: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1; 
  border-radius: var(--r-xl);
  background: rgba(0,0,0,.18); 
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.heroLottie{ position: absolute; inset: 0; width: 100%; height: 100%; }
.heroLottie svg{ width: 100% !important; height: 100% !important; display: block; }

.section__header{ max-width: 70ch; margin-bottom: 32px; }
.center-header { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.kicker{ color: rgba(234,240,255,.70); font-size: .95rem; margin-bottom: 10px; }
.h2{ margin: 0 0 10px; font-size: var(--h2); letter-spacing: -0.02em; line-height: 1.1; }
.lead{ margin: 0; color: rgba(234,240,255,.74); font-size: 1.03rem; line-height: 1.55; }
.h3{ margin: 0; font-size: var(--h3); letter-spacing: -0.01em; }
.p{ margin: 10px 0 0; color: rgba(234,240,255,.72); line-height: 1.6; }

.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }

/* HOVER EFFECT GROUP FOR ALL CARDS/PILLS */
.stepCard, .benefitCard, .intPill {
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.stepCard:hover, .benefitCard:hover, .intPill:hover { 
  transform: translateY(-4px); 
  border-color: rgba(46,123,255,.45); 
  background: rgba(46,123,255,.05); 
  box-shadow: 0 12px 40px rgba(46,123,255,.15);
}

.stepCard{
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
  padding: 18px 18px 16px;
}

.stepCard__top{ display:flex; flex-direction:column; gap: 10px; }
.stepCard__pill{
  display:inline-flex;
  align-self:flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46,123,255,.30);
  background: rgba(46,123,255,.10);
  color: rgba(234,240,255,.86);
  font-size: .82rem;
}

.cardsGrid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.benefitCard{
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
  padding: 18px;
  min-height: 220px;
}
.benefitCard__icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(46,123,255,.30);
  background: rgba(46,123,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 12px;
}
.benefitCard__icon img{ width: 22px; height: 22px; opacity: .95; }


/* --- INTEGRATIONS CENTERPIECE --- */
.integrationsCenterpiece {
  margin-top: 40px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(8px);
}
.integrationsCenterpiece::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(46,123,255,.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.integrationsLottieWrap {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  position: relative;
  z-index: 1;
}
.integrationsLottieWrap > div { width: 100%; height: 100%; }
.integrationsPills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.intPill {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px 24px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default; 
}
.intPill strong { color: #EAF0FF; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.intPill span { color: var(--muted); font-size: 0.85rem; }


/* --- CONTACT SECTION --- */
.cta{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 48px 56px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start; 
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(46,123,255,.15) 0%, transparent 70%); 
  pointer-events: none;
  z-index: 0;
}
.cta__copy, .form { position: relative; z-index: 1; }
.cta__meta{ margin-top: 20px; display:grid; gap: 8px; color: rgba(234,240,255,.72); font-size: .95rem; }

.form{
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.3); 
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.field{ display:block; margin-bottom: 16px; }
.field__label{ display:block; font-size: .85rem; color: rgba(234,240,255,.70); margin-bottom: 8px; font-weight: 500;}
.field__input{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: all .3s var(--ease);
  font-family: inherit;
  font-size: 0.95rem;
}
.field__input::placeholder { color: rgba(255,255,255,.3); }
.field__input:focus{ 
  border-color: rgba(77, 164, 255, 0.5); 
  background: rgba(255,255,255,.06); 
  box-shadow: 0 0 0 4px rgba(77, 164, 255, 0.1);
}
.field__input--area{ resize: vertical; min-height: 120px; }
.form__note{ margin-top: 12px; font-size: .86rem; text-align: center; }

.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 34px 0 22px;
  background: rgba(0,0,0,.22);
}
.footer__inner{ display:grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 20px; }
.footer__brand{ display:flex; gap: 12px; align-items:center; }
.footer__brand img{ width: 34px; height: 34px; opacity: .92; }
.footer__name{ font-weight: 700; letter-spacing: -0.01em; }
.footer__title{ color: rgba(234,240,255,.86); font-weight: 600; margin-bottom: 10px; }
.footer__link{ display:block; color: rgba(234,240,255,.74); padding: 6px 0; }
.footer__link:hover{ color: rgba(234,240,255,.92); }
.footer__bottom{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px; 
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(46,123,255,.15);
  border: 1px solid rgba(46,123,255,.3);
  color: #EAF0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(46,123,255,.3);
  transform: translateY(-3px);
  color: #FFFFFF;
}

/* =========================================
   SORONTIL BRAND BACKGROUND + CYBER GRID
   ========================================= */
.bg{ 
  position: fixed; 
  inset: 0; 
  pointer-events: none; 
  z-index: -1; 
  background: linear-gradient(180deg, #04060D 0%, #050816 45%, #04050B 100%);
}

/* Technical Cyber Grid overlay */
.bg__grid {
  position: absolute;
  top: -50%; bottom: -50%; left: -50%; right: -50%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  z-index: 4; 
}

/* Restored original blue static blobs */
.bg__blob{
  position:absolute; 
  border-radius: 50%;
  mix-blend-mode: screen;
  z-index: 2;
}

.bg__blob--1{ 
  width: 800px; height: 800px;
  left: -200px; top: -200px; 
  background: radial-gradient(circle, rgba(46,123,255,.25) 0%, transparent 70%); 
}

.bg__blob--2{ 
  width: 700px; height: 700px;
  right: -100px; top: 5%; 
  background: radial-gradient(circle, rgba(106,166,255,.20) 0%, transparent 70%); 
}

.bg__blob--3{ 
  width: 900px; height: 900px;
  left: 15%; bottom: -300px; 
  background: radial-gradient(circle, rgba(46,123,255,.15) 0%, transparent 70%); 
}

.bg__blob--4{ display: none; } 

.bg__grain{
  position:absolute; inset:0;
  background-image: url("assets/grain.png");
  opacity: .12;
  mix-blend-mode: overlay;
  z-index: 3;
}
/* ========================================= */

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .65s var(--ease),
    transform .65s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE SPECIFIC FIXES & PROPORTIONS --- */
@media (max-width: 980px){
  .header__inner { position: relative; justify-content: center; min-height: 44px; }
  .header__cta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .header__cta .btn { display: none; }
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 24px; }
  .text-rotator { justify-items: center; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-items: center; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .steps{ grid-template-columns: 1fr; }
  .cardsGrid{ grid-template-columns: repeat(2, 1fr); }
  .cta{ grid-template-columns: 1fr; padding: 40px 32px; }
  .nav{ display:none; }
  .hamburger{ display:inline-flex; }
  
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scrollFade { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 560px){
  .section{ padding: 70px 0; }
  .hero{ padding-top: 32px; }
  :root { --h1: 2.15rem; }
  .hero__subtitle { font-size: 1rem; line-height: 1.5; margin-bottom: 24px; }
  .hero__trust { font-size: 0.85rem; margin-top: 32px; }
  .badge { font-size: 0.75rem; padding: 6px 10px; }
  .hero__actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cardsGrid{ grid-template-columns: 1fr; }
  .cta { padding: 28px 20px; }
  .form { padding: 24px 20px; }
  .footer__inner{ grid-template-columns: 1fr; }
  .footer__bottom{ flex-direction: column; gap: 10px; align-items:flex-start; }
}

/* Button glow pulse */
@keyframes glowPulse {
  0%   { box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 10px 26px rgba(46,123,255,.28); }
  50%  { box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 16px 44px rgba(46,123,255,.46); }
  100% { box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 10px 26px rgba(46,123,255,.28); }
}
.btn--primary{
  animation: glowPulse 2.6s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce){
  .btn--primary{ animation: none; }
}

/* Navbar shrink */
.header{
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.header__inner{
  transition: padding .25s var(--ease);
}
.brand__logo{
  transition: height .25s var(--ease), opacity .25s var(--ease);
}
.header.is-scrolled{
  background: linear-gradient(180deg, rgba(3,6,16,.92), rgba(5,8,18,.55));
  border-bottom-color: rgba(255,255,255,.10);
}
.header.is-scrolled .header__inner{ padding: 10px 0; }
.header.is-scrolled .brand__logo{ height: 28px; opacity: .98; }

/* Scroll fade */
.scrollFade{
  opacity: var(--sf, 1);
  transform: translateY(calc((1 - var(--sf, 1)) * 10px));
  transition: opacity .08s linear, transform .08s linear;
}
@media (prefers-reduced-motion: reduce){
  .scrollFade{ transition: none; transform: none; }
}

/* Integration Lottie */
#integrationLottie { width: 100%; height: 100%; }
#integrationLottie svg { width: 100%; height: 100%; }