/* ============================================
   PinSuite Design System — Neo Brutalism
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[x-cloak] { display: none !important; }

:root {
  --black: #1a1a1a;
  --white: #fffcf5;
  --bg-alt: #f0ecdf;
  --pink: #ff6b9d;
  --yellow: #ffe156;
  --blue: #56c2ff;
  --green: #7cff6b;
  --purple: #c56bff;
  --orange: #ff9f43;
  --red: #ff6b6b;
  --border: 1.5px solid var(--black);
  --border-thin: 1px solid var(--black);
  --shadow: 3px 3px 0px var(--black);
  --shadow-sm: 1.5px 1.5px 0px var(--black);
  --shadow-lg: 5px 5px 0px var(--black);
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --font-sans: 'Inter', 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-weight: 620; letter-spacing: -0.2px; line-height: 1.3; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.8px; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h3 { font-size: 1rem; }
p { line-height: 1.75; font-size: 0.92rem; }
a { color: var(--black); }

.highlight {
  background: var(--yellow);
  border: var(--border);
  padding: 0.05em 0.2em;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  transform: rotate(-1deg);
}

.mono { font-family: var(--font-mono); }

/* ---- NAV PUBLIC ---- */
.nav {
  padding: 0.85rem 2.5rem;
  border-bottom: var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}


.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  background: var(--pink);
  border: var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}

.nav-brand:hover .logo-text {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--black);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding-bottom: 2px;
}

.nav-links a:hover { border-bottom: 2px solid var(--black); }
.nav-links a.active { border-bottom: 3px solid var(--pink); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; font-weight: 500; font-size: 0.9rem; padding-bottom: 2px; }
.nav-dropdown-toggle:hover { border-bottom: 2px solid var(--black); }
.nav-dropdown-toggle svg { opacity: 0.5; transition: transform 0.15s; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%);
  background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.4rem; min-width: 220px; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; animation: fmFadeIn 0.12s ease-out; }
@keyframes fmFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-dropdown-menu a {
  display: block; padding: 0.55rem 0.85rem; text-decoration: none; font-size: 0.82rem; font-weight: 600;
  color: var(--black); border-radius: var(--radius-sm); transition: background 0.1s; border-bottom: none !important;
}
.nav-dropdown-menu a:hover { background: var(--yellow); border-bottom: none !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- NAV APP ---- */
.nav-app-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-app-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-app-links a:hover { background: var(--bg-alt); }

.nav-app-links a.active {
  background: var(--yellow);
  border: var(--border-thin);
  box-shadow: 2px 2px 0 var(--black);
}

.avatar {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---- BUTTONS ---- */
.btn {
  padding: 0.6rem 1.2rem;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--black);
}

.btn:hover { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--black); }

.btn-primary { background: var(--pink); }
.btn-secondary { background: var(--yellow); }
.btn-blue { background: var(--blue); }
.btn-green { background: var(--green); }
.btn-purple { background: var(--purple); }
.btn-danger { background: var(--red); }

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.btn-sm:hover { box-shadow: 1px 1px 0 var(--black); }

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
}
.btn-lg:hover { box-shadow: var(--shadow); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.card-hover { transition: transform 0.15s, box-shadow 0.15s; }
.card-hover:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--black);
}

/* ---- INPUTS ---- */
.input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  background: var(--white);
  outline: none;
  transition: box-shadow 0.15s;
}

.input:focus { box-shadow: var(--shadow); }
.input::placeholder { color: #aaa; }

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: var(--border-thin);
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.badge-pink { background: var(--pink); }
.badge-blue { background: var(--blue); }
.badge-green { background: var(--green); }
.badge-purple { background: var(--purple); }
.badge-yellow { background: var(--yellow); }
.badge-orange { background: var(--orange); }

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: var(--border-thin);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-alt);
  cursor: pointer;
  transition: all 0.1s;
}

.tag:hover, .tag.active { background: var(--yellow); box-shadow: 2px 2px 0 var(--black); }

/* ---- LAYOUT ---- */
.section { padding: 5.5rem 2.5rem; }
.section-alt { background: var(--bg-alt); border-top: var(--border); border-bottom: var(--border); }
.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }
.container-xs { max-width: 600px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* ---- FOOTER ---- */
.footer {
  border-top: var(--border);
  padding: 4rem 2.5rem;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer h4, .footer .footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--yellow);
}

.footer a { color: var(--white); text-decoration: none; font-size: 0.9rem; opacity: 0.7; display: block; margin-bottom: 0.5rem; }
.footer a:hover { opacity: 1; }

.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-desc { font-size: 0.9rem; opacity: 0.5; line-height: 1.5; max-width: 280px; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,252,245,0.15);
  font-size: 0.8rem;
  opacity: 0.4;
  text-align: center;
}

/* ---- DIVIDER ---- */
.divider { display: flex; align-items: center; gap: 1rem; }
.divider-line { flex: 1; height: 2px; background: var(--black); opacity: 0.15; }
.divider-text { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; }

/* ---- SPINNER ---- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid var(--black);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- MOBILE MENU ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  background: var(--white);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 200;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 1rem;
  border: var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.mobile-menu a:nth-child(odd) { background: var(--yellow); }
.mobile-menu a:nth-child(even) { background: var(--blue); }

.mobile-menu-close {
  align-self: flex-end;
  background: var(--red);
  border: var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---- PROSE (Blog/Guides) ---- */
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.25rem; font-size: 1.05rem; color: #333; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { margin: 1rem 0 1.5rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; font-size: 1.05rem; color: #333; }
.prose img { width: 100%; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin: 1.5rem 0; }
.prose blockquote {
  border-left: 5px solid var(--pink);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  background: var(--bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(26,26,26,0.15);
}
.prose a { font-weight: 600; border-bottom: 2px solid var(--pink); text-decoration: none; }
.prose a:hover { color: var(--pink); }

/* ---- BROWSER MOCKUP ---- */
.browser-frame {
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: var(--border);
  background: var(--bg-alt);
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--black);
}

.browser-dot:nth-child(1) { background: var(--red); }
.browser-dot:nth-child(2) { background: var(--yellow); }
.browser-dot:nth-child(3) { background: var(--green); }

.browser-url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 2px solid rgba(26,26,26,0.15);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
  background: var(--white);
}

.browser-body { position: relative; }
.browser-body img { display: block; width: 100%; }

/* ---- TRUST LOGOS ---- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 2rem;
  border-bottom: var(--border);
  flex-wrap: wrap;
}

.trust-strip-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  font-weight: 700;
}

.trust-logo {
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.3;
  letter-spacing: -0.5px;
}

/* ---- GUARANTEE BADGE ---- */
.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--green);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 700;
}

.guarantee-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- TESTIMONIAL ENHANCED ---- */
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 0 0 var(--black);
}

/* ---- LIVE COUNTER ---- */
.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---- EXPORT PREVIEW ---- */
.export-card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.export-preview {
  height: 200px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.export-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.export-body {
  padding: 1.25rem;
}

.export-body h3 { margin-bottom: 0.25rem; }
.export-body p { font-size: 0.85rem; color: #666; }

/* ---- SECURITY SIGNALS ---- */
.security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.security-icon {
  width: 32px;
  height: 32px;
  border: var(--border-thin);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  flex-shrink: 0;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .section { padding: 3.5rem 2rem; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links, .nav-app-links { display: none; }
  .nav { padding: 1rem 1.25rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
