/* -------------------------------------------------------------------------- */
/* SWORDSCRIPT DESIGN SYSTEM & STYLING                                       */
/* Matched directly to official Android App Light Theme & Aesthetic          */
/* Colors: Off-white background (#f6f8f6), Mint Sage (#dce7e1), Dark Slate (#1e293b) */
/* -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Official App Light Palette */
  --bg-page: #f6f8f6;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f3;
  
  /* Mint Sage Banner & Badges */
  --sage-banner: #dce7e1;
  --sage-banner-hover: #d2e1da;
  --sage-text: #2d3e36;
  --sage-border: rgba(45, 62, 54, 0.15);
  
  /* Slate & Charcoal Buttons / Controls */
  --slate-dark: #1e293b;
  --slate-main: #334155;
  --slate-button: #475569;
  --slate-button-hover: #2d3748;
  --slate-light: #64748b;
  --slate-border: #e2e8f0;
  
  /* Accent Colors */
  --green-spoken: #2e7d32;
  --green-spoken-bg: #e8f5e9;
  --red-accent: #d32f2f;
  --gold-flame: #d97706;
  
  /* Text Hierarchy */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Fonts & Radius */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-scripture: 'Cinzel', serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 12px 32px rgba(30, 41, 59, 0.06);
  --shadow-hover: 0 20px 40px rgba(30, 41, 59, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(220, 231, 225, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(241, 245, 243, 0.8) 0%, transparent 40%);
}

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

a:hover {
  color: var(--green-spoken);
}

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

.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--green-spoken) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  background: var(--sage-banner);
  color: var(--sage-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 248, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--slate-dark);
  text-decoration: none;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.06);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.98rem;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--slate-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.2);
}

.btn-primary:hover {
  background: var(--slate-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--slate-border);
  color: var(--slate-dark);
}

.btn-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--slate-main);
  transform: translateY(-2px);
}

.badge-ios {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: #ffffff;
  border: 1px solid var(--slate-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--slate-dark);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 4rem 0 5rem 0;
}

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

.hero-content h1 {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.playstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--slate-dark);
  border: 1px solid var(--slate-dark);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.2);
}

.playstore-btn:hover {
  background: var(--slate-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(30, 41, 59, 0.3);
  color: #ffffff;
}

.playstore-btn svg {
  width: 26px;
  height: 26px;
}

.playstore-btn .btn-text-small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.playstore-btn .btn-text-large {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Phone Mockup Frame - Clean Android Frame with FLIPPING APP SCREENSHOTS */
.phone-mockup-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 580px;
  background: radial-gradient(circle, rgba(220, 231, 225, 0.8) 0%, rgba(241, 245, 243, 0.2) 70%);
  filter: blur(40px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 610px;
  background: #ffffff;
  border: 8px solid #1e293b;
  border-radius: 36px;
  box-shadow: var(--shadow-card), 0 20px 50px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.phone-mockup:hover {
  transform: translateY(-4px);
}

.phone-screen-slider {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8faf8;
}

.app-screenshot-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-screenshot-img.active {
  opacity: 1;
}

/* Indicators below phone */
.phone-indicators {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  z-index: 5;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background: var(--slate-dark);
  width: 24px;
  border-radius: 100px;
}

.indicator-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.4rem;
}

/* Feature Grid Section */
.features-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--slate-border);
  border-bottom: 1px solid var(--slate-border);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 62, 54, 0.3);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--sage-banner);
  color: var(--sage-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
  color: var(--slate-dark);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Legal Content Pages */
.legal-page {
  padding: 5rem 0;
  max-width: 840px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-border);
}

.legal-header h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  color: var(--slate-dark);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.85rem 0;
  color: var(--slate-dark);
}

.legal-content p, .legal-content ul {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--sage-banner);
  border-left: 4px solid var(--sage-text);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.highlight-box p {
  color: var(--sage-text);
  margin-bottom: 0;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--slate-border);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 0.85rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--slate-dark);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--slate-border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 2rem auto;
  }
  
  .hero-cta, .hero-badges {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .brand-logo img {
    width: 42px;
    height: 42px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
