/* landing/css/style.css */

:root {
  /* Colors */
  --primary: #E76F51;
  --primary-light: #F4A261;
  --primary-gradient: linear-gradient(135deg, #E76F51 0%, #F4A261 100%);
  --bg-warm: #FFFBF5;
  --bg-trust: #f0f9f0;
  --text-dark: #1E1E1E;
  --text-gray: #6B7280;
  --text-trust: #2d5a2d;
  --footer-bg: #1E1E1E;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 64px 24px;
  --container-max: 1200px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  background: white;
}

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

a:hover {
  text-decoration: underline;
}

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

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

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.header-logo span {
  font-weight: 600;
  font-size: 18px;
}

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

.header-nav a {
  color: var(--text-gray);
  font-size: 15px;
}

.header-nav a:hover {
  color: var(--text-dark);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn:hover {
  transform: scale(1.02);
  text-decoration: none;
}

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

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

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-current {
  color: var(--text-gray);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.lang-current:hover {
  background: #f5f5f5;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 140px;
  padding: 8px 0;
  z-index: 200;
  margin-top: 4px;
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-gray);
  font-size: 13px;
  text-decoration: none;
}

.lang-menu a:hover {
  background: #f5f5f5;
  color: var(--text-dark);
}

.lang-menu a.active {
  color: var(--primary);
  font-weight: 500;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px;
  background: var(--primary-gradient);
  color: white;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero .btn {
  font-size: 17px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
}

.hero-subtitle {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 16px;
}

/* Trust Banner */
.trust-banner {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px;
  background: var(--bg-trust);
  border-bottom: 1px solid #d4edda;
  flex-wrap: wrap;
}

.trust-banner span {
  font-size: 14px;
  color: var(--text-trust);
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: #fafafa;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 48px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-warm);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.feature-card .emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-gray);
}

/* Screenshots */
.screenshots {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.screenshots img {
  width: 200px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Privacy Section */
.privacy-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.privacy-section p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  color: var(--text-gray);
  margin: 0;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 80px 24px;
  background: var(--primary-gradient);
  color: white;
}

.cta h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  padding: 32px 24px;
  background: var(--footer-bg);
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-copyright {
  font-size: 14px;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #999;
  font-size: 14px;
}

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

.footer-langs {
  font-size: 13px;
  color: #666;
}

.footer-langs a {
  color: #666;
}

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

/* Document Pages (Privacy, Terms, Support) */
.doc-page {
  background: white;
}

.doc-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.doc-content h1 {
  font-size: 40px;
  margin-bottom: 8px;
}

.doc-date {
  color: var(--text-gray);
  margin-bottom: 48px;
}

.doc-content h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 40px 0 16px;
}

.doc-content p {
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.doc-content ul {
  color: var(--text-gray);
  margin-bottom: 16px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

/* Support Page Specifics */
.contact-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-card .icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.contact-card p {
  margin: 0;
  color: var(--text-gray);
}

.contact-card .note {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 8px;
}

.steps-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 16px 0;
}

.steps-box ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-gray);
}

.steps-box li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .trust-banner {
    gap: 16px;
  }

  .trust-banner span {
    font-size: 13px;
  }

  .section {
    padding: 48px 20px;
  }

  .section-title {
    font-size: 26px;
  }

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

  .screenshots img {
    width: 150px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-card .icon {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .screenshots img {
    width: 120px;
  }
}

/* Language Switcher */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}

.language-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  display: none;
  z-index: 1000;
}

.language-switcher:hover .language-menu {
  display: block;
}

.language-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.language-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.language-menu a.active {
  background: var(--primary);
  color: white;
}

.language-menu a:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.language-menu a:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Flash Message Banner */
.flash-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flash-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.flash-banner-text {
  flex: 1;
}

.flash-banner-text strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.flash-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.flash-banner-dismiss {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.flash-banner-dismiss:hover {
  opacity: 1;
}

.flash-notify {
  background: #dbeafe;
  border-bottom: 2px solid #3b82f6;
  color: #1e40af;
}

.flash-warning {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  color: #92400e;
}

.flash-info {
  background: #e0f2fe;
  border-bottom: 2px solid #0ea5e9;
  color: #075985;
}

/* Adjust header padding when flash banner is present */
body:has(.flash-banner) .header {
  margin-top: 60px;
}

@media (max-width: 768px) {
  .flash-banner {
    padding: 0.75rem 1rem;
  }

  .flash-banner-text strong {
    font-size: 0.95rem;
  }

  .flash-banner-text p {
    font-size: 0.875rem;
  }
}

/* Screenshots Section */
.screenshots {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.screenshots img {
  width: 280px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.screenshots img:hover {
  transform: translateY(-8px);
}

/* Privacy Section */
.privacy-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
}

/* CTA Section */
.cta {
  background: var(--primary-gradient);
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta .btn {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}

@media (max-width: 768px) {
  .screenshots {
    gap: 1.5rem;
  }

  .screenshots img {
    width: 200px;
  }

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

/* Language Dropdown - Updated to match original */
.lang-dropdown {
  position: relative;
}

.lang-current {
  color: var(--text-gray);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  background: none;
  border: none;
}

.lang-current:hover {
  background: #f5f5f5;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  display: none;
  z-index: 1000;
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-gray);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.lang-menu a:hover {
  background: #f5f5f5;
  color: var(--text-dark);
}

.lang-menu a.active {
  color: var(--primary);
  font-weight: 500;
}
