/* ====================================================================
   Noti Inbox Tools — Landing Page Stylesheet
   Glassmorphism + Smooth Animation — giữ nguyên màu gốc
   ==================================================================== */

/* ==================== VARIABLES (giữ nguyên bản gốc) ==================== */
:root {
  --blue: #0061ff;
  --blue2: #00c2ff;
  --blue-soft: rgba(0, 97, 255, .06);
  --blue-mid: rgba(0, 97, 255, .12);
  --green: #10b981;
  --text: #0c1222;
  --text2: #3e4c63;
  --text3: #8898ae;
  --bg: #f0f4fa;
  --bg-card: #ffffff;
  --border: #e4e9f1;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 20, 60, .04);
  --shadow-md: 0 4px 12px rgba(0, 20, 60, .07);
  --shadow-lg: 0 12px 32px rgba(0, 20, 60, .08);
  --gradient-hero: linear-gradient(135deg, #0051d4 0%, #0073ff 40%, #00aaff 80%, #00d4ff 100%);
  --gradient-blue: linear-gradient(135deg, var(--blue), var(--blue2));
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ==================== LAYOUT ==================== */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ==================== SHARED: SECTION HEADER ==================== */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 50px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 12px;
}
.section-label svg { width: 14px; height: 14px; }
.section-title {
  font-size: 32px; font-weight: 900; color: var(--text);
  letter-spacing: -.5px; margin-bottom: 12px;
}
.section-desc {
  font-size: 15px; color: var(--text3); max-width: 560px; margin-bottom: 48px;
}

/* ==================== SHARED: BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  cursor: pointer; border: none; transition: all .25s cubic-bezier(.4, 0, .2, 1);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
  opacity: 0; transition: opacity .25s;
}
.btn:hover::after { opacity: 1; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-white {
  background: #fff; color: var(--blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, .16); }

.btn-glass {
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-blue); color: #fff;
  box-shadow: 0 3px 12px rgba(0, 97, 255, .2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 97, 255, .3); }

.btn-pro {
  background: var(--gradient-blue); color: #fff;
  box-shadow: 0 4px 20px rgba(0, 97, 255, .25);
}
.btn-pro:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 97, 255, .35); }

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 20px rgba(0, 20, 60, .06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 32px; }
.nav-logo span { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }

/* ==================== HERO ==================== */
.hero {
  position: relative; overflow: hidden; padding: 140px 0 80px;
  background: var(--gradient-hero);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255, 255, 255, .15), transparent 50%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(0, 210, 255, .15), transparent 50%);
}

/* Floating glass orbs */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(40px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hero-orb-1 { width: 300px; height: 300px; top: -60px; right: -80px; animation: orbFloat1 8s ease-in-out infinite; }
.hero-orb-2 { width: 200px; height: 200px; bottom: -40px; left: -60px; animation: orbFloat2 10s ease-in-out infinite; }
.hero-orb-3 { width: 120px; height: 120px; top: 40%; left: 60%; animation: orbFloat3 6s ease-in-out infinite; }

.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .9);
  margin-bottom: 20px;
  animation: fadeInUp .6s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7;
  box-shadow: 0 0 8px rgba(110, 231, 183, .6);
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: 44px; font-weight: 900; color: #fff; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  animation: fadeInUp .6s ease .1s both;
}
.hero h1 span { color: #b4e4ff; }
.hero-desc {
  font-size: 17px; color: rgba(255, 255, 255, .82); line-height: 1.65;
  max-width: 520px; margin-bottom: 20px;
  animation: fadeInUp .6s ease .2s both;
}
.hero-desc a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hero-desc a:hover { text-decoration-color: rgba(255,255,255,.5); }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeInUp .6s ease .3s both; }
.hero-visual {
  flex-shrink: 0; width: 340px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .1);
  background: var(--bg-card);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  animation: float 4s ease-in-out infinite;
}

/* ==================== FEATURES ==================== */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 20, 60, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  position: relative; overflow: hidden;
  opacity: 0; transform: translateY(20px);
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 40px rgba(0, 20, 60, .1), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0, 97, 255, .2);
  transition: transform .25s;
}
.feature-card:hover .feature-icon { transform: scale(1.05) rotate(-2deg); }
.feature-icon svg { width: 24px; height: 24px; color: #fff; }
.feature-card h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.55; }

