/* SynapseLink — synaptic-network theme. Connections, integrations, neural links, agent orchestration. */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --indigo: #4338CA;
  --indigo-soft: #5b50e0;
  --cyan: #22D3EE;
  --pink: #EC4899;
  --net: #111827;
  --net-2: #0c121f;
  --panel: #161f30;
  --text: #F9FAFB;
  --muted: #9aa6bd;
  --glass: rgba(255, 255, 255, 0.035);
  --line: rgba(148, 163, 184, 0.16);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', system-ui, sans-serif;
  background: var(--net);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 34px 34px;
}
h1, h2, h3, h4 { font-family: 'Exo 2', sans-serif; line-height: 1.1; color: #fff; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { color: #cbd3e1; }
a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
section { padding: clamp(54px, 8vw, 108px) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .26em; font-size: .72rem; color: var(--cyan); font-weight: 600; font-family: 'Exo 2', sans-serif; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); animation: nodepulse .5s ease-in-out infinite alternate; }
.lead { font-size: clamp(1rem, 1.5vw, 1.16rem); color: #b9c2d4; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
@keyframes nodepulse { from { box-shadow: 0 0 0 3px rgba(34, 211, 238, .28); } to { box-shadow: 0 0 0 7px rgba(34, 211, 238, .04); } }

/* Buttons — filled indigo, hover cyan, white text. Angular (cut corner) to differ. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-weight: 600; font-family: 'Exo 2', sans-serif;
  cursor: pointer; border: 1px solid transparent; font-size: .96rem;
  border-radius: 8px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  letter-spacing: .01em;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 26px rgba(67, 56, 202, .4); }
.btn-primary:hover { background: var(--cyan); color: #06222a; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34, 211, 238, .4); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* Node-dot logo */
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Exo 2', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: -0.01em; }
.logo .node { position: relative; width: 30px; height: 30px; flex: 0 0 30px; }
.logo .node span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.logo .node span:nth-child(1) { top: 0; left: 0; background: var(--cyan); }
.logo .node span:nth-child(2) { top: 0; right: 0; background: var(--pink); }
.logo .node span:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); background: var(--indigo-soft); }
.logo .node::before, .logo .node::after { content: ""; position: absolute; height: 2px; background: var(--line); top: 4px; left: 6px; width: 18px; transform-origin: left; }
.logo .node::before { transform: rotate(34deg); }
.logo .node::after { transform: rotate(146deg); top: 6px; }
.logo b { color: var(--cyan); font-weight: 800; }

