/* ============================================================
   AuraSentiment — Premium SaaS AI Theme
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Base palette */
  --bg:        hsl(225, 40%, 5%);
  --bg-2:      hsl(228, 38%, 8%);
  --bg-3:      hsl(228, 35%, 11%);
  --surface:   hsla(228, 40%, 14%, 0.6);
  --border:    hsla(228, 100%, 80%, 0.07);
  --border-2:  hsla(228, 100%, 80%, 0.12);

  /* Text */
  --txt:       hsl(220, 30%, 96%);
  --txt-2:     hsl(220, 20%, 65%);
  --txt-3:     hsl(220, 15%, 45%);

  /* Brand gradient */
  --grad:      linear-gradient(135deg, hsl(248,97%,65%) 0%, hsl(270,80%,58%) 100%);
  --grad-soft: linear-gradient(135deg, hsla(248,97%,65%,.15) 0%, hsla(270,80%,58%,.05) 100%);

  /* Accent */
  --accent:    hsl(248, 97%, 65%);
  --accent-2:  hsl(270, 80%, 60%);

  /* Sentiment */
  --pos:       hsl(142, 70%, 48%);
  --pos-bg:    hsla(142, 70%, 48%, .12);
  --pos-bdr:   hsla(142, 70%, 48%, .3);

  --neu:       hsl(35, 93%, 54%);
  --neu-bg:    hsla(35, 93%, 54%, .12);
  --neu-bdr:   hsla(35, 93%, 54%, .3);

  --neg:       hsl(350, 88%, 62%);
  --neg-bg:    hsla(350, 88%, 62%, .12);
  --neg-bdr:   hsla(350, 88%, 62%, .3);

  /* Radii & shadows */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 100px;

  --shadow-glow: 0 0 40px -10px hsla(248,97%,65%,.25);
  --shadow-card: 0 20px 60px -15px hsla(225,40%,2%,.7);
  --transition:  all .35s cubic-bezier(.16,1,.3,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at 50% 30%, hsl(248,60%,12%) 0%, hsl(225,40%,4%) 70%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .7s ease, visibility .7s ease;
}
#splash-screen.fade-out { opacity: 0; visibility: hidden; }

#particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  text-align: center; padding: 24px;
}

