:root {
  --color-primary: #ec4899;
  --color-primary-dark: #db2777;
  --color-text: #1f2937;
  --color-text-muted: #57534e;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-surface: #f3f4f6;
  --color-border: #e5e7eb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 960px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --color-primary-text: #ffffff;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 27px; /* Offset for optical centering (roughly half logo width + gap) */
}

.header-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.app-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.app-logo.spinning {
  animation: vertical-spin 0.6s ease-in-out;
}

@keyframes vertical-spin {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(360deg);
  }
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
}

header .tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.hero .intro {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Screenshot Section */
.screenshot-section {
  padding: 3rem 0;
  background: var(--color-bg);
}

.screenshot-section .container {
  max-width: 1100px;
}

.screenshot-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2px;
  margin-bottom: -4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background-color 0.2s, transform 0.1s;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: var(--color-surface);
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-icon {
  float: left;
  width: 36px;
  height: 36px;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
}

.feature p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.feature ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  clear: left;
}

.feature li {
  margin-bottom: 0.5rem;
}

/* Use Cases Section */
.use-cases {
  padding: 4rem 0;
  background: var(--color-surface);
}

.use-cases h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.use-cases ul {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.use-cases li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  color: var(--color-text-muted);
  position: relative;
  padding-left: 2.5rem;
}

.use-cases li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Privacy Policy Styles */
.privacy-hero {
  padding: 3rem 0;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.privacy-hero .intro {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.privacy-content {
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.privacy-content .container {
  max-width: 720px;
}

.privacy-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.privacy-card.highlight-card {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-color: #f9a8d4;
}

.privacy-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.privacy-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.privacy-card ul {
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.privacy-card ul:last-child {
  margin-bottom: 0;
}

.privacy-card li {
  margin-bottom: 0.5rem;
}

.privacy-card li:last-child {
  margin-bottom: 0;
}

.summary-list {
  list-style: none;
  padding-left: 0;
}

.summary-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.summary-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.last-updated {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 2rem;
}

.privacy-cta {
  margin-top: 1rem;
}

/* Get Started Section */
.get-started {
  padding: 4rem 0;
  text-align: center;
  background: var(--color-bg-alt);
}

.get-started h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.get-started p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

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

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

footer a:hover {
  text-decoration: underline;
}

footer a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 640px) {
  .app-logo {
    width: 32px;
    height: 32px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  header .tagline {
    font-size: 1rem;
  }

  .hero .intro {
    font-size: 1.1rem;
  }

  .features h2,
  .use-cases h2,
  .get-started h2 {
    font-size: 1.5rem;
  }
}
