@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --violet: #7C3AED;
  --slate: #334155;
  --mint: #A7F3D0;
  --stream: #F8FAFC;
  --pink: #EC4899;
  --ink: #1E293B;
  --muted: #64748B;
  --violet-dark: #5B21B6;
  --mint-deep: #6EE7B7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--slate);
  background: var(--stream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  color: var(--ink);
}

a { color: var(--violet); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pink); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.slide-up, .fade-in, .merge-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .slide-up, html.js .fade-in, html.js .merge-reveal {
  opacity: 0;
}
html.js .slide-up { transform: translateY(36px); }
html.js .fade-in { transform: translateX(-24px); }
html.js .merge-reveal { transform: scale(0.96); }
html.js .slide-up.visible, html.js .fade-in.visible, html.js .merge-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Split header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--stream);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--violet) 48%, var(--mint) 52%) 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo .merge-left { color: var(--violet); }
.logo .merge-right { color: var(--slate); }
.logo .merge-seam {
  display: inline-block;
  width: 4px;
  height: 1em;
  background: linear-gradient(180deg, var(--violet), var(--pink));
  margin: 0 2px;
  vertical-align: -0.1em;
  transform: skewX(-12deg);
}

.nav-toggle {
  display: none;
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  transition: width 0.25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--violet); }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: #fff;
  box-shadow: 4px 4px 0 var(--mint);
}
.btn-primary:hover { color: #fff; box-shadow: 6px 6px 0 var(--pink); }

.btn-outline {
  background: transparent;
  color: var(--violet);
  border: 2px solid var(--violet);
  clip-path: none;
  border-radius: 0;
}
.btn-outline:hover { background: var(--mint); color: var(--ink); }

.btn-mint {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--violet);
}

/* Hero split-merge */
.hero-merge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 720px);
  position: relative;
  overflow: hidden;
}

.hero-panel-left {
  background: var(--slate);
  color: #E2E8F0;
  padding: clamp(2rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
  position: relative;
  z-index: 2;
}

.hero-panel-right {
  background: linear-gradient(160deg, var(--violet) 0%, var(--violet-dark) 55%, #4C1D95 100%);
  padding: clamp(2rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8%;
  position: relative;
}

.hero-seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--mint), var(--pink), var(--mint));
  transform: translateX(-50%) skewX(-6deg);
  z-index: 5;
  box-shadow: 0 0 24px rgba(167, 243, 208, 0.6);
}

.hero-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mint);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-panel-left h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.hero-panel-left h1 em {
  font-style: normal;
  color: var(--mint);
}

.hero-panel-left p {
  max-width: 28rem;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.hero-unified {
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(167, 243, 208, 0.35);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  backdrop-filter: blur(8px);
}
.hero-unified strong {
  display: block;
  font-family: 'Syne', sans-serif;
  color: var(--mint);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hero-panel-right img {
  border: 3px solid var(--mint);
  box-shadow: -12px 12px 0 rgba(236, 72, 153, 0.35);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

/* Stats merge row */
.stats-merge {
  background: var(--ink);
  padding: 3rem 0;
  position: relative;
}
.stats-merge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--violet) 0%, transparent 40%, transparent 60%, var(--pink) 100%);
  opacity: 0.15;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-block {
  border-left: 3px solid var(--mint);
  padding-left: 1.5rem;
  text-align: left;
}
.stat-block:nth-child(2) { border-color: var(--violet); }
.stat-block:nth-child(3) { border-color: var(--pink); }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-num span { color: var(--mint); font-size: 0.55em; }
.stat-label {
  color: #94A3B8;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Fusion cards */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.fusion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.fusion-card {
  padding: 2rem;
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fusion-card:nth-child(odd) {
  background: var(--stream);
  border: 2px solid #E2E8F0;
}
.fusion-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(167, 243, 208, 0.25));
  border: 2px solid var(--mint);
}

.fusion-chip {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 0.75rem;
}
.fusion-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.fusion-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--violet);
  margin: 1rem 0;
}

/* Pipeline strip */
.merge-strip {
  background: var(--slate);
  padding: 1.75rem 0;
  overflow: hidden;
}
.strip-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  align-items: center;
}
.strip-node {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(248, 250, 252, 0.08);
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.88rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.strip-node .dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
}
.strip-connector {
  color: var(--pink);
  font-weight: 800;
  padding: 0 0.35rem;
  font-size: 1.1rem;
}

/* Services row */
.service-merge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.service-tile {
  background: #fff;
  padding: 1.75rem;
  border-top: 4px solid var(--violet);
  box-shadow: 8px 0 0 var(--mint);
}
.service-tile:nth-child(even) {
  border-top-color: var(--pink);
  box-shadow: -8px 0 0 rgba(124, 58, 237, 0.2);
}
.service-tile h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-tile a {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: inline-block;
}

