@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mind-indigo: #4338CA;
  --strong-teal: #0D9488;
  --thought-white: #FAFAFA;
  --synapse: #6366F1;
  --lime-accent: #84CC16;
  --text: #1E1B4B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(67, 56, 202, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--thought-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

a { color: var(--mind-indigo); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--strong-teal); }

img { max-width: 100%; height: auto; display: block; border-radius: 12px; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 2px 16px rgba(67, 56, 202, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--mind-indigo);
  letter-spacing: -0.02em;
}
.logo span { color: var(--strong-teal); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--mind-indigo); }

.btn {
  display: inline-block;
  padding: 0.72rem 1.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--mind-indigo);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--strong-teal);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--mind-indigo);
  border: 2px solid var(--mind-indigo);
}
.btn-outline:hover {
  background: var(--strong-teal);
  border-color: var(--strong-teal);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--mind-indigo);
  margin: 6px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero */
.hero {
  margin-top: 68px;
  background: linear-gradient(135deg, #1E1B4B 0%, var(--mind-indigo) 50%, var(--synapse) 100%);
  color: var(--white);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(132, 204, 22, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.hero-network {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, var(--white) 2px, transparent 2px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime-accent);
}

.hero-tagline {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.hero-slogan {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  color: var(--lime-accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-metrics {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.metric-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  min-width: 110px;
}
.metric-box .label { font-size: 0.78rem; opacity: 0.8; }
.metric-box .value {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lime-accent);
}

.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Stats strip */
.stats-strip {
  background: var(--mind-indigo);
  color: var(--white);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--lime-accent);
  margin-bottom: 0.4rem;
}
.stat-item p { font-size: 0.92rem; opacity: 0.88; }

/* Sections */
section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--mind-indigo);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(67, 56, 202, 0.14);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--mind-indigo), var(--synapse));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--mind-indigo);
}
.card p { color: var(--text-muted); font-size: 0.93rem; }

/* Mind network strip */
.network-strip {
  background: var(--text);
  color: var(--white);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.network-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(99, 102, 241, 0.3) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(99, 102, 241, 0.2) 50%, transparent 51%);
  background-size: 60px 60px;
  opacity: 0.4;
}

.network-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.network-nodes {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--synapse);
  border: 2px solid var(--lime-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.network-strip h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  max-width: 500px;
}

/* Services list */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--strong-teal);
}
.service-card img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Reasoning diagram */
.reasoning-section {
  background: linear-gradient(180deg, var(--thought-white) 0%, rgba(99, 102, 241, 0.06) 100%);
}

.diagram-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.diagram-visual {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
}

.diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--thought-white);
  border-radius: 10px;
  border: 1px solid rgba(67, 56, 202, 0.12);
}

.flow-num {
  width: 32px;
  height: 32px;
  background: var(--mind-indigo);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.flow-arrow {
  text-align: center;
  color: var(--synapse);
  font-size: 1.2rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.testimonial {
  background: var(--white);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--lime-accent);
}

.testimonial blockquote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--mind-indigo);
  font-size: 0.88rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--strong-teal) 0%, #0F766E 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.cta-section p {
  opacity: 0.92;
  margin-bottom: 1.8rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--strong-teal);
}
.cta-section .btn-primary:hover {
  background: var(--lime-accent);
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 0.8rem; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #94A3B8; font-size: 0.9rem; }
.footer-col a:hover { color: var(--lime-accent); }

.cognitive-note {
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--synapse);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  margin-top: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Page header */
.page-hero {
  margin-top: 68px;
  background: linear-gradient(135deg, var(--mind-indigo), var(--synapse));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.6rem; }
.page-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Catalog filters */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(67, 56, 202, 0.25);
  background: var(--white);
  border-radius: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--mind-indigo);
  color: var(--white);
  border-color: var(--mind-indigo);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.catalog-item {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}
.catalog-item:hover { transform: translateY(-4px); }

.catalog-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}

.catalog-body { padding: 1.4rem; }
.catalog-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--mind-indigo); }
.catalog-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.8rem; }

.catalog-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--synapse);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--mind-indigo);
}

.info-item {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
}
.info-item strong { color: var(--mind-indigo); min-width: 80px; }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  transition: border-color 0.3s ease;
  background: var(--thought-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--mind-indigo);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #EF4444;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(13, 148, 136, 0.08);
  border-radius: 12px;
  color: var(--strong-teal);
}
.form-success.show { display: block; }
.form-success h3 { margin-bottom: 0.5rem; }

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  color: var(--mind-indigo);
}
.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 0.8rem;
}
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.value-item h4 { color: var(--mind-indigo); margin-bottom: 0.5rem; font-size: 1rem; }
.value-item p { font-size: 0.88rem; color: var(--text-muted); }

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--text);
  color: var(--white);
  padding: 1.2rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
#cookie-banner.show { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 92%;
}

.cookie-inner p { font-size: 0.88rem; flex: 1; min-width: 260px; }
.cookie-inner a { color: var(--lime-accent); }

/* Animations */
.js .slide-up, .js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .fade-in { transform: none; opacity: 0; }
.js .slide-up.visible, .js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .diagram-wrap, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
