/* =============================================
   STARLINGS — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent:        #7B5CF6;
  --accent-dark:   #5B3DB0;
  --accent-soft:   #C4B5FD;
  --accent-wash:   #F0EBFF;
  --accent-glow:   rgba(123, 92, 246, 0.18);

  --bg-page:       #F8F6FF;
  --bg-white:      #FFFFFF;
  --bg-wash:       #F0EBFF;

  --text-primary:  #1A1035;
  --text-body:     #3D3558;
  --text-muted:    #7B72A8;
  --text-light:    #A89FCC;

  --positive:      #22C55E;
  --border:        #E8E2FA;

  --radius-sm:     12px;
  --radius-md:     20px;
  --radius-lg:     28px;
  --radius-xl:     40px;
  --radius-pill:   999px;

  --shadow-card:   0 4px 24px rgba(123, 92, 246, 0.10);
  --shadow-hover:  0 16px 48px rgba(123, 92, 246, 0.20);
  --shadow-btn:    0 8px 24px rgba(123, 92, 246, 0.32);

  --transition:    0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.75;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(248, 246, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: background var(--transition-fast), transform var(--transition), box-shadow var(--transition-fast);
  text-decoration: none;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn);
  opacity: 1 !important;
}

/* --- Hero --- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  background: linear-gradient(150deg, #EDE9FE 0%, #F5F2FF 60%, #F8F6FF 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(167, 139, 245, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 92, 246, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(123, 92, 246, 0.12);
  border: 1px solid rgba(123, 92, 246, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-body);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition), box-shadow var(--transition-fast);
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn);
}

.btn-primary svg {
  flex-shrink: 0;
}

.hero-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-light);
  border-radius: 50%;
}

.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-icon-wrap {
  position: relative;
}

.hero-icon-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(123, 92, 246, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-icon {
  width: 220px;
  height: 220px;
  border-radius: 52px;
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(91, 61, 176, 0.28);
}

.hero-illustration {
  position: absolute;
  bottom: -20px;
  right: -40px;
  width: 140px;
  animation: floatSlow 6s ease-in-out infinite reverse;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* --- Features --- */
.features {
  padding: 100px 48px;
  background: var(--bg-white);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

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

.card {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition-fast);
  cursor: default;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-soft);
}

.card-img-wrap {
  width: 96px;
  height: 96px;
  background: var(--bg-wash);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform var(--transition);
  overflow: hidden;
}

.card:hover .card-img-wrap {
  transform: scale(1.05) rotate(-2deg);
}

.card-img-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.card-body {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Privacy Callout --- */
.privacy-callout {
  padding: 100px 48px;
  background: var(--bg-wash);
  position: relative;
  overflow: hidden;
}

.privacy-callout::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(123, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.privacy-icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #fff 0%, #EDE9FE 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-card);
}

.privacy-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.privacy-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.privacy-body {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.privacy-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2px;
}

.privacy-link:hover {
  opacity: 0.7;
}

/* --- Pro --- */
.pro-section {
  padding: 100px 48px;
  background: var(--bg-white);
}

.pro-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.pro-text {
  flex: 1;
}

.pro-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 36px;
}

.pro-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--positive);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 13px;
  height: 13px;
}

.pro-pricing {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pro-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pro-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  animation: floatSlow 5s ease-in-out infinite;
}

/* --- Human Touch --- */
.human-touch {
  padding: 80px 48px;
  background: var(--bg-page);
  text-align: center;
}

.human-quote {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.human-quote strong {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}

/* --- Footer --- */
.footer {
  background: #140D2E;
  padding: 60px 48px 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.footer-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), transform var(--transition);
  text-decoration: none;
}

.footer-download:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: rgba(255,255,255,0.85);
  opacity: 1;
}

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
}

/* --- Legal Pages --- */
.legal-hero {
  padding: 140px 48px 60px;
  background: linear-gradient(150deg, #EDE9FE 0%, #F5F2FF 60%, #F8F6FF 100%);
  text-align: center;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  text-decoration: none;
  transition: gap var(--transition);
}

.legal-back:hover {
  gap: 10px;
  opacity: 1;
}

.legal-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 12px;
}

.legal-subtitle {
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.legal-body {
  padding: 64px 48px 100px;
  background: var(--bg-white);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-intro {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1.5px solid var(--border);
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.legal-content ul li {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.legal-content ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.4;
}

.legal-content a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Scroll Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links .nav-link:not(.nav-cta) { display: none; }

  .hero { padding: 100px 24px 60px; }
  .hero-inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-icon { width: 160px; height: 160px; border-radius: 40px; }
  .hero-illustration { width: 100px; bottom: -10px; right: -20px; }

  .features { padding: 72px 24px; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }

  .privacy-callout { padding: 72px 24px; }

  .pro-section { padding: 72px 24px; }
  .pro-inner { flex-direction: column; gap: 40px; text-align: center; }
  .pro-checklist li { justify-content: center; }
  .pro-pricing { justify-content: center; }
  .pro-img { width: 200px; height: 200px; }

  .human-touch { padding: 60px 24px; }

  .footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; gap: 24px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .legal-hero { padding: 120px 24px 48px; }
  .legal-body { padding: 48px 24px 72px; }
}

@media (max-width: 600px) {
  .hero-headline { letter-spacing: -1px; }
  .section-title { letter-spacing: -0.5px; }
  .cards-grid { grid-template-columns: 1fr; }
}
