/* ===== Qard Website Styles ===== */

:root {
  --primary: #4D6585;
  --primary-light: #6B7FA0;
  --primary-dark: #3A506B;
  --accent: #C8954A;
  --accent-light: #E0B06A;
  --accent-dark: #A87830;
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;
  --text-primary: #1A1D23;
  --text-secondary: #5A6270;
  --text-light: #8E96A4;
  --border: #E4E7EC;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1100px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-light);
}

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

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(160deg, #F7F8FA 0%, #EDF0F5 40%, #E4E9F0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 149, 74, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(77, 101, 133, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(200, 149, 74, 0.12);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-store-button {
  display: inline-block;
  height: 56px;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-button:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.app-store-button img {
  height: 56px;
  width: auto;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.secondary-button:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

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

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(77, 101, 133, 0.25);
  background: #1A1D23;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating elements */
.float-badge {
  position: absolute;
  padding: 10px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}

.float-badge-1 {
  top: 40px;
  right: -30px;
  animation-delay: 0s;
  color: var(--primary);
}

.float-badge-2 {
  bottom: 80px;
  left: -40px;
  animation-delay: 1.5s;
  color: var(--accent-dark);
}

.float-badge .icon {
  width: 20px;
  height: 20px;
  background: var(--primary-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
}

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

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

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(200, 149, 74, 0.1);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.375rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.feature-card {
  padding: 36px 28px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Screenshots Section ===== */
.screenshots {
  padding: 100px 0;
  background: var(--bg-light);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

.screenshot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 9/19;
}

.screenshot-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 auto 24px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* ===== CTA Section ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 149, 74, 0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.cta .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.cta p {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .app-store-button img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Page Header (Privacy/Support) ===== */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 149, 74, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.page-header p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Content Section ===== */
.content-section {
  padding: 64px 0 80px;
  background: var(--bg-white);
}

.content-section .container {
  max-width: 760px;
}

.content-section h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.content-section p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-section ul, .content-section ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-section li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.content-section .highlight-box {
  padding: 24px;
  background: rgba(77, 101, 133, 0.06);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  margin: 24px 0;
}

.content-section .highlight-box p {
  margin-bottom: 0;
}

/* ===== Support Card ===== */
.support-card {
  padding: 48px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  margin: 32px 0;
}

.support-card .icon-large {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 1.5rem;
}

.support-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.support-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: white !important;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.support-button:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image {
    order: 1;
    margin-bottom: 20px;
  }

  .hero-image-wrapper {
    width: 240px;
    height: 480px;
  }

  .float-badge-1 {
    right: 0;
  }

  .float-badge-2 {
    left: 0;
  }

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

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .cta h2 {
    font-size: 1.875rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header {
    padding: 120px 0 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .support-card {
    padding: 32px 24px;
  }

  .hero-image-wrapper {
    width: 200px;
    height: 400px;
    border-radius: 28px;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  padding: 40px;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}