/* Animated Logo Rings */
.splash-logo {
  position: relative; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.logo-ring {
  position: absolute; border-radius: 50%; border: 2px solid transparent;
  animation: spinRing 3s linear infinite;
}
.ring-outer {
  width: 120px; height: 120px;
  border-top-color: hsl(248,97%,65%);
  border-right-color: hsla(248,97%,65%,.2);
  animation-duration: 2.5s;
}
.ring-mid {
  width: 90px; height: 90px;
  border-top-color: hsl(270,80%,60%);
  border-left-color: hsla(270,80%,60%,.3);
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.ring-inner {
  width: 62px; height: 62px;
  border-top-color: hsl(300,70%,65%);
  border-right-color: hsla(300,70%,65%,.2);
  animation-duration: 1.2s;
}
.logo-core {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  box-shadow: 0 0 30px hsla(248,97%,65%,.5);
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 30px hsla(248,97%,65%,.4); }
  50%      { box-shadow: 0 0 60px hsla(248,97%,65%,.8); }
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, hsl(248,97%,80%) 50%, hsl(270,80%,75%) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.splash-subtitle {
  font-size: 1rem; color: var(--txt-2); letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500;
}

/* Loader Bar */
.splash-loader { width: 260px; display: flex; flex-direction: column; gap: 10px; }
.loader-track {
  width: 100%; height: 4px; border-radius: var(--r-pill);
  background: hsla(228,100%,80%,.08);
  overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0%; border-radius: var(--r-pill);
  background: var(--grad);
  transition: width .3s ease;
  box-shadow: 0 0 12px hsla(248,97%,65%,.6);
}
.loader-label { font-size: .78rem; color: var(--txt-3); text-align: center; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 9990;
  background: hsla(350,88%,62%,.12);
  border: 1px solid var(--neg-bdr);
  backdrop-filter: blur(16px);
  color: var(--neg);
  padding: 14px 24px; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600;
  animation: toastIn .4s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.toast.hidden { display: none !important; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast-icon { font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 24px;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
}
.navbar.scrolled {
  background: hsla(225,40%,5%,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; height: 70px; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: #fff;
  box-shadow: 0 0 16px hsla(248,97%,65%,.4);
}
.nav-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.nav-links {
  display: flex; list-style: none; gap: 8px; margin-left: auto;
}
.nav-links a {
  padding: 6px 14px; border-radius: var(--r-pill); font-size: .88rem; font-weight: 500;
  color: var(--txt-2); transition: var(--transition);
}
.nav-links a:hover { color: var(--txt); background: var(--border); }
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--r-pill);
  background: var(--grad); color: #fff;
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 4px 20px hsla(248,97%,65%,.3);
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 28px hsla(248,97%,65%,.4); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--txt); transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 0 16px; border-top: 1px solid var(--border);
  background: hsla(225,40%,5%,.95); backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 24px; font-size: .95rem; font-weight: 500;
  color: var(--txt-2); transition: var(--transition);
}
.mobile-link:hover { color: var(--txt); background: var(--border); }
.mobile-cta {
  margin: 8px 24px 0; padding: 12px 24px; border-radius: var(--r-md);
  background: var(--grad); color: #fff !important; font-weight: 700;
  text-align: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(hsla(228,100%,80%,.035) 1px, transparent 1px),
    linear-gradient(90deg, hsla(228,100%,80%,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Blobs */
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .3;
}
.b1 {
  width: 600px; height: 600px; top: -100px; left: -150px;
  background: hsl(248,97%,65%);
  animation: driftBlob 18s ease-in-out infinite alternate;
}
.b2 {
  width: 700px; height: 700px; bottom: -150px; right: -200px;
  background: hsl(270,80%,58%);
  animation: driftBlob 22s ease-in-out infinite alternate-reverse;
}
.b3 {
  width: 400px; height: 400px; top: 50%; left: 55%;
  background: hsl(300,70%,60%); opacity: .15;
  animation: driftBlob 14s ease-in-out infinite alternate;
}
@keyframes driftBlob {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(50px,-40px) scale(1.08); }
  100% { transform: translate(-30px,30px) scale(.95); }
}

.hero-container {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--r-pill);
  background: hsla(248,97%,65%,.1);
  border: 1px solid hsla(248,97%,65%,.25);
  font-size: .82rem; font-weight: 600; color: hsl(248,97%,75%);
  width: fit-content;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(248,97%,65%);
  box-shadow: 0 0 8px hsl(248,97%,65%);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px hsl(248,97%,65%); }
  50%      { box-shadow: 0 0 18px hsl(248,97%,65%); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -1px;
  color: var(--txt);
}
.title-gradient {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: var(--txt-2); max-width: 580px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r-pill);
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 30px hsla(248,97%,65%,.35);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-hero-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, hsla(255,255%,255%,.15) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px hsla(248,97%,65%,.5); }
.btn-hero-primary:hover::after { opacity: 1; }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r-pill);
  background: hsla(228,100%,80%,.05);
  border: 1px solid var(--border-2);
  color: var(--txt); font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  transition: var(--transition);
}
.btn-hero-secondary:hover {
  background: hsla(228,100%,80%,.1);
  border-color: hsla(228,100%,80%,.2);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  width: fit-content;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-lbl { font-size: .75rem; color: var(--txt-3); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border-2); }

