/* Taspal Landing Page Stylesheet */

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  --bg-dark: #0F0F0F;
  --bg-card: #161616;
  --text-white: #FFFFFF;
  --text-gray-light: #E0E0E0;
  --text-gray-muted: #8F8F8F;
  --brand-green: #0F9E70;
  --brand-green-hover: #12b07e;
  --brand-green-active: #0c825c;
  --nav-bg: rgba(15, 15, 15, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --gradient-hero: linear-gradient(135deg, #47707c 0%, #6b868e 50%, #29444d 100%);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 14.5px;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-title {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-white);
}

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

.nav-link {
  color: var(--text-gray-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--brand-green);
}

.btn-secondary-nav {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.btn-secondary-nav:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  transform: translateY(-1px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  padding-top: 110px;
  padding-bottom: 40px;
  background-color: var(--bg-dark);
}

.hero-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-banner {
  background: var(--gradient-hero);
  border-radius: 24px;
  padding: 44px 52px;
  display: flex;
  align-items: center;
  gap: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glass highlight shine overlay */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hero-left {
  flex-shrink: 0;
}

.hero-app-icon {
  width: 110px;
  height: 110px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-banner:hover .hero-app-icon {
  transform: scale(1.05) rotate(2deg);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  color: var(--text-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-white);
  opacity: 0.95;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-separator {
  opacity: 0.5;
}

.meta-device {
  opacity: 0.9;
}

/* ==========================================
   DOWNLOAD BUTTON
   ========================================== */
.download-container {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: var(--brand-green);
  color: var(--text-white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 158, 112, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: var(--transition-smooth);
  border: 1px solid rgba(15, 158, 112, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-download:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 158, 112, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-download:active {
  background-color: var(--brand-green-active);
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(15, 158, 112, 0.25);
}

.ms-store-logo {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.btn-download:hover .ms-store-logo {
  transform: scale(1.1);
}

/* ==========================================
   FEATURES SHOWCASE (BACKGROUND: #0F0F0F)
   ========================================== */
.main-content {
  background-color: var(--bg-dark);
  padding: 30px 0 80px 0;
}

.features-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature-item {
  margin-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-heading {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-white);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.25;
}

.screenshot-wrapper {
  width: 100%;
}

/* ==========================================
   WINDOWS WINDOW MOCKUP
   ========================================== */
.window-mockup {
  background-color: #111111;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.window-mockup:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(15, 158, 112, 0.25);
  border-color: rgba(15, 158, 112, 0.2);
}

.window-header {
  height: 40px;
  background-color: #1A1A1A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0.75;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.window-tab {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-gray-muted);
  font-weight: 500;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background-color: #161616;
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

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

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: #0A0A0A;
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-white);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-gray-muted);
  text-align: center;
  line-height: 1.5;
}

.footer-attribution {
  font-size: 0.85rem;
  color: var(--text-gray-muted);
  text-align: center;
  line-height: 1.5;
  margin-top: -8px;
}

.footer-attribution strong {
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 900px) {
  .hero-banner {
    flex-direction: column;
    padding: 48px 40px;
    gap: 32px;
    text-align: center;
  }

  .hero-left {
    display: flex;
    justify-content: center;
  }

  .hero-right {
    align-items: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-meta {
    justify-content: center;
  }

  .download-container {
    justify-content: center;
    width: 100%;
  }

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

  .feature-heading {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .feature-item {
    margin-bottom: 80px;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .hero-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .feature-heading {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .window-header {
    height: 36px;
    padding: 0 12px;
  }

  .window-tab {
    display: none; /* Hide tab name on tiny screens to save space */
  }

  .dot {
    width: 9px;
    height: 9px;
  }

  .nav-links {
    gap: 16px;
  }
  
  .btn-secondary-nav {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================
   WISHLIST MODAL (Frosted Glass & Dark theme)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-gray-muted);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-white);
  transform: scale(1.1) rotate(90deg);
}

.modal-header-info {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-title {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-gray-muted);
  line-height: 1.5;
  padding: 0 10px;
}

.modal-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease;
}

.input-group {
  position: relative;
  width: 100%;
}

.modal-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: #0A0A0A;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
  outline: none;
}

.modal-form input[type="email"]:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(15, 158, 112, 0.15);
}

.btn-submit {
  width: 100%;
  height: 56px;
  background-color: var(--brand-green);
  color: var(--text-white);
  border: 1px solid rgba(15, 158, 112, 0.5);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(15, 158, 112, 0.2);
}

.btn-submit:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 158, 112, 0.35);
}

.btn-submit:active {
  background-color: var(--brand-green-active);
  transform: translateY(0);
}

/* Loading Spinner */
.submit-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-white);
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit.loading .btn-submit-text {
  display: none;
}

.btn-submit.loading .submit-spinner {
  display: block;
}

/* Success State Styles */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(15, 158, 112, 0.1);
  border: 2.5px solid var(--brand-green);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(15, 158, 112, 0.15);
}

.success-icon {
  width: 40px;
  height: 40px;
}

.success-title {
  font-family: var(--font-headings);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.success-message {
  font-size: 0.95rem;
  color: var(--text-gray-light);
  line-height: 1.6;
  max-width: 380px;
}

.success-message strong {
  color: var(--brand-green);
}

/* Toggle modal visual states */
.modal-content.show-success .modal-header-info,
.modal-content.show-success .modal-form {
  display: none;
}

.modal-content.show-success .modal-success {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .modal-content {
    padding: 36px 24px;
    border-radius: 20px;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
}

