/* ============================================================
   PRYVERA v2 — Multi-page Website
   Premium, Apple/Linear/Stripe inspired
   ============================================================ */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-glow: rgba(13, 148, 136, 0.15);
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --dark-card: #1a2332;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --text-dark-muted: #64748b;
  --bg-dark: #0b1120;
  --bg-light: #ffffff;
  --bg-off: #f8fafc;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: #e2e8f0;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7; font-size: 16px;
}

/* Dark body for dark pages */
body.dark { background: var(--bg-dark); color: var(--text); }
body.light { background: var(--bg-light); color: var(--text-dark); }

h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   NAVIGATION — Shared across all pages
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 32px; height: 80px;
  display: flex; align-items: center;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
nav.light-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.nav-container {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; border-radius: 8px; }

/* On dark nav, give the logo a white background pill so it's readable */
nav:not(.light-nav) .logo-img {
  background: rgba(255,255,255,0.95);
  padding: 6px 16px;
  border-radius: 10px;
}

/* Footer logo */
.footer-brand .logo-img {
  height: 44px;
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: 8px;
}

.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6);
}
.nav-menu a:hover { color: #fff; }
.nav-menu a.active { color: #fff; }
nav.light-nav .nav-menu a { color: var(--text-dark-muted); }
nav.light-nav .nav-menu a:hover { color: var(--text-dark); }
nav.light-nav .nav-menu a.active { color: var(--text-dark); }

.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 10px 24px; border-radius: var(--radius-pill);
  font-size: 13px !important; font-weight: 600;
}
.nav-cta:hover { opacity: 0.9 !important; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: #fff;
  border-radius: 2px; position: absolute; transition: var(--transition);
}
nav.light-nav .nav-toggle span { background: var(--dark); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); }
.btn-dark { background: #fff; color: var(--dark); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--text-dark); border: 1.5px solid var(--border-light); }
.btn-outline-dark:hover { border-color: var(--dark); color: var(--text-dark); }
.btn-lg { padding: 20px 44px; font-size: 17px; }
.btn-sm { padding: 10px 24px; font-size: 13px; }

/* ============================================================
   SECTIONS — Shared
   ============================================================ */
.section { padding: 140px 0; }
.section-sm { padding: 100px 0; }
.section-dark { background: var(--bg-dark); color: var(--text); }
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-off { background: var(--bg-off); color: var(--text-dark); }
.section-gradient {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1d2e 50%, var(--bg-dark) 100%);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-muted-dark { color: var(--text-dark-muted); }
.text-primary { color: var(--primary); }

.eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--primary); margin-bottom: 16px;
}

.section-header { max-width: 700px; margin: 0 auto 72px; text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }
.section-light .section-header p { color: var(--text-dark-muted); }

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(13, 148, 136, 0.3); transform: translateY(-4px); }
.card-light {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 40px 32px;
  transition: var(--transition);
}
.card-light:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); }

.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; }
.card p, .card-light p { font-size: 15px; line-height: 1.7; }
.card p { color: var(--text-muted); }
.card-light p { color: var(--text-dark-muted); }

/* ============================================================
   PILL BADGES
   ============================================================ */
.pill {
  display: inline-flex; padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
}
.pill-primary { background: var(--primary); color: #fff; }
.pill-outline { background: rgba(13, 148, 136, 0.1); color: var(--primary); border: 1px solid rgba(13, 148, 136, 0.2); }

/* ============================================================
   GLOW / DECORATIVE
   ============================================================ */
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
}
.glow-teal { background: rgba(13, 148, 136, 0.15); }
.glow-blue { background: rgba(59, 130, 246, 0.1); }

/* ============================================================
   HERO — Homepage
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero .glow-orb:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -200px; }
.hero .glow-orb:nth-child(2) { width: 400px; height: 400px; bottom: -100px; left: -100px; }

.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted);
  max-width: 560px; margin-bottom: 48px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 72px 0 32px; color: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.25); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   PAGE-SPECIFIC: PRICING
   ============================================================ */
.price-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 48px 36px; text-align: center;
  position: relative; transition: var(--transition);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.price-featured { border: 2px solid var(--primary); }
.price-label {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; padding: 6px 24px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.price-amount { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; margin: 20px 0 4px; }
.price-period { font-size: 14px; color: var(--text-dark-muted); }
.price-desc { font-size: 15px; color: var(--text-dark-muted); margin: 16px 0 32px; }
.price-features { list-style: none; text-align: left; margin-bottom: 32px; }
.price-features li {
  padding: 10px 0; font-size: 14px; color: var(--text-dark-muted);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: 16px; }
.price-features li:last-child { border: none; }

/* ============================================================
   PAGE-SPECIFIC: SECURITY
   ============================================================ */
.security-stat {
  text-align: center; padding: 32px;
}
.security-stat .stat-value { font-size: 3rem; font-weight: 800; color: var(--primary); }
.security-stat .stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.compliance-card {
  background: var(--dark-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.compliance-card h4 { color: #fff; margin-bottom: 8px; }
.compliance-card p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   PAGE-SPECIFIC: ABOUT
   ============================================================ */
.value-card {
  text-align: center; padding: 48px 32px;
}
.value-card .value-icon { font-size: 2.5rem; margin-bottom: 20px; }
.value-card h3 { margin-bottom: 12px; }

/* ============================================================
   PAGE-SPECIFIC: CONTACT
   ============================================================ */
.contact-form {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.04);
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: 15px; font-family: inherit;
  transition: var(--transition); background: var(--bg-off);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark); flex-direction: column;
    padding: 40px 32px; gap: 24px; z-index: 999;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-menu.open { display: flex; }
  nav.light-nav .nav-menu { background: #fff; border-top: 1px solid var(--border-light); }
  body.nav-open { overflow: hidden; }
  body.nav-open nav { background: var(--bg-dark); backdrop-filter: none; }
  body.nav-open nav.light-nav { background: #fff; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav-menu a { font-size: 18px; padding: 8px 0; }

  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { padding: 100px 0 60px; }
  .hero h1 br { display: none; }
  .hero-content img { height: 64px !important; padding: 10px 20px !important; }
  .section { padding: 80px 0; }
  .section-sm { padding: 60px 0; }

  .btn-lg { padding: 16px 32px; font-size: 15px; }

  .price-card { padding: 36px 24px; }
  .contact-form { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-5 > :last-child { grid-column: 1 / -1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
