/* CognitiveStream — light theme */
:root {
  --blue: #0284C7;
  --turquoise: #2DD4BF;
  --ice: #F0F9FF;
  --navy: #0F172A;
  --lime: #A3E635;
  --white: #ffffff;
  --text: #334155;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(2, 132, 199, 0.08);
  --radius: 12px;
  --flow-duration: 0.6s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--ice);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.logo, .btn, .nav-link, .pillar-title, .step-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--navy);
}

a { color: var(--blue); text-decoration: none; transition: color var(--flow-duration) ease; }
a:hover { color: var(--turquoise); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(240, 249, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 132, 199, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 22px; height: 22px; }

.logo span { color: var(--blue); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--turquoise));
  transition: width var(--flow-duration) ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--flow-duration);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--flow-duration) ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0369a1);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-lime {
  background: var(--lime);
  color: var(--navy);
}

.btn-lime:hover {
  background: #84cc16;
  color: var(--navy);
}

/* Hero streaming */
.hero-stream {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-stream::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(45, 212, 191, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(2, 132, 199, 0.12), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--white);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  animation: flowPulse var(--flow-duration) ease infinite alternate;
}

@keyframes flowPulse {
  from { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.3); }
  to { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0); }
}

.hero-stream h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-stream h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  position: relative;
}

.stream-lines {
  position: absolute;
  inset: -20px;
  overflow: hidden;
  border-radius: var(--radius);
  opacity: 0.6;
}

.stream-line {
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--turquoise), var(--blue), transparent);
  animation: streamFlow 3s linear infinite;
}

.stream-line:nth-child(1) { top: 20%; width: 120%; left: -10%; animation-delay: 0s; }
.stream-line:nth-child(2) { top: 45%; width: 100%; left: 0; animation-delay: 0.8s; }
.stream-line:nth-child(3) { top: 70%; width: 110%; left: -5%; animation-delay: 1.6s; }

@keyframes streamFlow {
  0% { transform: translateX(-30%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0; }
}

.hero-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}

/* Wave sections */
.wave-section {
  position: relative;
  padding: 4.5rem 0;
}

.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top { top: -1px; transform: rotate(180deg); }
.wave-bottom { bottom: -1px; }

.wave-top svg,
.wave-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}

.section-white { background: var(--white); }
.section-ice { background: var(--ice); }
.section-gradient {
  background: linear-gradient(180deg, var(--white) 0%, var(--ice) 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 132, 199, 0.08);
  transition: transform var(--flow-duration) ease, box-shadow var(--flow-duration) ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.15);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.pillar-flux .pillar-icon { background: rgba(2, 132, 199, 0.12); color: var(--blue); }
.pillar-date .pillar-icon { background: rgba(45, 212, 191, 0.15); color: #0d9488; }
.pillar-decizie .pillar-icon { background: rgba(163, 230, 53, 0.2); color: #65a30d; }

.pillar-title { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Flow diagram */
.flow-diagram {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.1);
}

.flow-diagram img {
  width: 100%;
  animation: flowReveal var(--flow-duration) ease forwards;
}

@keyframes flowReveal {
  from { opacity: 0.7; filter: blur(2px); }
  to { opacity: 1; filter: blur(0); }
}

/* Solutions list */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--turquoise);
  transition: border-color var(--flow-duration) ease, transform var(--flow-duration) ease;
}

.solution-item:hover {
  border-left-color: var(--blue);
  transform: translateX(4px);
}

.solution-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Timeline 5 steps */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--turquoise), var(--lime));
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
  transition: all var(--flow-duration) ease;
}

.timeline-step:hover .step-num {
  background: var(--blue);
  color: var(--white);
  border-color: var(--turquoise);
}

.timeline-step h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.timeline-step p { font-size: 0.8rem; color: var(--text-muted); }

/* Fluid services rows */
.services-fluid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform var(--flow-duration) ease;
}

.service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--turquoise));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--flow-duration) ease;
}

.service-row:hover {
  transform: scale(1.01);
}

.service-row:hover::before { transform: scaleY(1); }

.service-row img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.service-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.service-row p { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ accordion */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color var(--flow-duration) ease;
}

.faq-question:hover { color: var(--blue); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--flow-duration) ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--flow-duration) ease, padding var(--flow-duration) ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p { font-size: 0.95rem; color: var(--text-muted); }

/* CTA */
.cta-block {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 50%, var(--blue) 100%);
  border-radius: var(--radius);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-block::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, transparent 50%);
  animation: ctaFlow 8s linear infinite;
}

@keyframes ctaFlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-block h2,
.cta-block p { position: relative; z-index: 1; color: var(--white); }

.cta-block h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-block p { margin-bottom: 1.75rem; opacity: 0.9; }

/* Inline contact */
.inline-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  margin-top: 2rem;
}

.inline-contact a,
.inline-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--flow-duration) ease;
}

.card:hover { transform: translateY(-4px); }

.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 1.5rem; }
.card-ref {
  font-size: 0.75rem;
  color: var(--turquoise);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card-body p { font-size: 0.9rem; color: var(--text-muted); }

/* Page hero */
.page-hero {
  padding: 3.5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--white), var(--ice));
}

.page-hero h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Content blocks */
.content-block {
  padding: 3rem 0;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--turquoise);
  display: inline-block;
}

.content-block p { margin-bottom: 1rem; }
.content-block ul { margin: 1rem 0 1rem 1.5rem; }
.content-block li { margin-bottom: 0.5rem; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info-card h3 { margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-detail strong { display: block; color: var(--navy); margin-bottom: 0.25rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  background: var(--ice);
  transition: border-color var(--flow-duration) ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .logo span { color: var(--turquoise); }
.footer-brand p { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.footer-col a:hover { color: var(--turquoise); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

html { scroll-behavior: smooth; }

.slide-up, .fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
html.js .slide-up, html.js .fade-in, html.js .flow-animate {
  opacity: 0;
  transform: translateY(28px);
}
html.js .slide-up.visible, html.js .fade-in.visible, html.js .flow-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-animate {
  transition: opacity var(--flow-duration) ease, transform var(--flow-duration) ease;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 1.5rem;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.2);
}
.cookie-banner.is-visible { display: flex; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(2, 132, 199, 0.3);
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--navy);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.card-price { margin: 0.75rem 0 0; color: var(--blue); font-weight: 600; }
.cookie-banner a { color: var(--turquoise); }
.form-error { display: block; color: #dc2626; font-size: 0.85rem; margin-top: 0.25rem; }
.form-group input.is-invalid, .form-group select.is-invalid { border-color: #dc2626; }
#form-success { display: none; padding: 2rem; background: var(--ice); border-radius: var(--radius); border: 1px solid var(--turquoise); }
#form-success.visible { display: block; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Service page detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(2, 132, 199, 0.1);
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; padding: 2rem 0 4rem; }
.legal-content h2 { font-size: 1.35rem; margin: 2rem 0 1rem; }
.legal-content h3 { font-size: 1.1rem; margin: 1.5rem 0 0.75rem; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .contact-grid,
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .pillars { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; gap: 2rem; }
  .timeline::before { display: none; }
  .solutions-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row img { width: 100%; height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-main {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--ice);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--flow-duration) ease;
    border-bottom: 1px solid rgba(2, 132, 199, 0.15);
  }
  .nav-main.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
