/* PinStaQ Website - Main Stylesheet */
/* Optimized and extracted from inline styles */

:root{
  /* PinStaQ Warm Community Palette */
  --primary:#D97757; /* Terracotta - warm, trustworthy, approachable */
  --secondary:#A8B8A8; /* Sage Green - growth, sustainability */
  --accent:#F4D35E; /* Golden Honey - warmth, optimism */
  --coral:#E8735A; /* Coral - human touch */
  --purple:#C8A8D8; /* Soft Purple - care, inclusivity */

  /* Legacy color aliases for compatibility */
  --blue:var(--primary);
  --green:var(--secondary);
  --yellow:var(--accent);

  --ink:#1A1A1A;
  --text:#2C2C2C;
  --muted:#6B6B6B;
  --card:#2C2C2C;
  --card2:#3A3A3A;
  --border:rgba(232,221,213,.25);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(244,211,94,.35), 0 0 0 6px rgba(217,119,87,.22);
}

*{ box-sizing:border-box; }

/* Improved universal focus styles for accessibility */
*:focus {
  outline: 2px solid #FFC107;
  outline-offset: 2px;
}

/* Optimize images and SVG for performance */
img, svg {
  max-width: 100%;
  height: auto;
}

html, body{ height:100%; }
body{
  margin:0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color:#fff;
  background: radial-gradient(1100px 700px at 25% 10%, rgba(217,119,87,.25), transparent 60%),
              radial-gradient(900px 650px at 85% 20%, rgba(168,184,168,.18), transparent 55%),
              radial-gradient(900px 650px at 65% 95%, rgba(244,211,94,.15), transparent 55%),
              linear-gradient(180deg, #1A1A1A 0%, #0f0f0f 100%);
  overflow-x:hidden;
}

/* Skip link for accessibility */
/* Skip link removed - not in use */

/* Subtle animated gradient veil */
.veil{
  position:fixed;
  inset:0;
  pointer-events:none;
  background: linear-gradient(120deg,
    rgba(0,123,255,.18),
    rgba(40,167,69,.12),
    rgba(255,193,7,.12),
    rgba(0,0,0,0));
  background-size: 300% 300%;
  animation: drift 16s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity:.85;
}
@keyframes drift{
  0%{ background-position: 0% 45%; }
  50%{ background-position: 100% 55%; }
  100%{ background-position: 0% 45%; }
}

/* Canvas particles */
#bg-canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  opacity:.55;
}

.wrap{ position:relative; z-index:1; }
.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(5,8,20,.62);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}
.brand-mark{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand-mark .logo-image{
  width:48px;
  height:48px;
  display:block;
  object-fit:contain;
}

.logo-text{
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight:700;
  letter-spacing:0.5px;
  line-height:1;
  font-size:22px;
  color:#fff;
}

.tagline{
  margin-top:3px;
  font-size:12.5px;
  color: rgba(255,255,255,.78);
}

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

/* HERO */
.hero{
  display:flex;
  align-items:flex-start;
  padding: 0 0 36px;
  position:relative;
}
.hero > .container > .reveal{
  text-align: center;
  margin-bottom: 20px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:start;
}
.hero-microtag {
  margin: 0 0 1.4rem;
  font-size: 1.25rem;        /* was ~1.05rem → clearer hierarchy */
  font-weight: 500;
  line-height: 1.45;
  color: #7CFF9B;            /* lime green accent */
  letter-spacing: 0.2px;
  max-width: 42rem;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(0,123,255,.14);
  border: 1px solid rgba(0,123,255,.28);
  color: rgba(255,255,255,.92);
  font-weight:700;
  font-size:13px;
}
.kicker .dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(40,167,69,.18);
}