/* Floating preview cards */
.hero-float-cards {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  z-index: 2;
  display: flex; flex-direction: column; gap: 16px;
}
.float-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-lg);
  background: var(--surface); backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  font-size: .85rem;
  animation: floatCard 4s ease-in-out infinite alternate;
  box-shadow: var(--shadow-card);
}
.float-card:nth-child(2) { animation-delay: 1.5s; }
.float-card:nth-child(3) { animation-delay: 3s; }
@keyframes floatCard {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}
.float-card > i { font-size: 1.5rem; }
.fc-label { font-weight: 700; font-size: .82rem; }
.fc-val   { font-size: .75rem; color: var(--txt-3); }
.fc-pos { border-color: var(--pos-bdr); }
.fc-pos > i { color: var(--pos); }
.fc-neg { border-color: var(--neg-bdr); }
.fc-neg > i { color: var(--neg); }
.fc-neu { border-color: var(--neu-bdr); }
.fc-neu > i { color: var(--neu); }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-container {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.section-tag {
  display: inline-block; padding: 5px 16px; border-radius: var(--r-pill);
  background: hsla(248,97%,65%,.1); border: 1px solid hsla(248,97%,65%,.2);
  font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: hsl(248,97%,75%); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.5px;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem; color: var(--txt-2); max-width: 560px; margin-bottom: 56px;
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: 100px 0; background: var(--bg-2); position: relative; overflow: hidden;
}
.features::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px; backdrop-filter: blur(12px);
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-xl);
  background: var(--grad-soft); opacity: 0; transition: opacity .4s;
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::after { opacity: 1; }

.feat-icon-wrap {
  width: 50px; height: 50px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 18px; position: relative; z-index: 1;
}
.feat-blue   { background: hsla(220,97%,65%,.12); color: hsl(220,97%,65%); }
.feat-purple { background: hsla(270,80%,60%,.12); color: hsl(270,80%,70%); }
.feat-cyan   { background: hsla(190,90%,50%,.12); color: hsl(190,90%,60%); }
.feat-green  { background: hsla(142,70%,48%,.12); color: hsl(142,70%,55%); }
.feat-orange { background: hsla(35,93%,54%,.12);  color: hsl(35,93%,60%); }
.feat-pink   { background: hsla(320,80%,60%,.12); color: hsl(320,80%,70%); }

