/* Plumora marketing site — shared styles */

:root {
  --primary: #6b3885;
  --primary-dark: #47245c;
  --accent: #eb857a;
  --accent-soft: #fae0dc;
  --bg-top: #fcf7ff;
  --bg-bottom: #f0e6f7;
  --card: rgba(255, 255, 255, 0.72);
  --card-solid: #ffffff;
  --text: #291e38;
  --text-muted: #6b6474;
  --border: rgba(107, 56, 133, 0.12);
  --shadow: 0 24px 64px rgba(71, 36, 92, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --nav-height: 72px;
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #d19ee6;
    --primary-dark: #9a6bb0;
    --accent: #fa9e90;
    --accent-soft: #472430;
    --bg-top: #100a14;
    --bg-bottom: #1a1222;
    --card: rgba(32, 26, 38, 0.78);
    --card-solid: #201824;
    --text: #f5f2f8;
    --text-muted: #b8b0c4;
    --border: rgba(209, 158, 230, 0.14);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Background atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: var(--primary);
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: var(--accent);
  top: 20%;
  right: -100px;
  animation-delay: -6s;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: #c4a0e8;
  bottom: -140px;
  left: 30%;
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -32px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Layout */
.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(252, 247, 255, 0.72);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-nav { background: rgba(16, 10, 20, 0.78); }
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  box-shadow: 0 4px 12px rgba(107, 56, 133, 0.25);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(107, 56, 133, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(107, 56, 133, 0.35);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(107, 56, 133, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(107, 56, 133, 0.4);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--accent); }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Phone showcase — real app screenshots */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  perspective: 1400px;
}

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 430 / 932;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #3a3048 0%, #1a1424 50%, #0e0a14 100%);
  box-shadow:
    0 40px 80px rgba(71, 36, 92, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-back {
  position: absolute;
  right: calc(50% - 36px);
  transform: rotateY(-20deg) rotateX(8deg) rotateZ(5deg) scale(0.9);
  opacity: 0.88;
  z-index: 1;
}

.phone-front {
  position: relative;
  z-index: 2;
  transform: rotateY(-8deg) rotateX(3deg);
  margin-left: 56px;
}

.phone-wrap:hover .phone-back {
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(2deg) scale(0.92);
}

.phone-wrap:hover .phone-front {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0e0a14;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 900px) {
  .phone-wrap { min-height: 440px; }
  .phone-back {
    right: calc(50% - 18px);
    opacity: 0.75;
  }
  .phone-front { margin-left: 28px; }
}

@media (max-width: 520px) {
  .phone-back { display: none; }
  .phone-front {
    margin-left: 0;
    transform: none;
  }
  .phone-wrap:hover .phone-front { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-back,
  .phone-front,
  .phone-wrap:hover .phone-back,
  .phone-wrap:hover .phone-front {
    transform: none;
  }
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.0625rem;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; }
}

.bento-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(71, 36, 92, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-card.span-2 { grid-column: span 2; }

@media (max-width: 768px) {
  .bento-card.span-2 { grid-column: span 1; }
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
}

.bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item span:first-child {
  font-size: 1.25rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 42ch;
  opacity: 0.9;
  font-size: 1.0625rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

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

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 32ch;
  margin: 0.75rem 0 0;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

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

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

.footer-col a {
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Legal / content pages */
.page-content {
  padding: 3rem 0 4rem;
}

.page-content .container {
  max-width: 720px;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.page-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.page-content p,
.page-content li {
  color: var(--text-muted);
}

.page-content ul {
  padding-left: 1.25rem;
}

.content-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(71, 36, 92, 0.06);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
