/* CSS Custom Properties */
:root {
  --color-bg: #fef8f3;
  --color-surface: #ffffff;
  --color-accent: #d97757;
  --color-accent-dark: #c25a3a;
  --color-accent-light: #f4a582;
  --color-text: #2d2424;
  --color-text-muted: #8b7355;
  --color-border: #f0ddd1;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 18px;
  --font-size-h1: 3rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --line-height-body: 1.7;
  --line-height-heading: 1.3;

  --spacing-section: 100px;
  --spacing-section-mobile: 60px;
  --spacing-card: 32px;
  --spacing-container: 1200px;

  --radius-card: 12px;
  --radius-button: 8px;

  --shadow-card: 0 4px 12px rgba(217, 119, 87, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-to-content:focus { top: 0; }

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  color: var(--color-text);
}
h1 { font-size: var(--font-size-h1); font-weight: 700; }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
p { margin-bottom: 1rem; }

/* Links */
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }
a:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.2);
  text-decoration: none;
}
.btn:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
  color: #ffffff;
}
.btn:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.btn-cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.2);
  text-decoration: none;
}
.btn-cta:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.3);
  color: #ffffff;
}

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

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Utilities */
.text-center { text-align: center; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--spacing-container);
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}
.navbar-logo img { width: 32px; height: 32px; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.navbar-nav a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.navbar-nav a:hover { color: var(--color-accent); background-color: var(--color-bg); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger:focus { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.hamburger span { width: 24px; height: 2px; background-color: var(--color-text); transition: all 0.2s ease; }

/* Footer */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 24px 20px;
}
.footer-content { max-width: var(--spacing-container); margin: 0 auto; text-align: center; }
.footer-copyright { color: var(--color-text-muted); font-size: 0.875rem; margin: 0 0 4px 0; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.875rem; margin: 0; }

/* Hero Section */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(135deg, var(--color-bg) 0%, #fff5ed 100%);
  text-align: center;
}
.hero h1 { margin-bottom: 24px; }
.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* Our Apps Section */
.our-apps {
  padding: var(--spacing-section) 0;
  background-color: var(--color-surface);
}
.our-apps h2 { margin-bottom: 8px; }

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 40px;
}

.our-app-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, #fff5ed 100%);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.our-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(217, 119, 87, 0.15);
  border-color: var(--color-accent-light);
}
.our-app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.our-app-icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.our-app-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.our-app-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.our-app-badge-live { background: #16a34a; }
.our-app-card p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 16px; }
.our-app-features { display: flex; flex-wrap: wrap; gap: 8px; }
.our-app-features span {
  padding: 4px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.our-app-card .btn-cta {
  margin-top: 16px;
  display: inline-block;
  font-size: 0.9375rem;
  padding: 10px 20px;
}

/* Why Us / Values Section */
.why-us {
  padding: var(--spacing-section) 0;
  background-color: var(--color-bg);
}
.why-us h2 { margin-bottom: 40px; }
.value-point { text-align: center; padding: 24px; }
.value-point svg { margin: 0 auto 16px; }
.value-point h4 { margin-bottom: 8px; font-size: 1rem; }
.value-point p { color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.6; }

/* Support / Contact Section */
.support {
  padding: var(--spacing-section) 0;
  background-color: var(--color-surface);
}
.support h2 { margin-bottom: 16px; }
.support p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--color-text-muted);
}

/* About Page */
.about-page { padding: var(--spacing-section) 0; background-color: var(--color-bg); }
.about-content { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.about-content h1 { text-align: center; margin-bottom: 48px; font-size: 2rem; }
.about-section { margin-bottom: 48px; }
.about-section h2 { margin-bottom: 16px; font-size: 1.5rem; }
.about-section p { margin-bottom: 16px; line-height: 1.7; }
.about-section a { font-weight: 600; }
.values-list { display: grid; gap: 24px; margin-top: 24px; }
.value-item {
  padding: 24px;
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(217, 119, 87, 0.12); }
.value-item h3 { margin-bottom: 8px; color: var(--color-accent); }
.value-item p { margin: 0; color: var(--color-text-muted); line-height: 1.6; }

/* Privacy Policy Page */
.privacy-policy { padding: var(--spacing-section) 0; background-color: var(--color-surface); }
.privacy-content { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.privacy-last-updated { color: var(--color-text-muted); font-size: 0.875rem; margin-bottom: 24px; }
.privacy-content h1 { margin-bottom: 24px; font-size: 2rem; }
.privacy-intro { margin-bottom: 40px; line-height: 1.8; }
.policy-section { margin-bottom: 40px; }
.policy-section h2 { margin-bottom: 16px; font-size: 1.5rem; }
.policy-section h3 { margin: 24px 0 12px; font-size: 1.125rem; }
.policy-section p { margin-bottom: 12px; line-height: 1.7; }
.policy-section ul { margin: 12px 0 16px 24px; }
.policy-section li { margin-bottom: 8px; line-height: 1.6; }
.policy-section a { font-weight: 600; }

/* Responsive */
@media (max-width: 640px) {
  .hamburger { display: flex; }
  .navbar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
    gap: 0;
    display: none;
    box-shadow: 0 4px 12px rgba(217, 119, 87, 0.08);
  }
  .navbar-nav.active { display: flex; }
  .navbar-nav a { padding: 14px 20px; width: 100%; border-radius: 0; }

  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1.125rem; }

  .our-apps, .why-us, .support, .about-page { padding: var(--spacing-section-mobile) 0; }
  .our-app-card { padding: 24px; }
  .our-app-card-header { flex-direction: column; align-items: flex-start; }

  .privacy-policy { padding: var(--spacing-section-mobile) 0; }
  .privacy-content { padding: 24px 16px; }
  .privacy-content h1 { font-size: 1.5rem; }

  .section-subtitle { font-size: 1rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 100px 0 80px; }
  .hero h1 { font-size: 2.5rem; }
  .our-apps, .why-us, .support { padding: var(--spacing-section-mobile) 0; }
}
