/* Portfio marketing site — custom styles on top of Tailwind CDN
   Brand colours pulled from the Portfio brand sheet:
   purple #7c3aed · lilac #c084fc · cyan #22d3ee · emerald #4ade80 */

:root {
  --bg: #050507;
  --bg-2: #0a0a14;
  --card: #0e0e16;
  --border: #1a1a26;
  --border-2: #2a2440;
  --text: #f8f8fb;
  --text-2: #c8c8d8;
  --text-3: #9b9bb0;
  --text-4: #6f6f86;
  --purple: #7c3aed;
  --lilac: #c084fc;
  --cyan: #22d3ee;
  --emerald: #4ade80;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle radial glow at top of every page — matches brand sheet aesthetic */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
p { margin: 0; color: var(--text-2); }
a { color: inherit; text-decoration: none; }

/* Layout helpers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 36px 0; }
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo .brand-text { font-weight: 800; font-size: 17px; letter-spacing: 0.15em; color: var(--text); }
.nav-logo .brand-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); margin-left: 3px; vertical-align: top; margin-top: 4px; box-shadow: 0 0 8px rgba(34,211,238,0.6); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-3); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: linear-gradient(135deg, var(--purple), var(--lilac)); color: var(--text); padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 13px; box-shadow: 0 4px 14px rgba(124,58,237,0.35); transition: all 0.2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .nav-links { position: fixed; top: 65px; right: 0; left: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; transform: translateY(-200%); transition: transform 0.25s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(124,58,237,0.08);
}
.hero h1 { max-width: 920px; margin: 0 auto 24px; }
.hero h1 .accent { background: linear-gradient(120deg, var(--lilac), var(--cyan), var(--emerald)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 640px; margin: 0 auto 40px; font-size: 18px; color: var(--text-3); }
.download-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border-2);
  padding: 12px 22px;
  border-radius: 12px;
  transition: all 0.2s;
}
.store-badge:hover { border-color: var(--purple); transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .top { display: block; font-size: 10px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.store-badge .name { display: block; font-size: 16px; font-weight: 600; }

.hero-image { max-width: 100%; margin: 0 auto; display: block; }
.hero-image img { width: 100%; height: auto; display: block; }

/* Sections / cards */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 16px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 600px; margin: 0 auto; color: var(--text-3); font-size: 17px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(124,58,237,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .icon.purple { background: rgba(124,58,237,0.15); color: var(--purple); }
.feature-card .icon.lilac { background: rgba(192,132,252,0.15); color: var(--lilac); }
.feature-card .icon.cyan { background: rgba(34,211,238,0.15); color: var(--cyan); }
.feature-card .icon.emerald { background: rgba(74,222,128,0.15); color: var(--emerald); }
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 10px; font-size: 18px; }
.feature-card p { color: var(--text-3); font-size: 14.5px; line-height: 1.65; }

/* Showcase rows (alternating image + text) */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.showcase-row:nth-child(even) { direction: rtl; }
.showcase-row:nth-child(even) > * { direction: ltr; }
.showcase-row img { width: 100%; height: auto; border-radius: 16px; }
.showcase-row h3 { font-size: 28px; margin-bottom: 16px; }
.showcase-row p { font-size: 16px; color: var(--text-3); margin-bottom: 16px; }
.showcase-row ul { margin: 16px 0 0; padding: 0; list-style: none; }
.showcase-row li { padding-left: 26px; position: relative; color: var(--text-2); font-size: 15px; margin-bottom: 10px; line-height: 1.55; }
.showcase-row li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

@media (max-width: 900px) {
  .showcase-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
  .showcase-row:nth-child(even) { direction: ltr; }
}

/* Pricing tiers */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.pricing-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, var(--card) 50%);
  box-shadow: 0 10px 40px rgba(124,58,237,0.15);
  position: relative;
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--purple), var(--lilac));
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pricing-card h3 { font-size: 22px; margin-bottom: 8px; }
.pricing-card .tier-sub { color: var(--text-3); font-size: 14px; margin-bottom: 28px; }
.pricing-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pricing-card .price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.pricing-card .period { color: var(--text-3); font-size: 15px; }
.pricing-card .annual { color: var(--text-4); font-size: 13px; margin-bottom: 28px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.pricing-card li { padding-left: 28px; position: relative; padding: 10px 0 10px 28px; color: var(--text-2); font-size: 14.5px; border-bottom: 1px solid var(--border); }
.pricing-card li:last-child { border-bottom: 0; }
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 10px;
  color: var(--emerald);
  font-weight: 700;
}
.pricing-card .pricing-cta { padding: 14px 24px; border-radius: 12px; text-align: center; font-weight: 600; font-size: 14.5px; }
.pricing-card .pricing-cta.outline { border: 1px solid var(--border-2); color: var(--text); }
.pricing-card .pricing-cta.outline:hover { border-color: var(--purple); }
.pricing-card .pricing-cta.solid { background: linear-gradient(135deg, var(--purple), var(--lilac)); color: var(--text); box-shadow: 0 4px 14px rgba(124,58,237,0.35); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* Trust section */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.trust-card .icon { color: var(--cyan); margin-bottom: 14px; }
.trust-card .icon svg { width: 24px; height: 24px; }
.trust-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.trust-card p { font-size: 13.5px; color: var(--text-3); line-height: 1.6; }

/* Final CTA block */
.final-cta {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,211,238,0.06));
  border: 1px solid var(--border-2);
  border-radius: 22px;
  padding: 64px 32px;
  text-align: center;
  margin: 40px 0;
}
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { font-size: 17px; color: var(--text-3); margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 56px 0 32px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--lilac); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-4);
  font-size: 13px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Long-form content (privacy, terms) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.prose .effective { color: var(--text-4); font-size: 14px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin-top: 48px; margin-bottom: 16px; color: var(--text); padding-top: 8px; }
.prose h3 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; color: var(--text); }
.prose p { margin-bottom: 14px; color: var(--text-2); }
.prose ul { padding-left: 0; list-style: none; margin: 16px 0; }
.prose li { padding-left: 22px; position: relative; margin-bottom: 8px; color: var(--text-2); }
.prose li::before { content: '·'; position: absolute; left: 6px; top: -2px; color: var(--lilac); font-weight: 700; font-size: 22px; line-height: 1; }
.prose a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .important { background: rgba(124,58,237,0.06); border: 1px solid var(--border-2); border-radius: 12px; padding: 16px 20px; margin: 20px 0; font-size: 14.5px; }

/* Support page */
.support-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 40px;
  max-width: 540px;
  margin: 32px auto;
  text-align: center;
}
.support-card .icon { display: inline-flex; padding: 14px; background: rgba(124,58,237,0.12); border-radius: 14px; color: var(--purple); margin-bottom: 20px; }
.support-card .icon svg { width: 28px; height: 28px; }
.support-card h3 { margin-bottom: 8px; }
.support-card p { color: var(--text-3); margin-bottom: 24px; }
.support-card a.contact-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--lilac));
  color: var(--text);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  transition: all 0.2s;
}
.support-card a.contact-link:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.5); }

/* 404 */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.notfound .big-code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--purple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.notfound h2 { margin: 24px 0 12px; }
.notfound p { color: var(--text-3); margin-bottom: 32px; }
