:root {
  --prussian-blue: #1D2537;
  --deep-space-blue: #22344C;
  --blue-green: #539AAE;
  --almond-silk: #D4C0BC;
  --champagne-mist: #FBE9D1;
  --text-white: #ffffff;
  --gradient-neural: linear-gradient(135deg, #539AAE 0%, #1D2537 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: var(--prussian-blue);
  color: var(--almond-silk);
  font-size: 1rem;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--blue-green);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--text-white);
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(29, 37, 55, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(83, 154, 174, 0.15);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-dot {
  color: var(--blue-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--almond-silk);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 37, 55, 0.7) 0%, rgba(29, 37, 55, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(83, 154, 174, 0.4);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--blue-green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-green), var(--champagne-mist));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-effect {
  box-shadow: 0 0 20px rgba(83, 154, 174, 0.5);
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--almond-silk);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--gradient-neural);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(83, 154, 174, 0.3);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--blue-green);
  color: var(--blue-green);
}

.btn-outline:hover {
  background: rgba(83, 154, 174, 0.1);
  color: var(--text-white);
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--champagne-mist);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--almond-silk);
}

/* SECTIONS */
.section {
  padding: 100px 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 55, 0.85);
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--deep-space-blue);
}

.bg-about { background-image: url('images/cognitive.jpg'); }
.bg-how { background-image: url('images/Neuroplasticity.jpg'); }
.bg-advantages { background-image: url('images/Meditation.jpg'); }
.bg-for-whom { background-image: url('images/adaptation.jpg'); }
.bg-research { background-image: url('images/Research.jpg'); }
.bg-gallery { background-image: url('images/divider.jpg'); }

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--almond-silk);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ABOUT GRID */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.about-card {
  background: url('images/Icon Backgrounds.jpg') center/cover no-repeat;
  border: 1px solid rgba(83, 154, 174, 0.15);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 55, 0.75);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 154, 174, 0.4);
}

.about-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.about-card p {
  color: var(--almond-silk);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.about-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* BRAIN SECTION */
.brain-section {
  margin-bottom: 80px;
}

.brain-title {
  font-size: 1.5rem;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 36px;
  font-weight: 600;
}

.brain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.brain-card {
  background: url('images/Icon Backgrounds.jpg') center/cover no-repeat;
  border: 1px solid rgba(83, 154, 174, 0.12);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.brain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 55, 0.75);
}

.brain-card:hover {
  border-color: rgba(83, 154, 174, 0.35);
}

.brain-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--blue-green);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.brain-func {
  font-size: 0.9rem;
  color: var(--almond-silk);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* MECHANISM STEPS */
.mechanism-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: url('images/Icon Backgrounds.jpg') center/cover no-repeat;
  border: 1px solid rgba(83, 154, 174, 0.1);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 55, 0.75);
}

.step:hover {
  border-color: rgba(83, 154, 174, 0.3);
}

.step-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-green);
  opacity: 0.5;
  min-width: 48px;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1.1rem;
  color: var(--text-white);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.step-content p {
  color: var(--almond-silk);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: url('images/Icon Backgrounds.jpg') center/cover no-repeat;
  border: 1px solid rgba(83, 154, 174, 0.12);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 37, 55, 0.75);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 154, 174, 0.35);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--almond-silk);
  font-size: 0.93rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* DEMO */
.demo-area {
  margin-bottom: 40px;
}

.demo-image {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(83, 154, 174, 0.2);
}

.demo-placeholder {
  background: rgba(29, 37, 55, 0.7);
  border: 2px dashed rgba(83, 154, 174, 0.3);
  border-radius: 16px;
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo-inkblot {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(83, 154, 174, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.demo-text {
  color: var(--almond-silk);
  font-size: 1rem;
}

.demo-hint {
  color: var(--almond-silk);
  font-size: 0.85rem;
  opacity: 0.6;
}

.demo-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.control-item {
  background: rgba(29, 37, 55, 0.5);
  border: 1px solid rgba(83, 154, 174, 0.1);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label {
  font-size: 0.8rem;
  color: var(--blue-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.control-value {
  font-size: 0.95rem;
  color: var(--almond-silk);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(34, 52, 76, 0.4);
  border: 1px solid rgba(83, 154, 174, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(83, 154, 174, 0.3);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-white);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue-green);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--almond-silk);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* FOOTER */
.footer {
  background: var(--prussian-blue);
  border-top: 1px solid rgba(83, 154, 174, 0.1);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand p {
  color: var(--almond-silk);
  font-size: 0.9rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--almond-silk);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--blue-green);
}

.footer-copy {
  color: var(--almond-silk);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* HERO */
.hero-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 16px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-white);
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--blue-green);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--almond-silk);
  max-width: 600px;
  margin-bottom: 36px;
}

/* ABOUT */
.about-content {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-lead {
  font-size: 1.15rem;
  color: var(--almond-silk);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-secondary {
  font-size: 1rem;
  color: var(--almond-silk);
  opacity: 0.8;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* AUDIENCE */
.audience-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--almond-silk);
}

.audience-check {
  color: var(--blue-green);
  font-weight: 700;
  font-size: 1.2rem;
}

/* RESEARCH */
.research-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.research-content p {
  color: var(--almond-silk);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.research-motto {
  font-size: 1.3rem !important;
  font-weight: 600;
  color: var(--blue-green) !important;
  margin-top: 24px !important;
}

/* CTA FORM */
.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cta-input {
  flex: 1;
  min-width: 260px;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(83, 154, 174, 0.3);
  background: rgba(26, 35, 50, 0.8);
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.cta-input:focus {
  border-color: var(--blue-green);
}

.cta-input::placeholder {
  color: var(--almond-silk);
}

/* FOOTER */
.footer-disclaimer {
  max-width: 700px;
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--almond-silk);
  opacity: 0.6;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-cards,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 60px 0;
  }
}

/* AUTH */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prussian-blue);
  padding: 20px;
}

.auth-card {
  background: var(--deep-space-blue);
  border: 1px solid rgba(83, 154, 174, 0.15);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  color: var(--text-white);
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  color: var(--blue-green);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(29, 37, 55, 0.8);
  border: 1px solid rgba(83, 154, 174, 0.3);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--blue-green);
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(83, 154, 174, 0.2);
}

.auth-divider span {
  background: var(--deep-space-blue);
  padding: 0 12px;
  position: relative;
  color: var(--blue-green);
  font-size: 0.85rem;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: var(--blue-green);
  font-size: 0.9rem;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
}

.alert-success {
  background: rgba(83, 154, 174, 0.15);
  border: 1px solid rgba(83, 154, 174, 0.3);
  color: var(--blue-green);
}

/* DASHBOARD */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--deep-space-blue);
  border: 1px solid rgba(83, 154, 174, 0.12);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-green);
}

.stat-label {
  color: var(--blue-green);
  font-size: 0.9rem;
  margin-top: 4px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--deep-space-blue);
  border-radius: 12px;
  overflow: hidden;
}

.data-table th {
  background: rgba(83, 154, 174, 0.1);
  color: var(--blue-green);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(83, 154, 174, 0.08);
  color: var(--almond-silk);
}

.data-table tr:hover td {
  background: rgba(83, 154, 174, 0.05);
}
