/*--------------------------------------------------------------
# GenNote - Professional Download Page Styles
# Author: Web Development Team
# Version: 2.2 (notch mask + flicker/halo fixes)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {
  /* Brand Colors */
  --primary: #4A6FFF;
  --primary-light: #6A8AFF;
  --primary-dark: #3A5AE0;
  --secondary: #FF6B4A;
  --secondary-light: #FF8D75;
  --secondary-dark: #E5563A;
  
  /* Neutrals */
  --dark: #1A1A2E;
  --gray-900: #2D2D3A;
  --gray-800: #3D3D4D;
  --gray-700: #4A4A5A;
  --gray-600: #6E7191;
  --gray-500: #A0A3BD;
  --gray-400: #D9DBE9;
  --gray-300: #EFF0F6;
  --gray-200: #F7F7FC;
  --gray-100: #FCFCFF;
  --white: #FFFFFF;
  
  /* Feedback Colors */
  --success: #2ECC71;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #7A4FFF 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, #FF9A6B 100%);
  --gradient-text: linear-gradient(90deg, var(--primary) 0%, #7A4FFF 100%);
  
  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 16px rgba(74, 111, 255, 0.2);
  
  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: all 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
  --transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  --transition-slow: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --section-spacing: 100px;
  --section-spacing-sm: 60px;

  /* Phone screen geometry (download page) */
  --phone-screen-top: 3.5%;
  --phone-screen-left: 5%;
  --phone-screen-right: 5%;
  --phone-screen-bottom: 3.5%;
  --phone-screen-radius: 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: #fafbff;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 0.75em;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

/*--------------------------------------------------------------
# Layout Components
--------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-spacing) 0;
}

.section-sm {
  padding: var(--section-spacing-sm) 0;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.bg-white { background-color: var(--white); }
.bg-light { background-color: #fafbff; }

.radius { border-radius: var(--radius); }
.radius-lg { border-radius: var(--radius-lg); }

/*--------------------------------------------------------------
# Button Components
--------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  text-align: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), #7A56FF);
  box-shadow: var(--shadow-primary);
  color: var(--white);
  border-radius: var(--radius);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(74, 111, 255, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 111, 255, 0.1);
  background-color: rgba(74, 111, 255, 0.05);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(90deg, var(--primary), #7A56FF);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow-primary);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(74, 111, 255, 0.25);
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.download-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-xs);
  z-index: 1000;
  transition: var(--transition);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.download-header.scrolled {
  box-shadow: var(--shadow-sm);
  height: calc(var(--header-height) - 16px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--dark);
  gap: 0.75rem;
}

.logo img {
  height: 2.25rem;
  width: auto;
}

.logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  position: relative;
  font-size: 1rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.login-link {
  color: var(--primary);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Download Hero Section
--------------------------------------------------------------*/
.premium-download-hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background-color: #fafbff;
}

.download-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 111, 255, 0.3), rgba(122, 86, 255, 0.3));
  filter: blur(20px);
  animation: float 15s infinite ease-in-out;
}

.particle.p1 {
  top: 20%;
  left: 10%;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  opacity: 0.1;
}

.particle.p2 {
  top: 60%;
  right: 15%;
  width: 180px;
  height: 180px;
  animation-delay: 1s;
  opacity: 0.08;
}

.particle.p3 {
  bottom: 10%;
  left: 20%;
  width: 140px;
  height: 140px;
  animation-delay: 2s;
  opacity: 0.05;
}

.particle.p4 {
  top: 30%;
  right: 30%;
  width: 100px;
  height: 100px;
  animation-delay: 1.5s;
  opacity: 0.07;
}

.particle.p5 {
  bottom: 30%;
  left: 40%;
  width: 90px;
  height: 90px;
  animation-delay: 0.5s;
  opacity: 0.09;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  33% { transform: translateY(-30px) translateX(15px) rotate(5deg); }
  66% { transform: translateY(20px) translateX(-10px) rotate(-3deg); }
}

