/* ==========================================================================
   pfarbyte Software & Mobile Apps - Deep Obsidian Black & Chrome Design System
   ========================================================================== */

:root {
  --bg-primary: #040406;
  --bg-secondary: #0a0a0d;
  --bg-card: rgba(16, 16, 20, 0.75);
  --bg-card-hover: rgba(26, 26, 34, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.25);

  --accent-silver: #e2e8f0;
  --accent-chrome: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.35);
  --accent-purple: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --text-dim: #52525b;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% -10%, #1e1e26 0%, #040406 70%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #ffffff 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(4, 4, 6, 0.85);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
  transform: scale(1.12) rotate(-3deg);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
}

.logo-badge {
  display: none;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  color: #040406;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-emerald-glow);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-emerald-glow);
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-preview-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  background: var(--bg-card);
}

.hero-preview-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-preview-wrapper:hover .hero-preview-img {
  transform: scale(1.03);
}

/* App Portfolio Section */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.app-card.featured {
  border-color: rgba(16, 185, 129, 0.4);
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.1) 0%, rgba(16, 16, 20, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  background: var(--bg-card-hover);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #065f46);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px var(--accent-emerald-glow);
}

.app-icon-alt {
  background: linear-gradient(135deg, #38bdf8, #1e3a8a);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.app-title h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.app-title span {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.app-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.app-features-list {
  list-style: none;
  margin-bottom: 28px;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.app-features-list li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: bold;
}

.app-actions {
  display: flex;
  gap: 12px;
}

/* Spotlight Section */
.spotlight-banner {
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(12, 12, 16, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  backdrop-filter: blur(16px);
}

.spotlight-mockup {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  border: 6px solid #1a1a22;
}

.spotlight-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
}

.feature-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

/* Regulatory Disclosure (G2RS Requirements) */
.disclosure-card {
  background: rgba(16, 16, 22, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
  backdrop-filter: blur(16px);
}

.disclosure-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.disclosure-header h2 {
  font-size: 1.5rem;
  color: #fde047;
}

.disclosure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.disclosure-lang h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.disclosure-lang p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.disclosure-lang ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.disclosure-lang ul li {
  margin-bottom: 8px;
}

/* Tabs & Privacy Policy */
.tabs-container {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: #ffffff;
  color: #040406;
  border-color: #ffffff;
}

.policy-content {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
}

.policy-content.active {
  display: block;
}

.policy-content h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.policy-content h2 {
  font-size: 1.3rem;
  margin: 28px 0 14px;
  color: #e2e8f0;
}

.policy-content h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.policy-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.policy-content ul {
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.policy-content code {
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--accent-cyan);
  font-family: monospace;
}

.policy-content a {
  color: var(--accent-cyan);
}

/* App Ads verification box */
.ads-txt-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(16px);
}

.ads-txt-code {
  background: #000;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  color: var(--accent-emerald);
  font-size: 0.95rem;
  word-break: break-all;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Interactive Simulator */
.demo-simulator {
  background: #08080a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 40px;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sim-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.sim-input-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sim-input-group input, .sim-input-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  outline: none;
}

.sim-summary {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .spotlight-banner, .disclosure-grid, .sim-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
