/* ===== PinVoyage Website Styles ===== */

:root {
  --bg-primary: #0A0E1A;
  --bg-secondary: #111827;
  --bg-card: #1A1F2E;
  --bg-card-hover: #222840;
  --teal: #00D4AA;
  --teal-dim: rgba(0, 212, 170, 0.15);
  --purple: #7C5CFC;
  --purple-dim: rgba(124, 92, 252, 0.15);
  --text-primary: #F0F0F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border: rgba(255, 255, 255, 0.08);
  --gradient-teal-purple: linear-gradient(135deg, var(--teal), var(--purple));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #33e0be;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Navigation ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-brand .icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-teal-purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--gradient-teal-purple);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Container ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 212, 170, 0.35), 0 0 80px rgba(124, 92, 252, 0.25);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-teal-purple);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.25);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 .gradient-text {
  background: var(--gradient-teal-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}

.badge-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--teal);
  color: var(--text-primary);
}

.badge-btn .badge-icon {
  font-size: 1.4rem;
}

.badge-btn .badge-icon-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.badge-btn .badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  text-align: left;
}

.hero-mockup {
  margin-top: 3rem;
  position: relative;
  display: inline-block;
}

/* iPhone frame */
.phone-frame {
  width: 300px;
  height: 610px;
  background: linear-gradient(180deg, #1a1a1c 0%, #0a0a0b 100%);
  border-radius: 48px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 32px 100px rgba(0, 212, 170, 0.15),
    0 16px 48px rgba(0, 0, 0, 0.6),
    0 0 0 2px #2a2a2d inset;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0e1a;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

.phone-status {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
  z-index: 2;
}

.phone-status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Map view — dark tile illusion with grid lines */
.phone-map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #0b1220 0%, #13182a 50%, #1a2338 100%);
}

/* Fake map "roads" via repeating gradients */
.phone-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.phone-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(0, 212, 170, 0.12) 42%, transparent 44%),
    linear-gradient(70deg, transparent 40%, rgba(124, 92, 252, 0.1) 52%, transparent 54%);
}

.phone-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Pins on the map */
.phone-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color, #00D4AA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 0 24px var(--color, rgba(0, 212, 170, 0.8));
  transform: translate(-50%, -50%);
  animation: pin-bounce 3s ease-in-out infinite;
  animation-delay: var(--delay);
  z-index: 2;
}

.phone-pin[data-color="#FF9F43"] { --color: #FF9F43; }
.phone-pin[data-color="#7C5CFC"] { --color: #7C5CFC; }
.phone-pin[data-color="#00D4AA"] { --color: #00D4AA; }
.phone-pin[data-color="#FC5C65"] { --color: #FC5C65; }
.phone-pin[data-color="#45AAF2"] { --color: #45AAF2; }

@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -60%) scale(1.08); }
}

/* Trip card overlay */
.phone-card {
  position: absolute;
  bottom: 76px;
  left: 16px;
  right: 16px;
  background: rgba(26, 34, 55, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.phone-card-flag {
  font-size: 28px;
  line-height: 1;
}

.phone-card-info {
  flex: 1;
  min-width: 0;
}

.phone-card-title {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.phone-card-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 500;
}

.phone-card-progress {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: linear-gradient(90deg, #00D4AA 60%, rgba(0, 212, 170, 0.2) 60%);
  border-radius: 0 0 16px 16px;
}

/* Bottom tab bar */
.phone-tabs {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  height: 44px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
  z-index: 3;
}

.phone-tab {
  width: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.phone-tab.active {
  background: #00D4AA;
  width: 26px;
  box-shadow: 0 0 8px #00D4AA;
}

/* Glow dots behind the phone */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.hero-glow-1 {
  width: 220px;
  height: 220px;
  background: rgba(0, 212, 170, 0.35);
  top: 10%;
  left: -60px;
}

.hero-glow-2 {
  width: 260px;
  height: 260px;
  background: rgba(124, 92, 252, 0.3);
  bottom: 10%;
  right: -80px;
}

.mockup-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.mockup-bar-line {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}

/* ===== Sections ===== */

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features Grid ===== */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card:nth-child(even) .feature-icon {
  background: var(--purple-dim);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== How It Works ===== */

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

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gradient-teal-purple);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ===== Pricing ===== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-teal-purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-yearly {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-yearly strong {
  color: var(--teal);
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features .check {
  color: var(--teal);
  font-weight: 700;
}

.pricing-features .cross {
  color: var(--text-muted);
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
}

.pricing-btn:hover {
  opacity: 0.9;
}

.pricing-btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.pricing-btn.filled {
  background: var(--gradient-teal-purple);
  color: #fff;
}

/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.footer-brand .icon {
  width: 28px;
  height: 28px;
  background: var(--gradient-teal-purple);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--teal);
}

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

/* ===== Legal / Support Pages ===== */

.page-header {
  padding: 8rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.05) 0%, transparent 100%);
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.legal-content, .support-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  color: var(--teal);
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.35rem;
}

/* ===== Support Page ===== */

.faq-section {
  margin-bottom: 3rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-block;
  background: var(--teal-dim);
  color: var(--teal);
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Animations ===== */

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

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

/* ===== Responsive ===== */

@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.98);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }

  .page-header {
    padding: 6rem 0 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .mockup-frame {
    width: 220px;
    height: 440px;
  }
}