.download-grid {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.download-content {
  flex: 1;
  max-width: 600px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgba(74, 111, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  position: relative;
}

.pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse-animation 2s infinite;
  opacity: 0.8;
}

@keyframes pulse-animation {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: var(--gray-600);
  max-width: 520px;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.app-store-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.store-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(26, 26, 46, 0.15);
}

.store-option i {
  font-size: 1.8rem;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-text span {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-text strong {
  font-size: 1.1rem;
}

.download-divider {
  display: flex;
  align-items: center;
  margin: 0 1rem;
  color: var(--gray-500);
}

.download-divider span {
  position: relative;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.download-divider span::before,
.download-divider span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background-color: var(--gray-400);
}

.download-divider span::before {
  right: 100%;
}

.download-divider span::after {
  left: 100%;
}

.qr-option {
  text-align: center;
}

.qr-image {
  position: relative;
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.qr-image img {
  width: 100%;
  height: 100%;
}

.scan-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, 
      rgba(74, 111, 255, 0) 0%,
      rgba(74, 111, 255, 0.5) 50%,
      rgba(74, 111, 255, 0) 100%);
  animation: scan 2s infinite;
  border-radius: var(--radius) var(--radius) 0 0;
}

@keyframes scan {
  0% { top: 0; opacity: 0.8; }
  100% { top: calc(100% - 10px); opacity: 0.2; }
}

.download-stats-banner {
  display: flex;
  justify-content: space-between;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number i {
  font-size: 1rem;
  color: var(--warning);
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.security-badges {
  display: flex;
  gap: 1.5rem;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

.security-badge i {
  color: var(--success);
}

/*--------------------------------------------------------------
# Phone Mockup (halo-free + notch-ready)
--------------------------------------------------------------*/
.app-preview {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.device-mockup {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
  transform: translateZ(0);
}
.phone-frame > img {
  position: relative;
  z-index: 3;
  display: block;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.phone-screen {
  position: absolute;
  top: var(--phone-screen-top);
  left: var(--phone-screen-left);
  right: var(--phone-screen-right);
  bottom: var(--phone-screen-bottom);
  border-radius: var(--phone-screen-radius);
  overflow: hidden;
  /* Light fallback so first paint is never black */
  background-color: #fafbff;
  z-index: 1;

  /* First-paint clipping for clean edges */
  clip-path: inset(0 round var(--phone-screen-radius));
  backface-visibility: hidden;
  isolation: isolate;
  contain: layout paint;
}

.phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent !important;
  /* Overscan to hide any letterboxing and anti-aliasing halos */
  transform: translateZ(0) scale(1.06);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  /* Redundant clip for identical edge clipping */
  clip-path: inset(0 round var(--phone-screen-radius));
  /* Fade-in: becomes visible when JS adds .is-ready on "playing" */
  opacity: 0;
  transition: opacity .25s ease;
}
.phone-screen video.is-ready { opacity: 1; }

/* Notch-aware SVG mask (preferred for iPhone-style notch)
   1) Add class "phone-mask--notch" to .phone-screen
   2) Place /static/images/phone-screen-mask-notch.svg (white=show, black=hide) */
.phone-screen.phone-mask--notch video {
  -webkit-mask-image: url("../images/phone-screen-mask-notch.svg");
  mask-image: url("../images/phone-screen-mask-notch.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  clip-path: none; /* mask defines the edge */
}

/* Optional PNG mask fallback */
.phone-screen.phone-mask--png video {
  -webkit-mask-image: url("../images/phone-screen-mask.png");
  mask-image: url("../images/phone-screen-mask.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  clip-path: none;
}

/* Debug helper: enable while dialing offsets/radius */
/*
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--phone-screen-radius);
  outline: 1px dashed rgba(255, 77, 77, 0.8);
  pointer-events: none;
}
*/

.preview-badge {
  position: absolute;
  background-color: white;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 3;
}

.preview-badge i {
  color: var(--primary);
}

.top-left {
  top: 10%;
  left: -10%;
}

.bottom-right {
  bottom: 15%;
  right: -10%;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 70px;
  display: block;
}

/*--------------------------------------------------------------
# Core Features Section
--------------------------------------------------------------*/
.core-features {
  padding: 80px 0;
  position: relative;
  background-color: white;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(90deg, #4A6FFF, #7A56FF);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 15px;
  border-radius: var(--radius-full);
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(122, 86, 255, 0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(74, 111, 255, 0.1), rgba(122, 86, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 1.75rem;
  background: linear-gradient(90deg, var(--primary), #7A56FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/*--------------------------------------------------------------
# Testimonial Spotlight
--------------------------------------------------------------*/
.testimonial-spotlight {
  padding: 80px 0;
  background-color: #fafbff;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.quote-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.15;
}

.testimonial-text {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--gray-800);
  position: relative;
  z-index: 1;
  padding-left: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
  margin-right: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

.rating {
  color: var(--warning);
  font-size: 0.875rem;
}

/*--------------------------------------------------------------
# Signup Section
--------------------------------------------------------------*/
.signup-section {
  padding: 100px 0;
  background-color: white;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.signup-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.signup-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.signup-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signup-feature i {
  color: var(--success);
}

.signup-container {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(0);
  transition: var(--transition);
}

.signup-container:hover {
  transform: translateY(-5px);
}

.form-wrapper {
  padding: 2.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--gray-500);
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.1);
  outline: none;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-password:hover {
  color: var(--gray-700);
}

.form-check {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-container input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
}

.label-text {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.label-text a {
  font-weight: 600;
}

.form-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.form-divider span {
  display: inline-block;
  padding: 0 1rem;
  background-color: white;
  position: relative;
  z-index: 2;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gray-300);
  z-index: 1;
}

.social-signup {
  margin-bottom: 1rem;
}

.social-buttons {
  display: flex;
  gap: 1rem;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background-color: white;
  border: 1px solid var(--gray-300);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-800);
}

.social-btn:hover {
  background-color: var(--gray-100);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.social-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.form-footer a {
  font-weight: 600;
}

/*--------------------------------------------------------------
# FAQ Section
--------------------------------------------------------------*/
.faq-section {
  padding: 80px 0;
  background-color: #fafbff;
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item.active {
  border-color: rgba(74, 111, 255, 0.2);
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: rgba(74, 111, 255, 0.03);
}

.faq-item.active .faq-question {
  background-color: rgba(74, 111, 255, 0.05);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  transition: var(--transition);
}

.faq-item.active .faq-question h3 {
  color: var(--primary);
}

.toggle-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(74, 111, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

.faq-support {
  text-align: center;
  margin-top: 3rem;
}

.faq-support p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/*--------------------------------------------------------------
# Download CTA Section
--------------------------------------------------------------*/
.download-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary), #7A56FF);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 80px 0 40px;
  background-color: white;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

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

.footer-brand p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.links-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.links-column ul {
  list-style: none;
}

.links-column ul li {
  margin-bottom: 1rem;
}

.links-column ul a {
  color: var(--gray-600);
  transition: var(--transition);
  font-weight: 500;
}

.links-column ul a:hover {
  color: var(--primary);
  padding-left: 5px;
}

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

.language-selector select {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  font-size: 0.9rem;
  color: var(--gray-700);
  background-color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.language-selector select:hover {
  border-color: var(--gray-500);
}

/*--------------------------------------------------------------
# Modal
--------------------------------------------------------------*/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background-color: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

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

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  z-index: 1;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--danger);
  transform: rotate(90deg);
}

.login-form-container {
  padding: 3rem;
}

.login-form-container h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-form-container p {
  margin-bottom: 2rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.forgot-password {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/*--------------------------------------------------------------
# Success & Error Messages
--------------------------------------------------------------*/
.form-error {
  padding: 0.75rem;
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--danger);
}

.success-message {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}

.success-message h3 {
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.toast-message {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background-color: white;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 2000;
}

.toast-message.success {
  border-left: 4px solid var(--success);
}

.toast-message.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-message i {
  font-size: 1.5rem;
  color: var(--success);
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .app-preview {
    max-width: 380px;
  }
}

@media (max-width: 992px) {
  :root {
    --section-spacing: 80px;
    --section-spacing-sm: 50px;
  }
  
  .container {
    max-width: 720px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .download-grid {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .download-content {
    max-width: 100%;
  }
  
  .subtitle,
  .download-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .security-badges {
    justify-content: center;
  }
  
  .app-preview {
    max-width: 300px;
  }
  
  .preview-badge {
    display: none;
  }
  
  .signup-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .signup-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .signup-features {
    align-items: center;
  }
  
  .testimonial-text {
    font-size: 1.3rem;
    padding-left: 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
    --section-spacing-sm: 40px;
    --header-height: 70px;
  }
  
  .container {
    max-width: 540px;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.35rem; }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .premium-badge {
    font-size: 12px;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .download-options {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .download-divider {
    display: none;
  }
  
  .app-store-options {
    width: 100%;
    max-width: 250px;
  }
  
  .download-stats-banner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-author img {
    margin: 0 auto 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 50px;
    --section-spacing-sm: 30px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .login-form-container {
    padding: 2rem 1.5rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .testimonial-text {
    font-size: 1.1rem;
  }
  
  .quote-icon {
    font-size: 2rem;
    top: 1.5rem;
    left: 1.5rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
}