/* ============================================
   P WEBSITE - Clean Minimal Landing Page
   ============================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-tertiary: #f0f0f0;
  --bg-card: #ffffff;
  --bg-hover: #f5f5f5;

  --accent: #000000;
  --accent-dim: rgba(0, 0, 0, 0.05);
  --accent-mid: rgba(0, 0, 0, 0.1);

  --text-primary: #111111;
  --text-secondary: #6b7280;
  --text-tertiary: #b0b0b0;

  --border: #e5e5e5;
  --border-subtle: #efefef;

  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-w: 1100px;
  --transition: 150ms ease;
}

/* ============ RESET ============ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: #000000; }

/* ============ GRID BACKGROUND ============ */

.grid-bg { display: none; }

/* ============ NEON LINE ============ */

.neon-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #000000;
  z-index: 10000;
}

/* ============ SCANLINES ============ */

.scanlines { display: none; }

/* ============ NAV ============ */

.nav {
  position: fixed;
  top: 2px;
  left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 900;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: none;
  border-radius: 8px;
  color: #ffffff;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #000000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition);
}

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

.nav-link-cta {
  color: #ffffff;
  background: #000000;
  border: none;
}

.nav-link-cta:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding-top: 140px;
  overflow: hidden;
}

.hero::before,
.hero::after { display: none; }

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px; height: 6px;
  background: #000000;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title-line {
  display: block;
  color: var(--text-primary);
}

.hero-title-accent {
  display: block;
  color: #000000;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 60px;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ============ APP PREVIEW ============ */

.hero-visual {
  position: relative;
  z-index: 2;
  margin-bottom: -60px;
}

.app-preview {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 48px rgba(0, 0, 0, 0.06);
  max-width: 900px;
  margin: 0 auto;
}

.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }

.preview-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}

.preview-body {
  display: flex;
  min-height: 340px;
}

.preview-sidebar {
  width: 200px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  flex-shrink: 0;
}

.p-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 6px;
  margin-bottom: 2px;
}

.p-nav-item.p-active {
  background: var(--accent-dim);
  color: #000000;
  font-weight: 500;
}

.p-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  width: 16px;
  text-align: center;
}

.p-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
}

.p-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 6px;
}

.p-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 8px 10px 4px;
  text-transform: uppercase;
}

.p-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.preview-content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-left-color var(--transition);
}

.p-card:nth-child(1) { border-left-color: #000000; }
.p-card:nth-child(2) { border-left-color: #6b7280; }
.p-card:nth-child(3) { border-left-color: #3b82f6; }
.p-card:nth-child(4) { border-left-color: #8b5cf6; }

.p-card-top {
  margin-bottom: 4px;
}

.p-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 3px;
}

.p-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.p-card-text {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-card-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.p-card-tags span {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-hover);
  border-color: #d0d0d0;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: #d0d0d0;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 14px;
}

.btn-full { width: 100%; }

.btn-glow { display: none; }

.btn-icon {
  display: flex;
  align-items: center;
}

/* ============ SECTIONS ============ */

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ============ FEATURES ============ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #000000;
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
}

.feature-icon svg { stroke: #000000; }

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ SECURITY ============ */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.25s ease;
}

.security-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.security-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.security-icon-wrap {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-shrink: 0;
}

.security-icon-wrap svg { stroke: #000000; }

.security-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.security-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.security-detail {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
}

.security-detail code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

/* ============ DOWNLOAD ============ */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 40px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #000000;
}

.download-card:hover {
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.download-icon {
  margin-bottom: 20px;
}

.download-icon svg { fill: #000000; }

.download-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.download-info {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-download {
  font-size: 12px;
}

.download-size {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 10px;
}

.download-alt {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.download-alt-label {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.download-alt-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #000000;
  transition: all var(--transition);
}

.download-alt-link:hover {
  opacity: 0.7;
}

.download-note {
  text-align: center;
}

.download-note p {
  font-size: 13px;
  color: var(--text-secondary);
}

.download-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
}

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

/* ============ CTA ============ */

.section-cta {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 120px 0;
}

.cta-inner { text-align: center; }

.cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.cta-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #000000;
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-link:hover { color: #000000; }

.footer-sep {
  color: var(--text-tertiary);
  font-size: 10px;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav-mobile-toggle { display: flex; }

  .hero { padding-top: 120px; }
  .hero-stats { flex-direction: column; gap: 12px; padding: 20px; }
  .stat-sep { width: 40px; height: 1px; }

  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; max-width: 400px; }

  .preview-sidebar { display: none; }

  .section { padding: 60px 0; }
  .section-cta { padding: 80px 0; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-left { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 14px 20px; }
}

/* ============ ANIMATIONS (scroll reveal) ============ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