/* Layer fusion diagram */
.layer-fusion {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(110deg, #fff 45%, rgba(167, 243, 208, 0.35) 45%);
  padding: 3rem;
  border: 2px solid #E2E8F0;
}

.diagram-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.diagram-layer {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
}
.diagram-layer:nth-child(1) { background: #E2E8F0; margin-left: 0; }
.diagram-layer:nth-child(2) { background: var(--mint); margin-left: 1rem; }
.diagram-layer:nth-child(3) { background: rgba(124, 58, 237, 0.2); margin-left: 2rem; color: var(--violet-dark); }
.diagram-layer:nth-child(4) { background: var(--violet); color: #fff; margin-left: 3rem; }
.diagram-layer span { font-size: 0.75rem; opacity: 0.85; }

/* Testimonials split */
.testimonial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.testimonial {
  padding: 2rem;
  position: relative;
}
.testimonial:first-child {
  background: var(--violet);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}
.testimonial:first-child cite { color: var(--mint); }
.testimonial:last-child {
  background: #fff;
  border: 2px solid var(--mint);
  margin-top: 2rem;
}
.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate);
}

/* CTA violet band */
.cta-violet {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 50%, #4C1D95 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-violet::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -30%;
  width: 40%;
  height: 160%;
  background: var(--mint);
  opacity: 0.12;
  transform: skewX(-18deg);
}
.cta-violet h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.cta-violet p { color: #DDD6FE; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.cta-violet .btn-mint { position: relative; z-index: 1; }

/* Inline email bar */
.email-merge-bar {
  background: var(--ink);
  padding: 2rem 0;
  text-align: center;
}
.email-merge-bar a {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--mint);
}
.email-merge-bar a:hover { color: var(--pink); }
.email-merge-bar p { color: #94A3B8; margin-top: 0.5rem; font-size: 0.9rem; }

/* Footer split */
.site-footer {
  background: var(--slate);
  color: #CBD5E1;
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer .logo { color: #fff; }
.site-footer a { color: var(--mint); }
.site-footer a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.15);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* Cookie */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #E2E8F0;
  padding: 1rem;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border-top: 3px solid var(--violet);
}
#cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
#cookie-banner a { color: var(--mint); }

/* Page hero */
.page-hero {
  background: linear-gradient(120deg, var(--slate) 38%, var(--violet) 38%);
  color: #fff;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--mint);
  margin-bottom: 0.75rem;
}
.page-hero p { color: #E2E8F0; max-width: 32rem; margin-top: 0.75rem; }

/* Catalog */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #E2E8F0;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.catalog-item {
  background: #fff;
  border: 2px solid #E2E8F0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.catalog-item img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.catalog-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.ref-code { font-size: 0.8rem; color: var(--muted); }
.catalog-body h3 { margin: 0.5rem 0; font-size: 1.15rem; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.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 select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E2E8F0;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
}
.form-group input.error, .form-group select.error, .form-group textarea.error {
  border-color: var(--pink);
}
.form-message { margin-top: 1rem; padding: 0.75rem; font-weight: 600; }
.form-message.success { background: rgba(167, 243, 208, 0.5); color: var(--ink); }
.form-message.error { background: rgba(236, 72, 153, 0.15); color: #9D174D; }

.contact-info {
  background: linear-gradient(160deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: #fff;
  padding: 2rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.contact-info h2 { color: #fff; margin-bottom: 1rem; }
.contact-info a { color: var(--mint); }

/* Legal prose */
.legal-prose {
  max-width: 48rem;
  background: #fff;
  padding: 2.5rem;
  border-left: 4px solid var(--violet);
}
.legal-prose h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li { margin-bottom: 0.85rem; }
.legal-prose ul { padding-left: 1.5rem; }

/* About / services content blocks */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-content.reverse { direction: rtl; }
.split-content.reverse > * { direction: ltr; }

.service-detail {
  padding: 2.5rem 0;
  border-bottom: 1px solid #E2E8F0;
}
.service-detail:last-child { border-bottom: none; }
.service-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 4px solid var(--violet);
}

.value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.value-pill {
  padding: 0.35rem 0.85rem;
  background: var(--mint);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-merge { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel-left { clip-path: none; }
  .hero-panel-right { margin-left: 0; padding-top: 0; }
  .hero-seam { display: none; }
  .fusion-grid, .layer-fusion, .testimonial-split, .split-content, .form-grid, .footer-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .testimonial:last-child { margin-top: 0; }
  .layer-fusion { background: #fff; padding: 1.5rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 1rem 0;
  }
  .main-nav.open { display: flex; }
}
