/* ChewPal - Light Minimalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Segoe UI", Roboto, sans-serif;

  /* Light Palette (#FCFCF7 background) */
  --bg-main: #FCFCF7;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F8F8F2;
  
  --accent-green: #10B981;
  --accent-green-soft: rgba(16, 185, 129, 0.08);
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(252, 252, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  padding: 150px 0 80px;
}

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* App Store Download Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.0rem;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 12px;
  color: #FFFFFF;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.app-store-btn:hover {
  background: #1F2937;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.25);
}

.app-store-btn-header {
  padding: 0.35rem 0.8rem !important;
  gap: 0.5rem !important;
  border-radius: 9px !important;
}

.app-store-svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  flex-shrink: 0;
}

.app-store-btn-header .app-store-svg {
  width: 26px !important;
  height: 26px !important;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-store-text .sub {
  font-size: 0.7rem;
  color: #D1D5DB;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.app-store-btn-header .app-store-text .sub {
  font-size: 0.6rem !important;
  margin-bottom: 0.1rem !important;
}

.app-store-text .main {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.app-store-btn-header .app-store-text .main {
  font-size: 0.95rem !important;
}

.hero-mockup {
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

/* Section Common */
.section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Features Grid (2 Columns for detail) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.feature-emoji {
  font-size: 2rem;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-item {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
}

.feature-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.2rem;
}

.feature-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tech Highlights Grid */
.tech-section {
  background: #F7F7F0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.tech-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.tech-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Clean Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Aux Pages */
.page-wrap {
  padding: 130px 0 80px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.page-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-primary);
}

.page-card h2:first-child {
  margin-top: 0;
}

.page-card p, .page-card ul {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.page-card ul {
  padding-left: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .features-grid, .tech-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .feature-header {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }
}
