:root {
  --bg-primary: #ffffff;
  --text-primary: #0a0a0a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #000000;
  --accent-hover: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  /* Subtle glow for screenshot */
  --glow: rgba(59, 130, 246, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  height: 64px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem !important;
}

/* Hero Section */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 0.4rem 1rem;
  background: #f3f4f6;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.powered-by a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.powered-by a:hover {
  text-decoration: underline;
}

.powered-logo {
  height: 28px;
  width: auto;
  border-radius: 4px;
}

.hero-logo-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.nav-ph-badge {
  display: flex;
  align-items: center;
  height: 32px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-ph-badge:hover {
  opacity: 1;
}

.nav-ph-badge img {
  height: 100%;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-secondary:hover {
  background: #f9fafb;
}

/* Hero Visual */
.hero-visual {
  margin-top: 2rem;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* White background blends with transparent PNG edges naturally */
.img-frame {
  background: var(--bg-primary);
}

.img-frame img {
  display: block;
  width: 100%;
}

/* Features Section */
.features {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

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

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Screenshot Section */
.screenshots {
  padding: 80px 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.screenshot-gallery {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.screenshot-card {
  text-align: center;
}

.screenshot-card h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.footer-text a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Gatekeeper Tip */
.gatekeeper-tip {
  margin: -2rem auto 4rem;
  max-width: 580px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copy-box {
  display: flex;
  align-items: center;
  background: #e2e8f0;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 8px;
  width: 100%;
  gap: 1rem;
  border: 1px solid #cbd5e1;
}

.copy-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  flex: 1;
  text-align: left;
  word-break: break-all;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: #334155;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: #1e293b;
}

.btn-copy svg {
  opacity: 0.8;
}

.tip-badge {
  background: #334155;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gatekeeper-tip p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    margin-bottom: 2rem;
  }
  .gatekeeper-tip {
    margin-top: 0;
  }
  .btn {
    width: 100%;
  }
}
