/* ============================================
   THINKPLUS - OPTIMIZED PREMIUM CSS
   Color Palette: Deep Slate + Electric Indigo
   ============================================ */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core Colors */
  --deep-slate: #020617;
  --electric-indigo: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent-blue: #0ea5e9;
  
  /* Glass & Surface */
  --card-glass: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1, #0ea5e9);
  --gradient-text: linear-gradient(to bottom right, #ffffff, #94a3b8);
  --ambient-glow-1: rgba(99, 102, 241, 0.05);
  --ambient-glow-2: rgba(14, 165, 233, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--deep-slate);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Full screen ambient glow background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 20%, 
      rgba(99, 102, 241, 0.2) 0%,
      rgba(99, 102, 241, 0.1) 15%,
      rgba(14, 165, 233, 0.1) 35%,
      transparent 65%
    ),
    radial-gradient(ellipse at 50% 100%, 
      rgba(14, 165, 233, 0.15) 0%,
      rgba(99, 102, 241, 0.08) 25%,
      transparent 60%
    ),
    conic-gradient(from 0deg at 50% 50%, 
      rgba(99, 102, 241, 0.12) 0deg,
      rgba(14, 165, 233, 0.12) 90deg,
      rgba(99, 102, 241, 0.08) 180deg,
      rgba(14, 165, 233, 0.12) 270deg,
      rgba(99, 102, 241, 0.12) 360deg
    );
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* === LANDSCAPE POPUP === */
.landscape-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.landscape-popup-overlay.show {
  display: flex;
}

.landscape-popup {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.popup-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.popup-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.popup-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

.popup-content {
  margin-bottom: 1.5rem;
}

.main-text {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.recommendation {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.recommendation:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.recommendation .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.recommendation p {
  margin: 0;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
}

.recommendation small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-got-it {
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #f8fafc;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-got-it:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-got-it:active {
  transform: translateY(0);
}

.dont-show {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.dont-show input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6366f1;
}

.dont-show:hover {
  color: #f8fafc;
}

/* === ONLY SHOW POPUP ON MOBILE === */
@media (min-width: 768px) {
  .landscape-popup-overlay {
    display: none !important;
  }
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 30px var(--primary-glow);
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 2rem;
  margin-left: 12rem;   /* move right */
  margin-right: 2rem;  /* move left */
}


nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}

.header-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--card-glass);
  border-color: var(--electric-indigo);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* === HERO SECTION === */
.hero {
  padding: 3rem 0 5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--electric-indigo);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--electric-indigo);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  padding: 0 1rem;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  padding: 0 1rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.trust-indicators {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-icon {
  color: var(--electric-indigo);
  font-weight: 700;
}

/* === STATS SECTION === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 4rem 0;
}

.stat {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stat:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--electric-indigo);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.stat-number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2vw, 1rem);
  position: relative;
  z-index: 1;
}

/* === FEATURES SECTION === */
.features {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--card-glass);
  border: 1px solid var(--electric-indigo);
  border-radius: 50px;
  color: var(--electric-indigo);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* FEATURES GRID - 3 COLUMNS FIXED */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--electric-indigo);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2),
              0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.feature-card h3 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* === CTA SECTION === */
.cta-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.cta-card {
  background: var(--card-glass);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 3rem 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.cta-description {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

/* === FOOTER === */
footer {
  background: rgba(2, 6, 23, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-brand {
  grid-column: 1;
}

.footer-links {
  display: contents;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--electric-indigo);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--electric-indigo);
}

/* === RESPONSIVE === */

/* DESKTOP - 1024px and above */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* TABLET - 768px to 1023px */
@media (max-width: 1023px) and (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  nav {
    display: none;
  }

  .header-content {
    justify-content: space-between;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo {
    margin: 0;
  }

  .header-buttons {
    width: 100%;
    justify-content: center;
  }

  .header-buttons .btn {
    flex: 1;
    min-width: 120px;
  }
  
  .hero {
    padding: 2rem 0 3rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* MOBILE - 767px and below */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
  
  header {
    padding: 0.75rem 0;
  }

  .header-content {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  
  nav {
    display: none;
  }

  .logo {
    margin: 0;
    font-size: 1rem;
    flex-shrink: 0;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .header-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-left: auto;
  }

  .header-buttons .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    min-width: auto;
    white-space: nowrap;
  }
  
  .hero {
    padding: 2rem 0 3rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 3rem 0;
  }

  .stat {
    padding: 1.5rem 1rem;
  }
  
  .features {
    padding: 3rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 4rem 0;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-description {
    margin: 0 auto;
  }

  .footer-column {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-indicators {
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-large {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .trust-indicators {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-social {
    justify-content: center;
  }
}