/* ============================================
   Privata – Enterprise Landing Page
   ============================================ */

:root {
  --teal:        #00BFA5;
  --teal-dark:   #00897B;
  --teal-glow:   rgba(0, 191, 165, 0.25);
  --bg:          #0A0E17;
  --bg-card:     #111827;
  --bg-card-alt: #1A2332;
  --text:        #E2E8F0;
  --text-muted:  #94A3B8;
  --text-dim:    #64748B;
  --white:       #FFFFFF;
  --green:       #4CAF50;
  --border:      rgba(255,255,255,0.06);
  --radius:      12px;
  --radius-lg:   20px;
  --max-w:       1200px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text-muted); }

/* ---------- Animated gradient background ---------- */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,191,165,0.12), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0,137,123,0.08), transparent),
    var(--bg);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--teal);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,191,165,0.1);
  border: 1px solid rgba(0,191,165,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(76,175,80,0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal), #4DD0E1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--bg);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 30px var(--teal-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

/* Hero visual – phone mockup */
.hero-visual {
  margin-top: 64px;
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 280px;
  height: 580px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 120px var(--teal-glow);
  overflow: hidden;
  position: relative;
}
.phone-mockup-header {
  padding: 48px 20px 16px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}
.phone-mockup-header h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--white);
}
.phone-mockup-header h3 span { color: var(--teal); }
.phone-mockup-header p { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }
.phone-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: msg-in 0.4s ease-out both;
}
.msg-received {
  align-self: flex-start;
  background: var(--bg-card-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg-sent {
  align-self: flex-end;
  background: var(--teal);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.msg-meta {
  font-size: 0.62rem;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg:nth-child(1) { animation-delay: 0.3s; }
.msg:nth-child(2) { animation-delay: 0.6s; }
.msg:nth-child(3) { animation-delay: 0.9s; }
.msg:nth-child(4) { animation-delay: 1.2s; }
.msg:nth-child(5) { animation-delay: 1.5s; }

/* ---------- Sections ---------- */
section {
  padding: 100px 0;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}
.section-desc.centered { margin: 0 auto; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,191,165,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,191,165,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- How It Works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 56px;
  counter-reset: step;
}
.how-step {
  position: relative;
  text-align: center;
  padding: 32px 24px;
}
.how-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,191,165,0.1);
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 20px;
}
.how-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.how-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Protocol / Tech ---------- */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.protocol-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 6px;
}
.protocol-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.protocol-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Comparison table ---------- */
.comparison {
  margin-top: 56px;
  overflow-x: auto;
}
.comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison th,
.comparison td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.comparison td:first-child { font-weight: 500; color: var(--white); }
.comparison .check { color: var(--teal); font-weight: 700; }
.comparison .cross { color: var(--text-dim); }
.comparison tr:last-child td { border-bottom: none; }
.comparison .highlight-col {
  background: rgba(0,191,165,0.04);
}

/* ---------- CTA section ---------- */
.cta-section {
  text-align: center;
  padding: 100px 24px;
}
.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(0,191,165,0.08), rgba(0,137,123,0.04));
  border: 1px solid rgba(0,191,165,0.15);
  border-radius: 24px;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.footer-logo span { color: var(--teal); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Fade-in on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,14,23,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .hero { padding: 100px 24px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .phone-mockup { width: 240px; height: 500px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .comparison table { font-size: 0.8rem; }
  .comparison th, .comparison td { padding: 12px; }
  .cta-box { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  section { padding: 64px 0; }
}