/* Header / nav */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 18, 31, 0.82); backdrop-filter: blur(13px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a { color: #d4dbe8; font-weight: 500; font-size: .95rem; position: relative; }
.nav-menu a:hover { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--text); transition: .3s; }

/* Hero — synaptic network */
.hero { padding-top: 142px; padding-bottom: 86px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(680px 460px at 85% 8%, rgba(34, 211, 238, .18), transparent 62%),
    radial-gradient(620px 460px at 6% 92%, rgba(236, 72, 153, .16), transparent 60%),
    radial-gradient(700px 520px at 50% 50%, rgba(67, 56, 202, .14), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero h1 { margin: 16px 0 18px; }
.hero h1 .hl { color: var(--cyan); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.hero-visual::after { content: ""; position: absolute; inset: -1px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, .35); pointer-events: none; box-shadow: inset 0 0 40px rgba(67, 56, 202, .2); }
.hero-tag { position: absolute; left: -16px; bottom: -16px; background: var(--panel); border: 1px solid var(--cyan); border-radius: 10px; padding: 12px 16px; display: flex; gap: 11px; align-items: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.hero-tag .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(236, 72, 153, .2); animation: nodepulse .5s ease-in-out infinite alternate; }
.hero-tag small { color: var(--muted); display: block; font-size: .7rem; }
.hero-tag strong { color: #fff; font-family: 'Exo 2', sans-serif; }

/* Section heads */
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin: 12px 0 12px; }

/* Connector line (draw on scroll) */
.connector { height: 2px; background: linear-gradient(90deg, var(--cyan), var(--pink)); margin: 0 0 44px; transform: scaleX(0); transform-origin: left; transition: transform .9s ease; border-radius: 2px; }
.connector.visible { transform: scaleX(1); }

/* Grids */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Node cards — dark glass, alternating cyan/pink node borders, glow on hover */
.node-card {
  background: var(--glass); border: 1px solid var(--line); border-top: 3px solid var(--cyan);
  border-radius: 12px; padding: 26px; position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.node-card::after { content: ""; position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, .7); }
.node-card:nth-child(even) { border-top-color: var(--pink); }
.node-card:nth-child(even)::after { background: var(--pink); box-shadow: 0 0 12px rgba(236, 72, 153, .7); }
.node-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .06); box-shadow: 0 20px 46px rgba(34, 211, 238, .14); }
.node-card .num { font-family: 'Exo 2', sans-serif; color: var(--cyan); font-weight: 700; font-size: .82rem; letter-spacing: .14em; }
.node-card h3 { margin: 12px 0 8px; }
.node-card p { color: #b3bdd0; font-size: .94rem; }
.node-card .price { display: block; margin-top: 16px; font-family: 'Exo 2', sans-serif; font-weight: 700; color: #fff; font-size: 1.05rem; }
.node-card .price b { color: var(--cyan); font-weight: 700; }
.node-card .tag { display: inline-block; margin-top: 14px; font-size: .74rem; color: var(--pink); background: rgba(236, 72, 153, .12); padding: 5px 12px; border-radius: 6px; font-weight: 600; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.stat b { font-family: 'Exo 2', sans-serif; font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: #fff; display: block; }
.stat span { color: var(--muted); font-size: .88rem; }

/* Integration stack strip */
.stack { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stack .chip { border: 1px dashed var(--line); padding: 11px 20px; border-radius: 8px; color: #d4dbe8; background: var(--glass); font-family: 'Exo 2', sans-serif; font-weight: 500; font-size: .92rem; }
.stack .chip:hover { border-color: var(--cyan); border-style: solid; color: #fff; }

/* Node grid (Why SynapseLink) — asymmetric */
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.why-cell { grid-column: span 2; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: relative; transition: transform .3s ease, border-color .3s ease; }
.why-cell:nth-child(1) { grid-column: span 3; }
.why-cell:nth-child(2) { grid-column: span 3; }
.why-cell:hover { transform: translateY(-5px); border-color: var(--cyan); }
.why-cell .ic { width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(135deg, var(--indigo), var(--pink)); display: grid; place-items: center; font-family: 'Exo 2', sans-serif; font-weight: 700; color: #fff; margin-bottom: 14px; }
.why-cell h3 { margin-bottom: 6px; }
.why-cell p { color: #b3bdd0; font-size: .93rem; }

/* Full-bleed split + CTA */
.bleed { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.bleed.rev .bleed-txt { order: 2; }
.bleed-img img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.bleed-txt h2 { margin: 12px 0 16px; }

/* Catalog cards */
.sol-card { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.sol-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 22px 50px rgba(0, 0, 0, .5); }
.sol-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.sol-body { padding: 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sol-cat { align-self: flex-start; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--net); font-weight: 700; background: var(--cyan); padding: 4px 11px; border-radius: 5px; font-family: 'Exo 2', sans-serif; }
.sol-card:nth-child(even) .sol-cat { background: var(--pink); color: #fff; }
.sol-ref { font-family: 'Exo 2', monospace; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.sol-meta { list-style: none; font-size: .85rem; color: #b3bdd0; display: grid; gap: 4px; }
.sol-meta li b { color: #fff; font-weight: 500; }
.sol-price { font-family: 'Exo 2', sans-serif; font-size: 1.2rem; color: #fff; font-weight: 700; margin-top: auto; }
.sol-price span { color: var(--cyan); font-size: .8rem; display: block; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { background: var(--glass); border: 1px solid var(--line); color: #d4dbe8; padding: 9px 18px; border-radius: 8px; cursor: pointer; font-family: 'Exo 2', sans-serif; font-size: .86rem; font-weight: 500; transition: .2s; }
.filter:hover { border-color: var(--cyan); color: #fff; }
.filter.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* Testimonials */
.tcard { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 28px; position: relative; }
.tcard::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; background: linear-gradient(var(--cyan), var(--pink)); border-radius: 3px; }
.tcard p { color: #e2e8f0; font-style: italic; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard .av { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--indigo), var(--pink)); display: grid; place-items: center; font-weight: 700; color: #fff; font-family: 'Exo 2', sans-serif; }
.tcard .who small { color: var(--muted); display: block; }
.tcard .who b { color: #fff; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--indigo), var(--pink)); border-radius: 18px; padding: clamp(38px, 6vw, 66px); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(560px 280px at 78% 18%, rgba(255, 255, 255, .2), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 560px; margin: 14px auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--indigo); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.cta-band .btn-primary:hover { background: var(--net); color: #fff; }

/* Page hero (inner) */
.page-hero { padding-top: 134px; padding-bottom: 46px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 320px at 82% 0%, rgba(34, 211, 238, .16), transparent 60%); }
.page-hero .wrap { position: relative; z-index: 1; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* Forms */
.form-card { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: clamp(26px, 4vw, 42px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; margin-bottom: 7px; color: #fff; font-size: .92rem; font-family: 'Exo 2', sans-serif; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(7, 12, 22, .6); color: #fff; font-family: inherit; font-size: .95rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: var(--pink); font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.success-msg { display: none; text-align: center; padding: 30px; }
.success-msg.show { display: block; animation: fadein .6s ease; }
.success-msg .ic { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, var(--indigo), var(--cyan)); display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.7rem; color: #fff; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Contact info cards */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { background: var(--glass); border: 1px solid var(--line); border-radius: 11px; padding: 20px; position: relative; }
.info-card::before { content: ""; position: absolute; top: 16px; left: 0; width: 3px; height: 22px; background: var(--cyan); }
.info-card:nth-child(even)::before { background: var(--pink); }
.info-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.info-card p { color: #fff; margin-top: 6px; font-size: .94rem; }

/* Legal / prose */
.prose { max-width: 840px; }
.prose h2 { margin: 36px 0 14px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.prose h3 { margin: 24px 0 10px; color: var(--cyan); }
.prose p, .prose li { color: #c2ccdd; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: #fff; }

/* About lists */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-grid img { border-radius: 14px; border: 1px solid var(--line); }
.cert-list { list-style: none; display: grid; gap: 11px; }
.cert-list li { padding: 13px 18px; background: var(--glass); border: 1px solid var(--line); border-radius: 9px; display: flex; gap: 12px; align-items: center; }
.cert-list li::before { content: ""; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .6); }
.cert-list li:nth-child(even)::before { background: var(--pink); box-shadow: 0 0 8px rgba(236, 72, 153, .6); }

/* Footer */
footer.site { background: var(--net-2); border-top: 1px solid var(--line); padding: 58px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; }
.foot-grid h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.foot-links { list-style: none; display: grid; gap: 9px; }
.foot-links a { color: var(--muted); font-size: .9rem; }
.foot-links a:hover { color: var(--cyan); }
.foot-about p { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.foot-contact p { color: var(--muted); font-size: .87rem; margin-bottom: 8px; }
.foot-contact b { color: #fff; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }

/* Cookie banner */
.cookie-bar { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 560px; margin: 0 auto; background: var(--panel); border: 1px solid var(--cyan); border-radius: 12px; padding: 20px 22px; z-index: 200; display: none; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.cookie-bar.show { display: block; animation: fadein .5s ease; }
.cookie-bar p { font-size: .88rem; color: #c2ccdd; }
.cookie-bar .row { display: flex; gap: 12px; margin-top: 14px; align-items: center; }
.cookie-bar .btn { padding: 10px 22px; font-size: .86rem; }
.cookie-bar a { font-size: .88rem; }

/* Scroll animations with JS fallback */
.reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .bleed, .about-grid { grid-template-columns: 1fr; }
  .bleed.rev .bleed-txt { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cell, .why-cell:nth-child(1), .why-cell:nth-child(2) { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-menu { position: fixed; top: 72px; left: 0; right: 0; background: var(--net-2); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform .35s ease; }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-right .btn { display: none; }
  .grid-3, .grid-2, .info-grid, .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4, .stats, .why-grid, .foot-grid { grid-template-columns: 1fr; }
}
