/* Postbee Static Site - Mobile-first, Accessible Styles */

:root {
  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #8b5cf6 50%,
    #ec4899 100%
  );
  --border: #e2e8f0;
  --focus-outline: #6366f1;
  --focus-ring: rgba(99, 102, 241, 0.3);

  /* Value prop colors */
  --prop-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --prop-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --prop-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --prop-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

  --prop-1-bg: rgba(102, 126, 234, 0.1);
  --prop-2-bg: rgba(245, 87, 108, 0.1);
  --prop-3-bg: rgba(79, 172, 254, 0.1);
  --prop-4-bg: rgba(67, 233, 123, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #818cf8;
    --accent-hover: #a78bfa;
    --accent-gradient: linear-gradient(
      135deg,
      #818cf8 0%,
      #a78bfa 50%,
      #f472b6 100%
    );
    --border: #334155;
    --focus-outline: #818cf8;
    --focus-ring: rgba(129, 140, 248, 0.3);

    /* Value prop colors - darker theme */
    --prop-1: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --prop-2: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
    --prop-3: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    --prop-4: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);

    --prop-1-bg: rgba(129, 140, 248, 0.15);
    --prop-2-bg: rgba(244, 114, 182, 0.15);
    --prop-3-bg: rgba(96, 165, 250, 0.15);
    --prop-4-bg: rgba(52, 211, 153, 0.15);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image: radial-gradient(
      at 0% 0%,
      rgba(99, 102, 241, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: radial-gradient(
        at 0% 0%,
        rgba(129, 140, 248, 0.05) 0%,
        transparent 50%
      ),
      radial-gradient(
        at 100% 100%,
        rgba(167, 139, 250, 0.05) 0%,
        transparent 50%
      );
  }
}

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

.skip-link:focus {
  top: 0;
}

/* Header */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
  header {
    background-color: rgba(15, 23, 42, 0.9);
  }
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
}

/* Hero section (home page) */
.hero {
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background: radial-gradient(
      circle,
      rgba(129, 140, 248, 0.15) 0%,
      transparent 70%
    );
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.value-props {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
  text-align: left;
}

@media (min-width: 640px) {
  .value-props {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-prop {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--prop-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-prop:nth-child(1)::before {
  background: var(--prop-1);
}

.value-prop:nth-child(2)::before {
  background: var(--prop-2);
}

.value-prop:nth-child(3)::before {
  background: var(--prop-3);
}

.value-prop:nth-child(4)::before {
  background: var(--prop-4);
}

.value-prop:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .value-prop:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
}

.value-prop:hover::before {
  opacity: 1;
}

.value-prop:nth-child(1) {
  background: var(--prop-1-bg);
}

.value-prop:nth-child(2) {
  background: var(--prop-2-bg);
}

.value-prop:nth-child(3) {
  background: var(--prop-3-bg);
}

.value-prop:nth-child(4) {
  background: var(--prop-4-bg);
}

.value-prop h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.value-prop:nth-child(1) h3 {
  background: var(--prop-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-prop:nth-child(2) h3 {
  background: var(--prop-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-prop:nth-child(3) h3 {
  background: var(--prop-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-prop:nth-child(4) h3 {
  background: var(--prop-4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-prop p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cta-button {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.875rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Legal pages */
.legal-page {
  max-width: 900px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.legal-page h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-page p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-page ul,
.legal-page ol {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--text-secondary);
}

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

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover,
.legal-page a:focus {
  color: var(--accent-hover);
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  nav {
    display: none;
  }

  main {
    max-width: 100%;
    padding: 0;
  }
}
