/* Kalam Daily Website Styles
   Design System matching the app */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Alegreya+Sans:wght@400;500;600;700&family=Lateef:wght@400;700&display=swap');

/* CSS Variables - App Color System */
:root {
  /* Backgrounds */
  --background: #F7F6F3;
  --background-alt: #FFFFFF;
  --background-dark: #1A1A1A;
  --sand-dark: #EBE9E4;

  /* Feature Colors */
  --mint: #CEE5D0;
  --mint-light: #E2F0E5;
  --honey: #F9EBB2;
  --honey-light: #FDF5D6;
  --sky: #D5EDF6;
  --sky-light: #E8F5FA;
  --blush: #F5D5D5;
  --blush-light: #FAEAEA;
  --lavender: #E4DDF7;
  --peach: #FADCC5;

  /* Accent Colors */
  --ink: #1A1A1A;
  --ink-light: #3D3D3D;
  --ink-muted: #6B6B6B;
  --sage: #4A7C7E;
  --sage-light: #6B9B9D;
  --sage-dark: #3A6364;
  --clay: #BE8A60;
  --coral: #D4847A;
  --gold: #B8965A;

  /* Text Colors */
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-tertiary: #9A9A9A;
  --text-on-dark: #FFFFFF;

  /* Semantic */
  --success: #6B9B7A;
  --error: #CB7B7B;

  /* UI */
  --divider: #E8E8E8;
  --card-border: #E5E5E5;
  --shadow: rgba(0, 0, 0, 0.04);
  --shadow-medium: rgba(0, 0, 0, 0.08);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;

  /* Border Radius */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Alegreya Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

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

.arabic-text {
  font-family: 'Lateef', serif;
  font-size: 2.5rem;
  line-height: 1.4;
  direction: rtl;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-l);
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(247, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-m) var(--spacing-l);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-m);
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: var(--spacing-l);
  align-items: center;
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--background-alt) 0%, var(--background) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxxl);
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-s);
  padding: var(--spacing-s) var(--spacing-m);
  background: var(--mint-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: var(--spacing-l);
}

.hero h1 {
  margin-bottom: var(--spacing-l);
}

.hero h1 .arabic-inline {
  font-family: 'Lateef', serif;
  color: var(--sage);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-m);
  flex-wrap: wrap;
}

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

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 120px;
  height: 30px;
  background: var(--ink);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
}

.phone-content {
  flex: 1;
  padding: var(--spacing-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-m);
}

.mockup-word {
  text-align: center;
}

.mockup-arabic {
  font-family: 'Lateef', serif;
  font-size: 3rem;
  color: var(--ink);
  line-height: 1.2;
}

.mockup-transliteration {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.mockup-meaning {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-s);
}

.mockup-card {
  background: var(--mint-light);
  padding: var(--spacing-m) var(--spacing-l);
  border-radius: var(--radius-l);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-s);
  padding: var(--spacing-m) var(--spacing-l);
  border-radius: var(--radius-full);
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--text-on-dark);
}

.btn-primary:hover {
  background: var(--ink-light);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--background-alt);
  color: var(--ink);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: var(--sand-dark);
  color: var(--ink);
}

.btn-icon {
  width: 24px;
  height: 24px;
}

/* Features Section */
.features {
  background: var(--background-alt);
}

.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-xxl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-l);
}

.feature-card {
  background: var(--background);
  padding: var(--spacing-xl);
  border-radius: var(--radius-l);
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow-medium);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-m);
  font-size: 1.5rem;
}

.feature-icon.mint { background: var(--mint-light); }
.feature-icon.honey { background: var(--honey-light); }
.feature-icon.sky { background: var(--sky-light); }
.feature-icon.blush { background: var(--blush-light); }
.feature-icon.lavender { background: var(--lavender); }
.feature-icon.peach { background: var(--peach); }

.feature-card h3 {
  margin-bottom: var(--spacing-s);
}

.feature-card p {
  font-size: 1rem;
}

/* Pricing Section */
.pricing {
  text-align: center;
}

.pricing-header {
  max-width: 600px;
  margin: 0 auto var(--spacing-xxl);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-l);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--background-alt);
  padding: var(--spacing-xl);
  border-radius: var(--radius-l);
  border: 1px solid var(--card-border);
  position: relative;
}

.pricing-card.featured {
  background: var(--ink);
  color: var(--text-on-dark);
  border: none;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured .price-period {
  color: var(--text-on-dark);
}

.pricing-card.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: var(--text-on-dark);
  padding: var(--spacing-xs) var(--spacing-m);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  margin-bottom: var(--spacing-m);
}

.price {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-l);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--spacing-l);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
  padding: var(--spacing-s) 0;
  font-size: 1rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
}

.pricing-card.featured .pricing-features li::before {
  color: var(--mint);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-card.featured .btn-primary {
  background: var(--background-alt);
  color: var(--ink);
}

.pricing-card.featured .btn-primary:hover {
  background: var(--sand-dark);
}

/* Download Section */
.download {
  background: var(--ink);
  color: var(--text-on-dark);
  text-align: center;
}

.download h2 {
  color: var(--text-on-dark);
  margin-bottom: var(--spacing-m);
}

.download p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto var(--spacing-xl);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-m);
  flex-wrap: wrap;
}

.store-badge {
  height: 54px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--background-alt);
  border-top: 1px solid var(--divider);
  padding: var(--spacing-xxl) 0 var(--spacing-l);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: var(--spacing-m);
}

.footer-brand p {
  font-size: 1rem;
  color: var(--text-tertiary);
}

.footer-links h4 {
  font-family: 'Alegreya Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-m);
}

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

.footer-links li {
  margin-bottom: var(--spacing-s);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-l);
  border-top: 1px solid var(--divider);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: var(--spacing-m);
}

.footer-social a {
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--ink);
}

/* Legal Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--spacing-xxxl);
}

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

.legal-content h1 {
  margin-bottom: var(--spacing-m);
}

.legal-content .last-updated {
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-xxl);
}

.legal-content h2 {
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-m);
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: var(--spacing-m);
}

.legal-content ul {
  margin-bottom: var(--spacing-m);
  padding-left: var(--spacing-l);
}

.legal-content li {
  margin-bottom: var(--spacing-s);
  color: var(--text-secondary);
}

.legal-content a {
  color: var(--sage);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xxl);
  }

  .hero-text {
    max-width: 100%;
  }

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

  .phone-mockup {
    width: 260px;
    height: 520px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 var(--spacing-xxl);
  }

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

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-m);
    text-align: center;
  }
}
