/* PocketDev — FidoTown Tactile × Next-Gen Agentic AI Web Design System */
:root {
  --bg-carbon: #16181d;
  --bg-carbon-2: #1f222a;
  --bg-card: #22252e;
  --bg-pearl: #f4f5f7;
  --orange: #f25c05;
  --orange-bright: #ff6e1a;
  --orange-pressed: #b83b00;
  --teal: #1abec2;
  --teal-dark: #12999d;
  --text-light: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #22252a;
  --border-dark: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-carbon);
  color: var(--text-light);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.pd-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #262930 0%, #181a20 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--orange), var(--teal)) 1;
  backdrop-filter: blur(12px);
}

.pd-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pd-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 1.22rem;
  color: #fff;
  text-decoration: none !important;
  flex-shrink: 0;
}

.pd-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.pd-brand .dev {
  color: var(--orange);
}

.pd-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pd-links a {
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}

.pd-links a:hover,
.pd-links a.active {
  color: var(--teal);
  text-decoration: none;
}

.pd-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pd-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
}

.pd-mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 16px;
  background: #1b1d24;
  border-top: 1px solid var(--border-dark);
}

.pd-mobile-drawer.open {
  display: flex;
}

.pd-mobile-drawer a {
  color: #e5e7eb;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.pd-mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.93rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.pd-btn:active {
  transform: scale(0.95);
}

.pd-btn-orange {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  color: #fff;
  box-shadow: 0 8px 24px rgba(242, 92, 5, 0.35);
}

.pd-btn-teal {
  background: rgba(26, 190, 194, 0.14);
  color: var(--teal);
  border: 1px solid rgba(26, 190, 194, 0.45);
}

.pd-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 16px;
}

.pd-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 24px;
}

.pd-ad-slot {
  margin: 24px auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-align: center;
  min-height: 100px;
}

.pd-ad-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pd-quick-answer {
  background: linear-gradient(135deg, rgba(26, 190, 194, 0.12), rgba(242, 92, 5, 0.1));
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
}

.pd-quick-answer strong {
  color: var(--teal);
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pd-footer {
  background: #111216;
  border-top: 1px solid var(--border-dark);
  padding: 40px 16px 24px;
  margin-top: 52px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pd-footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.pd-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.pd-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-footer li {
  margin-bottom: 8px;
}

.pd-footer a {
  color: var(--text-muted);
}

.pd-footer a:hover {
  color: var(--orange);
}

.pd-footer-bottom {
  max-width: 1180px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .pd-links {
    display: none;
  }

  .pd-menu-toggle {
    display: inline-flex;
  }
}