/* Root variables */
:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary: #06b6d4;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: white;
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* Features */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: var(--light);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--primary);
}

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

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* How It Works */
.how-it-works {
  background: var(--light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step-card {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  color: var(--gray);
}

/* Security Section */
.security {
  background: white;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.security-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.security-content p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.7;
}

.security-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.security-icon {
  width: 200px;
  height: 200px;
  color: var(--primary);
}

/* CTA Section */
.cta-section {
  background: var(--gradient);
  color: white;
  text-align: center;
  padding: 100px 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* Page Hero (for about, contact, privacy, terms, faq) */
.page-hero {
  background: var(--gradient);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  padding: 80px 0;
  background: white;
}

.content-grid {
  max-width: 800px;
  margin: 0 auto;
}

.content-main h2 {
  font-size: 1.75rem;
  margin: 40px 0 20px;
  color: var(--dark);
}

.content-main p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.7;
}

.content-main ul, .content-main ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--gray);
}

.content-main li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.content-main a {
  color: var(--primary);
  text-decoration: none;
}

.content-main a:hover {
  text-decoration: underline;
}

.content-main strong {
  color: var(--dark);
}

/* Values list */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 30px 0;
}

.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.value-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  flex-shrink: 0;
}

.value-item h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.value-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-method p {
  color: var(--gray);
  font-size: 0.95rem;
}

.alert-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.alert-box svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.alert-box p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

.alert-box strong {
  color: var(--dark);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Blog */
.blog {
  background: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image svg {
  width: 80px;
  height: 80px;
  color: white;
  opacity: 0.9;
}

.blog-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card h3 a {
  text-decoration: none;
  color: var(--dark);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover {
  text-decoration: underline;
}

/* Blog Article */
.blog-article {
  background: white;
}

.blog-article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.blog-article-header .back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
}

.blog-article-header .back-to-blog:hover {
  text-decoration: underline;
}

.blog-article-header .blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.blog-article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-article-meta {
  color: var(--gray);
  font-size: 0.875rem;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.blog-article-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article-content .lead {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.7;
}

.blog-article-content h2 {
  font-size: 1.75rem;
  margin: 50px 0 20px;
  color: var(--dark);
}

.blog-article-content h3 {
  font-size: 1.25rem;
  margin: 30px 0 15px;
  color: var(--dark);
}

.blog-article-content p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.8;
}

.blog-article-content ul, .blog-article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--gray);
}

.blog-article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.blog-article-content a {
  color: var(--primary);
  text-decoration: none;
}

.blog-article-content a:hover {
  text-decoration: underline;
}

.blog-article-content strong {
  color: var(--dark);
}

.blog-article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--gray);
}

/* Article CTA */
.blog-article-cta {
  margin: 50px 0;
  padding: 40px;
  background: var(--light);
  border-radius: var(--radius);
  text-align: center;
}

.blog-article-cta p {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 1.125rem;
}

/* Related Articles */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-light);
}

.related-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.related-card {
  display: block;
  padding: 20px;
  background: var(--light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.related-card h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.875rem;
  color: var(--gray);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand .logo svg {
  color: white;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Floating CTA */
.cta-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 18px 28px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform 0.2s;
}

.cta-floating:hover {
  transform: scale(1.05);
}

/* Inline CTA */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Utility classes */
.text-center {
  text-align: center;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border-bottom: 1px solid var(--gray-light);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question .faq-icon {
  width: 24px;
  height: 24px;
  color: var(--gray);
  transition: transform 0.3s;
}
.faq-question.active .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--gray);
  line-height: 1.7;
}
.faq-answer.active {
  display: block;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

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

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

  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .security-icon {
    width: 150px;
    height: 150px;
  }

  .cta-floating {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

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

  .blog-article-content h2 {
    font-size: 1.5rem;
  }

  .blog-card-image {
    height: 160px;
  }

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