.feature-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.feature-card p { font-size: .9rem; color: var(--txt-2); line-height: 1.6; position: relative; z-index: 1; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { padding: 100px 0; }

.timeline {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  max-width: 700px;
}
.timeline-item {
  display: flex; gap: 24px; align-items: flex-start; width: 100%;
}
.tl-icon-wrap {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.tl-blue   { background: hsla(220,97%,65%,.12); color: hsl(220,97%,65%); border: 1px solid hsla(220,97%,65%,.25); }
.tl-purple { background: hsla(270,80%,60%,.12); color: hsl(270,80%,70%); border: 1px solid hsla(270,80%,60%,.25); }
.tl-cyan   { background: hsla(190,90%,50%,.12); color: hsl(190,90%,60%); border: 1px solid hsla(190,90%,50%,.25); }
.tl-green  { background: hsla(142,70%,48%,.12); color: hsl(142,70%,55%); border: 1px solid hsla(142,70%,48%,.25); }
.tl-orange { background: hsla(35,93%,54%,.12);  color: hsl(35,93%,60%);  border: 1px solid hsla(35,93%,54%,.25); }

.tl-content { padding-bottom: 8px; }
.tl-step { font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.tl-content h3 { font-family: var(--font-display); font-weight: 700; margin: 4px 0 8px; }
.tl-content p  { font-size: .9rem; color: var(--txt-2); }

.tl-connector {
  width: 1px; min-height: 40px; background: var(--border-2);
  margin-left: 26px; margin-top: 0;
}

/* ============================================================
   ANALYZER SECTION
   ============================================================ */
.analyzer-section {
  padding: 100px 0; background: var(--bg-2); position: relative; overflow: hidden;
}
.analyzer-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.analyzer-blobs { position: absolute; inset: 0; pointer-events: none; }
.ab1 {
  position: absolute; width: 500px; height: 500px;
  top: -200px; right: -200px; border-radius: 50%;
  background: hsla(248,97%,65%,.06); filter: blur(60px);
}
.ab2 {
  position: absolute; width: 400px; height: 400px;
  bottom: -150px; left: -150px; border-radius: 50%;
  background: hsla(270,80%,60%,.06); filter: blur(60px);
}

.analyzer-card {
  max-width: 720px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 32px; backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card); position: relative; z-index: 2;
}
.analyzer-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.analyzer-label {
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: 1px; color: var(--txt-2);
  display: flex; align-items: center; gap: 8px;
}
.analyzer-label i { color: var(--accent); }
.char-badge {
  font-size: .78rem; font-weight: 600; color: var(--txt-3);
  padding: 3px 10px; border-radius: var(--r-pill);
  background: hsla(228,100%,80%,.05); border: 1px solid var(--border);
}

textarea {
  display: block; width: 100%; min-height: 150px;
  background: hsla(225,40%,4%,.5);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  color: var(--txt); font-family: var(--font-body); font-size: 1rem;
  padding: 16px; resize: vertical; outline: none;
  transition: var(--transition);
}
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsla(248,97%,65%,.12);
}
textarea::placeholder { color: var(--txt-3); }

.analyze-btn {
  width: 100%; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; border-radius: var(--r-lg); border: none; cursor: pointer;
  background: var(--grad); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 24px hsla(248,97%,65%,.3);
  transition: var(--transition); position: relative; overflow: hidden;
}
.analyze-btn::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: hsla(255,255%,255%,.2);
  transform: translate(-50%,-50%);
  transition: width .5s ease, height .5s ease;
}
.analyze-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px hsla(248,97%,65%,.45); }
.analyze-btn:active::before { width: 300px; height: 300px; opacity: 0; }
.analyze-btn:disabled {
  background: hsla(228,100%,80%,.05); color: var(--txt-3);
  cursor: not-allowed; transform: none; box-shadow: none;
  border: 1px solid var(--border);
}
.btn-icon { font-size: .95rem; }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid hsla(255,255%,255%,.2);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Result Card ─── */
.result-card {
  max-width: 720px; margin-top: 24px; position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 30px; backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  animation: slideUp .55s cubic-bezier(.16,1,.3,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-glow {
  position: absolute; inset: -1px; border-radius: var(--r-xl);
  pointer-events: none; opacity: .5;
  transition: box-shadow .5s ease;
}

.result-top {
  display: flex; align-items: center; gap: 20px; margin-bottom: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.result-emoji { font-size: 3rem; line-height: 1; }
.result-meta { display: flex; flex-direction: column; gap: 6px; }
.result-label-caption { font-size: .75rem; color: var(--txt-3); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Sentiment Badges */
.sentiment-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  width: fit-content;
}
.sentiment-badge.positive { background: var(--pos-bg); border: 1px solid var(--pos-bdr); color: var(--pos); }
.sentiment-badge.neutral  { background: var(--neu-bg); border: 1px solid var(--neu-bdr); color: var(--neu); }
.sentiment-badge.negative { background: var(--neg-bg); border: 1px solid var(--neg-bdr); color: var(--neg); }

/* Result glow states */
.result-card.glow-pos { box-shadow: 0 0 40px -5px hsla(142,70%,48%,.2), var(--shadow-card); }
.result-card.glow-neu { box-shadow: 0 0 40px -5px hsla(35,93%,54%,.2),  var(--shadow-card); }
.result-card.glow-neg { box-shadow: 0 0 40px -5px hsla(350,88%,62%,.2), var(--shadow-card); }

.result-text-preview {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: var(--r-md);
  background: hsla(225,40%,4%,.4); margin-bottom: 20px;
}
.result-text-preview .fa-quote-left { color: var(--txt-3); margin-top: 3px; }
.result-text-preview p {
  font-size: .95rem; color: var(--txt-2); font-style: italic; word-break: break-word;
}

/* Confidence */
.confidence-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.conf-header { display: flex; justify-content: space-between; align-items: center; }
.conf-label { font-size: .82rem; font-weight: 600; color: var(--txt-2); display: flex; align-items: center; gap: 7px; }
.conf-label i { color: var(--accent); }
.conf-value {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.conf-track {
  width: 100%; height: 8px; border-radius: var(--r-pill);
  background: hsla(225,40%,4%,.5); overflow: hidden;
  border: 1px solid var(--border);
}
.conf-fill {
  height: 100%; border-radius: var(--r-pill); width: 0%;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.conf-fill.positive { background: linear-gradient(90deg, hsl(142,70%,40%), var(--pos)); box-shadow: 0 0 14px hsla(142,70%,48%,.4); }
.conf-fill.neutral  { background: linear-gradient(90deg, hsl(35,93%,44%),  var(--neu)); box-shadow: 0 0 14px hsla(35,93%,54%,.4); }
.conf-fill.negative { background: linear-gradient(90deg, hsl(350,88%,50%), var(--neg)); box-shadow: 0 0 14px hsla(350,88%,62%,.4); }

.reset-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: hsla(228,100%,80%,.06); border: 1px solid var(--border-2);
  color: var(--txt-2); font-family: var(--font-body); font-size: .88rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
}
.reset-btn:hover { background: hsla(228,100%,80%,.1); color: var(--txt); transform: translateY(-1px); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 100px 0; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.about-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); transition: var(--transition);
}
.about-card:hover {
  border-color: var(--border-2); transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.about-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--grad-soft); border: 1px solid hsla(248,97%,65%,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: hsl(248,97%,75%);
}
.about-info { display: flex; flex-direction: column; gap: 3px; }
.about-key { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); }
.about-val { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--txt); }

/* ============================================================
   DEVELOPER SECTION
   ============================================================ */
.dev-section {
  padding: 80px 0; background: var(--bg-2); position: relative; overflow: hidden;
}
.dev-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.dev-inner { display: flex; justify-content: center; }
.dev-card {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(16px); max-width: 700px; width: 100%;
  transition: var(--transition);
}
.dev-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-card); }
.dev-avatar {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff;
  box-shadow: 0 0 30px hsla(248,97%,65%,.35);
}
.dev-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px; display: block;
}
.dev-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 4px;
}
.dev-role { font-size: .85rem; color: var(--txt-2); margin-bottom: 14px; font-weight: 500; }
.dev-desc { font-size: .9rem; color: var(--txt-2); line-height: 1.65; margin-bottom: 18px; }
.dev-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-tech-tags span {
  padding: 4px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600;
  background: hsla(248,97%,65%,.1); border: 1px solid hsla(248,97%,65%,.2);
  color: hsl(248,97%,75%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 24px; border-top: 1px solid var(--border);
}
.footer-container {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.footer-logo {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #fff;
}
.footer-tagline { font-size: .85rem; color: var(--txt-2); }
.footer-copy { font-size: .78rem; color: var(--txt-3); }
.footer-copy strong { color: hsl(248,97%,75%); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 110px 24px 60px; }
  .hero-float-cards { display: none; }
  .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .hero-stats { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .btn-hero-primary, .btn-hero-secondary { justify-content: center; }
  .dev-card { flex-direction: column; align-items: center; text-align: center; }
  .dev-tech-tags { justify-content: center; }
  .tl-connector { margin-left: 26px; }
}

@media (max-width: 480px) {
  .analyzer-card { padding: 20px 16px; }
  .result-card { padding: 22px 16px; }
  .hero-stats { gap: 14px; padding: 14px 16px; }
  .stat-num { font-size: 1.2rem; }
}
