/* ============================================================
   ECHOMIND – Shared Design System
   Fonts: Nunito Sans (main) + Playfair Display (accent/italic)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --bg:       #0e0e11;
  --bg2:      #12121a;
  --card:     #141420;
  --border:   rgba(138, 90, 200, 0.15);
  --cyan:     #3dd6e0;
  --blue:     #5599e8;
  --violet:   #7744cc;
  --magenta:  #cc44aa;
  --pink:     #e840c0;
  --grad:     linear-gradient(135deg, #3dd6e0 0%, #5599e8 30%, #7744cc 65%, #e840c0 100%);
  --grad-r:   linear-gradient(135deg, #e840c0 0%, #7744cc 40%, #5599e8 75%, #3dd6e0 100%);
  --text:     #f0edf8;
  --muted:    #6b6880;
  --font-main: 'Nunito Sans', sans-serif;
  --font-accent: 'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999; opacity: 0.5;
}

/* ── BG BLOBS ── */
.blob { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(90px); z-index: 0; }
.blob1 { width: 500px; height: 500px; top: -150px; left: -100px; background: radial-gradient(circle, rgba(61,214,224,0.09) 0%, transparent 70%); animation: drift1 14s ease-in-out infinite alternate; }
.blob2 { width: 600px; height: 600px; bottom: -200px; right: -150px; background: radial-gradient(circle, rgba(232,64,192,0.09) 0%, transparent 70%); animation: drift2 11s ease-in-out infinite alternate; }
.blob3 { width: 350px; height: 350px; top: 40%; left: 60%; background: radial-gradient(circle, rgba(119,68,204,0.07) 0%, transparent 70%); animation: drift3 9s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(35px,45px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-30px,-40px); } }
@keyframes drift3 { from { transform: translate(-50%,-50%) scale(1); } to { transform: translate(-50%,-50%) scale(1.2); } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: linear-gradient(to bottom, rgba(14,14,17,0.97) 60%, transparent);
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.nav-logo-text {
  font-family: var(--font-main); font-weight: 900; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-cta {
  padding: 0.5rem 1.2rem; border-radius: 30px;
  background: rgba(119,68,204,0.12); border: 1px solid rgba(119,68,204,0.3);
  color: var(--text) !important; transition: all 0.3s !important;
}
.nav-cta:hover { background: rgba(119,68,204,0.25) !important; color: var(--cyan) !important; border-color: var(--violet) !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px; transition: all 0.3s;
}
.nav-mobile {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(14,14,17,0.97); backdrop-filter: blur(12px);
  z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-main); font-weight: 800; font-size: 1.4rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color 0.3s;
}
.nav-mobile a:hover, .nav-mobile a.active { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 40px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-family: var(--font-main); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(119,68,204,0.4);
  transition: transform 0.3s, box-shadow 0.3s; white-space: nowrap;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(119,68,204,0.55); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 40px;
  border: 1px solid rgba(119,68,204,0.3); color: var(--muted);
  text-decoration: none; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  transition: all 0.3s; white-space: nowrap; background: none; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--violet); color: var(--cyan); }

/* ── SECTION DIVIDER ── */
.section-divider {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 4rem; max-width: 1200px; margin: 0 auto;
}
.div-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(119,68,204,0.25), transparent); }
.div-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* ── GRADIENT TEXT ── */
.grad {
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s cubic-bezier(0.23,1,0.32,1), transform 0.85s cubic-bezier(0.23,1,0.32,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}
@keyframes floatAnim {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
@keyframes waveAnim { 0%,100%{transform:scaleY(0.2)} 50%{transform:scaleY(1)} }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(119,68,204,0.12);
  padding: 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  position: relative; z-index: 1;
}
.footer-logo { font-family: var(--font-main); font-weight: 900; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.77rem; color: var(--muted); text-decoration: none; font-weight: 600; letter-spacing: 0.05em; transition: color 0.3s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 0.74rem; color: rgba(107,104,128,0.5); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section-divider { padding: 0 1.5rem; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: center; text-align: center; }
}
