/* ============================================
   VARIABLES & COLORS
   ============================================ */

:root {
  /* Colors - Deep blue "trusted & calm" palette */
  --background: #fdfcff;
  --foreground: #39394f;
  --card: #ffffff;
  --card-foreground: #39394f;
  --primary: #1b46a6;
  --primary-light: #2b4bb5;
  --primary-foreground: #fdfcff;
  --secondary: #f5f3ff;
  --secondary-foreground: #39394f;
  --muted: #f5f3ff;
  --muted-foreground: #7e7e94;
  --border: #e8e4f5;
  --border-light: rgba(0, 0, 0, 0.05);
  --input: #e8e4f5;
  --destructive: #dc2626;

  /* Gradients */
  --gradient-warm: linear-gradient(135deg, #213989, #2b4bb5);
  --gradient-soft: linear-gradient(180deg, #fdfcff, #f9f8ff);
  --gradient-hero: radial-gradient(ellipse at top, rgba(43, 75, 181, 0.35), transparent 60%),
                   radial-gradient(ellipse at bottom left, rgba(27, 70, 166, 0.3), transparent 50%);

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(27, 70, 166, 0.3);
  --shadow-glow: 0 20px 60px -20px rgba(27, 70, 166, 0.45);
  --shadow-card: 0 4px 20px -4px rgba(39, 39, 79, 0.1);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --radius: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  background: rgba(253, 252, 255, 0.8);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: var(--transition);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: calc(var(--radius) - 0.25rem);
  background: var(--gradient-warm);
  color: var(--primary-foreground);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.5;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: var(--transition);
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--gradient-warm);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.btn-primary.btn-large {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  width: 100%;
}

.btn-primary.btn-full {
  width: 100%;
  padding: 0.875rem 1.5rem;
}

@media (min-width: 640px) {
  .btn-primary.btn-large {
    width: auto;
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

.btn-secondary:hover {
  background: var(--secondary);
}

@media (min-width: 640px) {
  .btn-secondary {
    width: auto;
  }
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.btn-dark:hover {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .btn-dark {
    width: auto;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  min-height: auto;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 6rem;
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-text {
    text-align: left;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: var(--muted-foreground);
}

.pulse {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}

.pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.75rem;
  }
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-top: 1.25rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-text p {
    margin-left: 0;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .cta-buttons {
    justify-content: flex-start;
  }
}

.features-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .features-list {
    justify-content: flex-start;
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-warm);
  opacity: 0.2;
  filter: blur(48px);
}

.phone-image {
  width: 100%;
  max-width: 28rem;
  filter: drop-shadow(0 25px 50px -12px rgba(0, 0, 0, 0.25));
  animation: float 6s ease-in-out infinite;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-header {
  /*max-width: 42rem;*/
  text-align: center;
  margin: 0 auto;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .section-header h2 {
    font-size: 2.25rem;
  }
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: calc(var(--radius) + 0.5rem);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: calc(var(--radius) - 0.5rem);
  background: var(--gradient-warm);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.25rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
  background: var(--gradient-soft);
  padding: 5rem 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: calc(var(--radius) + 0.5rem);
  box-shadow: var(--shadow-card);
}

.step-badge {
  position: absolute;
  top: -0.5rem;
  left: 2rem;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--gradient-warm);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin-top: 0.75rem;
}

/* ============================================
   DOWNLOAD CTA SECTION
   ============================================ */

.download-cta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: 2.5rem;
  background: var(--gradient-warm);
  box-shadow: var(--shadow-glow);
  text-align: center;
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .cta-box {
    padding: 4rem;
  }
}

.cta-glow {
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(48px);
}

.cta-glow::after {
  content: '';
  position: absolute;
  bottom: -5rem;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(48px);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.05;
}

@media (min-width: 640px) {
  .cta-box h2 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .cta-box h2 {
    font-size: 3.125rem;
  }
}

.cta-box p {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 1rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .store-buttons {
    flex-direction: row;
  }
}

.store-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.store-buttons .btn-dark {
  background: #ffffff;
  color: #000000;
}

.store-buttons .btn-dark:hover {
  background: #f5f5f5;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: calc(var(--radius) + 0.5rem);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .contact-info h2 {
    font-size: 2.25rem;
  }
}

.contact-info p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

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

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 0.875rem;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--gradient-warm);
  color: var(--primary-foreground);
  font-size: 1.25rem;
  flex-shrink: 0;
  flex-grow: 0;
}

.contact-card div {
  flex: 1;
}

.contact-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-form {
  padding: 1.5rem;
  background: rgba(245, 243, 255, 0.4);
  border-radius: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 0.75rem;
  color: var(--foreground);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 70, 166, 0.1);
}

.form-group textarea {
  resize: none;
}

.form-footer {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.form-footer a {
  text-decoration: underline;
  color: var(--primary);
}

.form-footer a:hover {
  color: var(--foreground);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border-light);
  background: rgba(245, 243, 255, 0.4);
}

.footer .container {
  padding: 3rem 1.5rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 16rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.footer-col ul {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .logo span {
    display: none;
  }

  .logo-icon {
    width: 2rem;
    height: 2rem;
  }

  .logo-icon svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