/* ==================== PRICING / FREE vs PRO ==================== */
.pricing { padding: 80px 0; background: var(--gradient-hero); position: relative; overflow: hidden; }
.pricing .section-label { background: rgba(255,255,255,.14); color: #fff; }
.pricing .section-title { color: #fff; }
.pricing .section-desc { color: rgba(255,255,255,.7); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 800px; margin: 0 auto;
}

.pricing-card {
  border-radius: var(--radius); padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

/* Free card — glass */
.pricing-card.free {
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.pricing-card.free:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* Pro card — glass nổi bật */
.pricing-card.pro {
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, .35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.pricing-card.pro:hover {
  background: rgba(255, 255, 255, .28);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.pricing-badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 16px;
}
.pricing-card.free .pricing-badge {
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .2);
}
.pricing-card.pro .pricing-badge {
  background: rgba(255, 255, 255, .2); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}

.pricing-card .price {
  font-size: 36px; font-weight: 900; color: #fff;
  margin-bottom: 4px; line-height: 1;
}
.pricing-card .price-sub {
  font-size: 13px; color: rgba(255,255,255,.6);
  margin-bottom: 24px;
}

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg { width: 18px; height: 18px; flex-shrink: 0; }
.pricing-features li .check { color: #6ee7b7; }
.pricing-features li .cross { color: rgba(255,255,255,.25); }
.pricing-features li.disabled { color: rgba(255,255,255,.35); }

.pricing-card .btn { width: 100%; justify-content: center; }

/* ==================== HOW IT WORKS ==================== */
.how { padding: 80px 0; background: var(--bg); }
.steps { display: flex; gap: 24px; counter-reset: step; }
.step {
  flex: 1; position: relative; padding: 24px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--radius); counter-increment: step;
  box-shadow: 0 2px 16px rgba(0, 20, 60, .04), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 12px 40px rgba(0, 20, 60, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.step::before {
  content: counter(step); position: absolute; top: -14px; left: 20px;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gradient-blue); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 97, 255, .2);
}
.step svg { width: 20px; height: 20px; color: var(--blue); }
.step h4 { font-size: 14px; font-weight: 800; color: var(--text); margin: 8px 0 6px; }
.step p { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ==================== SAFETY ==================== */
.safety { padding: 80px 0; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safety-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 20, 60, .03), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.safety-item:hover {
  background: rgba(255, 255, 255, .8);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 20, 60, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.safety-item svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.safety-item p { font-size: 13px; color: var(--text2); line-height: 1.55; }
.safety-item strong { color: var(--text); }

/* ==================== FAQ ==================== */
.faq { padding: 80px 0; background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid rgba(255, 255, 255, .65); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 20, 60, .03), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.faq-item:hover {
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 6px 24px rgba(0, 20, 60, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.faq-item.active {
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 32px rgba(0, 20, 60, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; gap: 12px;
  background: none; border: none; width: 100%; text-align: left;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--text);
  transition: color .2s;
}
.faq-question:hover { color: var(--blue); }
.faq-item.active .faq-question { color: var(--blue); }

.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--text3); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.active .faq-chevron { transform: rotate(180deg); color: var(--blue); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 13px; color: var(--text2); line-height: 1.7;
}

/* ==================== CTA ==================== */
.cta {
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
  background: var(--gradient-hero);
}
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(255, 255, 255, .12), transparent 50%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(0, 210, 255, .15), transparent 50%);
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: 36px; font-weight: 900; color: #fff; margin-bottom: 12px; letter-spacing: -.5px; }
.cta p {
  font-size: 16px; color: rgba(255, 255, 255, .8); margin-bottom: 32px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==================== FOOTER ==================== */
.footer {
  padding: 32px 0; text-align: center;
  border-top: 1px solid var(--border); background: var(--bg-card);
}
.footer-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px;
}
.footer-logo img { height: 28px; }
.footer-logo span { font-size: 14px; font-weight: 800; color: var(--text); }
.footer p { font-size: 12px; color: var(--text3); }
.footer a { color: var(--blue); font-weight: 600; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, 30px); }
  66% { transform: translate(15px, -20px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -25px); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 20px) scale(1.1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: all .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { width: 280px; transform: none; animation: none; }
  .hero-orb { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .steps { flex-direction: column; }
  .safety-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .cta h2 { font-size: 26px; }
  .btn { padding: 12px 22px; font-size: 14px; }
}