h1{
  font-family:Poppins, Roboto, sans-serif;
  font-weight:800;
  line-height:1.06;
  letter-spacing:-.6px;
  margin: 0 0 28px;
  font-size: clamp(34px, 4.4vw, 54px);
  text-align: center;
  max-width: 100%;
  /* Improved gradient fallback for Firefox */
  background: linear-gradient(135deg, #fff 0%, #7CFF9B 50%, #FFC107 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.subhead{
  color: rgba(255,255,255,.92);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height:1.7;
  margin: 0 0 18px;
  max-width: 62ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  text-decoration:none;
  color:#fff;
  font-weight:800;
  user-select:none;
  cursor:pointer;
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.10); }
.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn-primary{
  background: linear-gradient(135deg, rgba(0,123,255,.95), rgba(40,167,69,.92));
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 18px 55px rgba(0,123,255,.24);
}
.btn-primary:hover{ background: linear-gradient(135deg, rgba(0,123,255,1), rgba(40,167,69,.98)); }
.btn-primary:active{ transform: scale(0.98); }
.btn-primary.loading{
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

.metrics{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 18px;
}
.chip{
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  font-size: 13px;
  color: rgba(255,255,255,.85);
  user-select:none;
}
.chip b{ color:#fff; }

/* Map card */
.map-card{
  position:relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 30px 20px 18px;
  min-height: 450px;
}
.map-card::before{
  content:"";
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(500px 250px at 25% 15%, rgba(0,123,255,.28), transparent 60%),
    radial-gradient(520px 280px at 80% 55%, rgba(40,167,69,.22), transparent 62%),
    radial-gradient(520px 280px at 45% 95%, rgba(255,193,7,.16), transparent 62%);
  opacity:.95;
  filter: blur(2px);
}
.map-inner{
  position:relative;
  padding: 18px 18px 12px;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.map-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.map-title h2{
  margin:0;
  font-family:Poppins, Roboto, sans-serif;
  font-weight:800;
  font-size: 18px;
  letter-spacing:-.2px;
}
.map-title span{
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.12);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  user-select:none;
}

.map-svg{
  width:100%;
  flex:1;
  display:block;
  margin: 8px auto 0;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
}

.map-cta{
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  letter-spacing: 0.3px;
  font-family: Poppins, sans-serif;
}

/* SECTIONS */
section{ padding: 56px 0; }
.section-title{
  font-family:Poppins, Roboto, sans-serif;
  font-weight:800;
  letter-spacing:-.3px;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 10px;
}
.section-sub{
  color: rgba(255,255,255,.82);
  margin: 0 0 22px;
  line-height:1.7;
  max-width: 75ch;
}

.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  padding: 0;
  position:relative;
  overflow:hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.card-image{
  width: 100%;
  height: 192px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  background: rgba(0,0,0,.3);
}

.card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-image img{
  transform: scale(1.05);
}
.card::before{
  content:"";
  position:absolute;
  inset:-60px;
  opacity:.35;
  filter: blur(1px);
  transform: rotate(12deg);
}
.card.blue::before{
  background: radial-gradient(420px 220px at 30% 30%, rgba(0,123,255,.65), transparent 60%);
}
.card.green::before{
  background: radial-gradient(420px 220px at 30% 30%, rgba(40,167,69,.65), transparent 60%);
}
.card.yellow::before{
  background: radial-gradient(420px 220px at 30% 30%, rgba(255,193,7,.70), transparent 60%);
}
.card.mix::before{
  background:
    radial-gradient(420px 220px at 30% 30%, rgba(0,123,255,.55), transparent 60%),
    radial-gradient(420px 220px at 70% 60%, rgba(40,167,69,.40), transparent 62%);
}

.card h3{
  position:relative;
  margin:0 0 10px;
  padding: 16px 16px 0;
  font-family:Poppins, Roboto, sans-serif;
  font-weight:800;
  letter-spacing:-.2px;
  font-size: 18px;
}
.bullets{
  position:relative;
  margin:0;
  padding: 0 16px 16px;
  list-style:none;
  color: rgba(255,255,255,.86);
  line-height:1.65;
  font-size: 14px;
  flex: 1;
}
.bullets li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 6px 0;
}
.bullets .check{
  width:22px; height:22px;
  border-radius: 8px;
  display:grid;
  place-items:center;
  flex: 0 0 22px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  color:#fff;
  font-size: 13px;
  line-height:1;
  margin-top: 1px;
}
/* Location City Pin*/
.map-marker {
  cursor: pointer;
}
/* Abbreviation support */
.map-label.short { display: none; }

.map-marker .pin-icon {
  fill: #7CFF9B;
  filter: drop-shadow(0 0 6px rgba(124,255,155,.45));
}

.map-label {
  fill: rgba(255,255,255,.92);
  font-size: 12px;
  font-family: Roboto, sans-serif;
  dominant-baseline: middle;
}

.map-marker:hover .pin-icon {
  transform: translate(-12px,-24px) scale(1.25);
  transition: transform .2s ease;
}
/* Randomized pin colors for visual variety */
.map-marker.dublin .pin-icon { fill: #FF6B9D; filter: drop-shadow(0 0 6px rgba(255,107,157,.45)); }
.map-marker.london .pin-icon { fill: #4DA3FF; filter: drop-shadow(0 0 6px rgba(77,163,255,.45)); }
.map-marker.paris .pin-icon { fill: #FFC107; filter: drop-shadow(0 0 6px rgba(255,193,7,.45)); }
.map-marker.amsterdam .pin-icon { fill: #FF5722; filter: drop-shadow(0 0 6px rgba(255,87,34,.45)); }
.map-marker.brussels .pin-icon { fill: #26C6DA; filter: drop-shadow(0 0 6px rgba(38,198,218,.45)); }
.map-marker.berlin .pin-icon { fill: #7CFF9B; filter: drop-shadow(0 0 6px rgba(124,255,155,.45)); }
.map-marker.warsaw .pin-icon { fill: #9C7CFF; filter: drop-shadow(0 0 6px rgba(156,124,255,.45)); }
.map-marker.stockholm .pin-icon { fill: #FFD54F; filter: drop-shadow(0 0 6px rgba(255,213,79,.45)); }
.map-marker.madrid .pin-icon { fill: #EF5350; filter: drop-shadow(0 0 6px rgba(239,83,80,.45)); }
.map-marker.rome .pin-icon { fill: #9575CD; filter: drop-shadow(0 0 6px rgba(149,117,205,.45)); }

/* Continent markers - surrounding Europe */
.map-marker.continent {
  opacity: 0.8;
}
.map-marker.continent .globe-icon {
  fill: currentColor;
  stroke: rgba(255,255,255,.3);
  stroke-width: 1;
}
.map-marker.continent .pin-icon {
  opacity: 0.85;
}
.continent-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
  font-style: italic;
}

/* Continent-specific colors */
.map-marker.americas .pin-icon { fill: #42A5F5; filter: drop-shadow(0 0 5px rgba(66,165,245,.35)); }
.map-marker.americas .globe-icon { color: #42A5F5; }
.map-marker.africa .pin-icon { fill: #FFA726; filter: drop-shadow(0 0 5px rgba(255,167,38,.35)); }
.map-marker.africa .globe-icon { color: #FFA726; }
.map-marker.middleeast .pin-icon { fill: #AB47BC; filter: drop-shadow(0 0 5px rgba(171,71,188,.35)); }
.map-marker.middleeast .globe-icon { color: #AB47BC; }
.map-marker.asia .pin-icon { fill: #EF5350; filter: drop-shadow(0 0 5px rgba(239,83,80,.35)); }
.map-marker.asia .globe-icon { color: #EF5350; }
.map-marker.oceania .pin-icon { fill: #26A69A; filter: drop-shadow(0 0 5px rgba(38,166,154,.35)); }
.map-marker.oceania .globe-icon { color: #26A69A; }

/* App teaser */
.teaser{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.teaser-left{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.teaser-left strong{
  font-family:Poppins, Roboto, sans-serif;
  font-weight:800;
  font-size: 18px;
}
.teaser-left span{
  color: rgba(255,255,255,.80);
  line-height:1.6;
  font-size: 14px;
}

.badges{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  user-select:none;
  pointer-events:none; /* non-functional */
}
.badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  filter: grayscale(1);
  opacity:.55;
  min-width: 210px;
}
.badge svg{
  width:22px; height:22px;
  flex: 0 0 22px;
  opacity:.92;
}
.badge .txt{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.badge .txt small{
  font-size: 11px;
  color: rgba(255,255,255,.74);
  font-weight:700;
  letter-spacing:.2px;
}
.badge .txt b{
  font-size: 15px;
  color: rgba(255,255,255,.92);
}

/* Footer */
footer{
  padding: 38px 0 48px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.signup{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 14px;
}
.signup label{
  display:block;
  font-weight:800;
  margin-bottom: 10px;
  font-family:Poppins, Roboto, sans-serif;
  letter-spacing:-.2px;
}
.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
input[type="email"]{
  flex: 1 1 220px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color:#fff;
  outline:none;
  font-size: 14px;
}
input[type="email"]::placeholder{ color: rgba(255,255,255,.55); }
input[type="email"]:focus{ box-shadow: var(--focus); border-color: rgba(255,193,7,.55); }

button{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(255,193,7,.96), rgba(0,123,255,.88));
  color:#0b1220;
  font-weight:900;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease;
  min-width: 140px;
}
button:hover{ transform: translateY(-1px); }
button:focus{ outline:none; box-shadow: var(--focus); }

.fineprint{
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.82);
  line-height:1.5;
}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform: translateX(-50%) translateY(30px);
  background: rgba(0,0,0,.76);
  border: 1px solid rgba(255,255,255,.14);
  color:#fff;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  opacity:0;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
  width: min(720px, calc(100% - 28px));
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.toast strong{ font-family:Poppins, Roboto, sans-serif; }
.toast button{
  background: rgba(255,255,255,.10);
  color:#fff;
  border: 1px solid rgba(255,255,255,.14);
  min-width: auto;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.toast button:hover{ transform:none; }
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}
.toast[data-type="error"]{
  background: rgba(220,38,38,.90);
  border-color: rgba(252,165,165,.30);
}
.toast[data-type="success"]{
  background: rgba(22,163,74,.90);
  border-color: rgba(134,239,172,.30);
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .map-card{
    min-height: 410px;
    padding: 24px 20px 16px;
  }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .nav-cta{ display:none; }
}

@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
  }

  .map-svg {
    width: 100%;
    height: auto;
    max-height: 450px;
  }
}

@media (max-width: 640px) {
  .hero-microtag {
    font-size: 1.15rem;
  }
}

/* Small screens: switch full labels to abbreviations */
@media (max-width: 560px){
  .map-label.full { display: none; }
  .map-label.short { display: inline; }
  .map-label {
    dx: -2px;          /* nudges text closer to pin */
    font-size: 10px;
    opacity: 0.9; }
}

@media (max-width: 560px){
  .grid-4{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
  .brand-mark{ width:42px; height:42px; }
  .brand-mark .logo-image{ width:42px; height:42px; }
  .logo-text{ font-size: 20px; }
  .tagline{ font-size: 12px; }
  .badge{ min-width: 100%; }
  button{ width:100%; }
}

/* SVG pulse animation (kept separate for clarity) */
.pulse{
  transform-origin: center;
  animation: pulse 2.6s ease-out infinite;
  opacity:.0;
}
.pulse:nth-of-type(1){ animation-delay: 0s; }
.pulse:nth-of-type(2){ animation-delay: .5s; }
.pulse:nth-of-type(3){ animation-delay: 1.0s; }
.pulse:nth-of-type(4){ animation-delay: 1.5s; }
@keyframes pulse{
  0%{ transform: scale(.65); opacity: 0; }
  18%{ opacity: .55; }
  100%{ transform: scale(1.45); opacity: 0; }
}

/* Smooth Scroll Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation utility classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
  animation: slideInFromLeft 0.7s ease-out forwards;
}

.animate-slide-right {
  animation: slideInFromRight 0.7s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Scroll reveal with Intersection Observer support */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}
