/* ============================================================
   PlannedReady — Landing page styles
   ============================================================ */

/* ---------- Ambient background ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-aurora .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 22s ease-in-out infinite;
}
.bg-aurora .b1 { width: 50vw; height: 50vw; left: -12vw; top: -10vw; background: radial-gradient(circle, rgba(34,211,238,.55), transparent 65%); }
.bg-aurora .b2 { width: 46vw; height: 46vw; right: -10vw; top: 8vw; background: radial-gradient(circle, rgba(99,102,241,.5), transparent 65%); animation-delay: -7s; }
.bg-aurora .b3 { width: 40vw; height: 40vw; left: 24vw; bottom: -14vw; background: radial-gradient(circle, rgba(45,212,191,.4), transparent 65%); animation-delay: -13s; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(150,178,235,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(150,178,235,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(4vw,3vw) scale(1.08); }
  66% { transform: translate(-3vw,2vw) scale(0.96); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,11,22,.72); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding-block: 12px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .92rem; color: var(--text-muted); transition: color .25s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.04);
  font-size: .82rem; font-weight: 600; color: var(--text-soft); transition: .25s;
}
.lang-toggle:hover { background: rgba(255,255,255,.08); color: var(--text); }
.lang-toggle svg { width: 15px; height: 15px; opacity: .8; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 150px; padding-bottom: 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 22px 0 0; }
.hero h1 span { display: block; }
.hero h1 .l1 { color: var(--text); }
.hero h1 .l2 { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .l3 { color: var(--calm); }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 33ch; margin-top: 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 22px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .s { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--text-soft); }
.hero-stats .s svg { width: 18px; height: 18px; color: var(--aqua); flex: none; }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; perspective: 1600px; }
.phone-glow {
  position: absolute; width: 78%; height: 78%; top: 8%; left: 11%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 60%); filter: blur(50px); z-index: -1;
}
.phone {
  width: 300px; max-width: 80vw; aspect-ratio: 300/620;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #20305c, #0b1020);
  border: 1px solid rgba(160,185,240,.18);
  box-shadow: var(--shadow-float), 0 30px 80px -30px #000;
  transform: rotateY(-16deg) rotateX(5deg) rotateZ(1deg);
  transition: transform .6s var(--ease);
  animation: floaty 7s ease-in-out infinite;
}
.phone:hover { transform: rotateY(-6deg) rotateX(2deg); }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.phone-screen {
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #0b1430, #0a1022);
  display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 86px; height: 22px; background: #05070f; border-radius: 14px; z-index: 5; }
.ps-head { padding: 30px 18px 14px; }
.ps-hello { font-size: .72rem; color: var(--text-muted); }
.ps-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 2px; }
.ps-ring { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.ring-svg { width: 78px; height: 78px; flex: none; }
.ps-ring .meta .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.ps-ring .meta .lbl { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; }
.ps-tip {
  margin: 4px 18px; padding: 10px 12px; border-radius: 12px; font-size: .72rem; color: var(--text-soft);
  background: linear-gradient(120deg, rgba(34,211,238,.12), rgba(99,102,241,.12)); border: 1px solid var(--glass-border);
  display: flex; gap: 8px; align-items: flex-start;
}
.ps-tip svg { width: 14px; height: 14px; color: var(--aqua); flex: none; margin-top: 1px; }
.ps-circle-lbl { padding: 14px 18px 6px; font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; }
.ps-mini-map { flex: 1; position: relative; margin: 0 8px 8px; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 14px 0 16px; }
.sec-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Trusted Circle ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.circle-map-wrap {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 45%, rgba(34,211,238,.1), transparent 60%);
  border: 1px solid var(--glass-border); overflow: hidden;
}
#circleMap { width: 100%; height: 100%; }
.map-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .76rem; color: var(--text-faint); }
.trust-feats { display: flex; flex-direction: column; gap: 16px; }
.trust-feat { display: flex; gap: 16px; padding: 20px; }
.trust-feat .ic {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--grad-brand-soft); border: 1px solid var(--glass-border);
}
.trust-feat .ic svg { width: 22px; height: 22px; color: var(--aqua); }
.trust-feat h4 { font-size: 1.05rem; margin-bottom: 4px; }
.trust-feat p { font-size: .92rem; color: var(--text-muted); }

/* ---------- Feature grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card { padding: 26px 22px; transition: transform .4s var(--ease), border-color .4s; position: relative; overflow: hidden; }
.feat-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.feat-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.1), transparent 70%);
}
.feat-card:hover::before { opacity: 1; }
.feat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-brand-soft); border: 1px solid var(--glass-border); }
.feat-ic svg { width: 23px; height: 23px; color: var(--aqua); }
.feat-card h4 { font-size: 1.08rem; margin-bottom: 7px; }
.feat-card p { font-size: .9rem; color: var(--text-muted); }

/* ---------- Score section ---------- */
.score-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; }
.crest-card { padding: 36px; text-align: center; position: relative; overflow: hidden; }
.crest-ring { width: 200px; height: 200px; margin: 6px auto 18px; position: relative; }
.crest-ring .num { position: absolute; inset: 0; display: grid; place-content: center; }
.crest-ring .num b { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.crest-ring .num small { color: var(--text-muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.crest-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: var(--r-pill);
  background: var(--grad-calm); color: #2b1a05; font-weight: 700; font-size: .92rem; }
.score-bars { display: flex; flex-direction: column; gap: 20px; }
.score-bar .top { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 8px; }
.score-bar .top b { color: var(--text); }
.score-bar .top span { color: var(--text-muted); }
.bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); width: 0; transition: width 1.4s var(--ease); }
.badges-note { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: .92rem; }
.badges-note .ring-dots { display: flex; gap: 4px; }
.badges-note .ring-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); opacity: .9; }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.ai-chat { padding: 26px; }
.ai-chat .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ai-ava { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: var(--glow-aqua); }
.ai-ava svg { width: 20px; height: 20px; color: #04121b; }
.ai-bubble { background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); border-radius: 4px 16px 16px 16px;
  padding: 14px 16px; font-size: .95rem; color: var(--text-soft); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ai-pill { padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.03); font-size: .85rem; color: var(--text-soft); transition: .25s; }
.ai-pill:hover { background: var(--grad-brand-soft); color: var(--text); transform: translateY(-2px); }
.ai-typing { font-size: .8rem; color: var(--text-faint); margin-top: 10px; min-height: 1em; }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.sec-card { padding: 26px 22px; }
.sec-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); }
.sec-card .ic svg { width: 22px; height: 22px; color: var(--ready); }
.sec-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.sec-card p { font-size: .88rem; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(44px, 7vw, 80px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(34,211,238,.18), transparent 60%),
              radial-gradient(ellipse 60% 120% at 50% 100%, rgba(99,102,241,.18), transparent 60%); }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; margin: 0 auto 16px; }
.cta-band p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.cta-note { margin-top: 18px; font-size: .85rem; color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 46px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .tag { color: var(--text-muted); font-size: .95rem; margin-top: 12px; }
.footer .rights { color: var(--text-faint); font-size: .82rem; }
.footer a.demo-link { color: var(--aqua); font-weight: 600; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .trust-grid, .score-grid, .ai-grid { grid-template-columns: 1fr; }
  .phone-stage { margin-top: 24px; }
  .phone { transform: none; animation: floaty 7s ease-in-out infinite; }
  .feat-grid, .sec-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .hero-sub { max-width: none; }
}
@media (max-width: 540px) {
  .feat-grid, .sec-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
