:root{
  --bg:#0b0f14;
  --bg2:#0f1622;
  --panel:#101826;
  --panel2:#0f1826;
  --text:#e7eef8;
  --muted:#a7b4c7;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.40);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 15% 0%, rgba(124,92,255,.16), transparent 60%),
              radial-gradient(900px 500px at 85% 15%, rgba(80,255,214,.10), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,20,.55);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:16px;
}

.brand-logo{
  height:34px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  color:var(--muted);
  font-size:14px;
}
.nav a{padding:8px 6px; border-radius:10px}
.nav a:hover{background:rgba(255,255,255,.05); color:var(--text)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-weight:600;
  color:var(--text);
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.09); box-shadow: var(--shadow)}
.btn:active{transform: translateY(0px)}
.btn-ghost{background:transparent}
.btn-sm{padding:10px 14px; font-size:14px}

.hero{
  padding: 72px 0 30px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:22px;
  align-items:start;

}
@media (max-width: 900px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .nav{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
  }
  .nav a{
    padding: 10px 8px;
  }
  .nav .btn{
    margin-left: 0;
  }
  .nav .lang{
    margin-left: auto;
  }

  .hero-grid{
    grid-template-columns: 1fr;
    align-items: start;
  }
}


.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  letter-spacing:.2px;
  color:var(--muted);
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height:1.05;
  letter-spacing:-.02em;
}
.grad{
  background: linear-gradient(90deg, #7c5cff, #50ffd6);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.lead{
  margin:0;
  color: var(--muted);
  font-size: 17px;
  line-height:1.6;
  max-width: 62ch;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.trust-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:18px;
}
@media (max-width: 640px){
  .trust-row{grid-template-columns:1fr}
}
.trust-item{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px 14px;
  background: rgba(255,255,255,.03);
}
.trust-k{font-weight:700; font-size:13px}
.trust-v{color:var(--muted); font-size:13px; margin-top:2px}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16,24,38,.60);
  box-shadow: var(--shadow);
}
.hero-card .card{padding:18px}
.card-h{font-weight:800; font-size:16px}
.phon{color:var(--muted); font-weight:600; font-size:12px; margin-left:6px}
.card-p{color:var(--muted); margin:10px 0 0; line-height:1.6; font-size:14px}
.card-divider{height:1px; background: var(--border); margin:14px 0}
.card-mini{display:flex; justify-content:space-between; gap:14px; padding:8px 0}
.mini-label{color:var(--muted); font-size:12px}
.mini-value{font-weight:600; font-size:12px; text-align:right}

.note{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  padding:10px 12px;
  border:1px dashed rgba(255,255,255,.14);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.section{
  padding: 42px 0;
}
.section h2{
  margin:0 0 10px;
  font-size: 26px;
  letter-spacing:-.01em;
}
.sub{margin:0 0 18px; color:var(--muted); line-height:1.6}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .grid-2{grid-template-columns:1fr}
}
.panel{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding:16px 16px;
}
.panel p{margin:0; color:var(--muted); line-height:1.7}

.list{margin-top:12px; display:grid; gap:10px}
.li{display:flex; gap:10px; align-items:flex-start; color:var(--text); font-size:14px; line-height:1.5}
.dot{
  width:8px; height:8px; margin-top:7px;
  border-radius:999px;
  background: linear-gradient(90deg, #7c5cff, #50ffd6);
  flex:0 0 8px;
}

.split{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.tag{
  display:inline-flex;
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.muted{color:var(--muted)}
.cards-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 980px){
  .cards-3{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .cards-3{grid-template-columns:1fr}
}
.cap{padding:16px}
.cap-h{font-weight:800}
.cap-p{color:var(--muted); margin-top:6px; line-height:1.6; font-size:14px}

.callout{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px 14px;
  background: rgba(255,255,255,.03);
  margin-bottom:10px;
}
.callout-h{font-weight:800; margin-bottom:6px}

.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  padding:18px;
}
@media (max-width: 900px){
  .contact{grid-template-columns:1fr}
}
.contact-actions{
  display:grid;
  gap:10px;
  align-content:start;
}
.hint{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.footer{
  border-top:1px solid var(--border);
  padding:26px 0 34px;
  background: rgba(11,15,20,.35);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  gap:14px;
  align-items:center;
}
@media (max-width: 900px){
  .footer-grid{grid-template-columns:1fr; text-align:left}
}
.footer-logo{height:30px; width:auto}
.footer-links{
  display:flex; gap:14px; justify-content:center;
  color:var(--muted); font-size:13px;
}
.footer-links a{padding:8px 10px; border-radius:12px}
.footer-links a:hover{background:rgba(255,255,255,.05); color:var(--text)}
.footer-legal{justify-self:end}
.small{font-size:12px}


/* Right-side hero stack: logo panel above the RegTech card */
.hero-side{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;  
}

/* White logo block with the original JPG */
.brand-panel{
  background: #ffffff;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px; /* visually aligns with the left headline block */
}
.brand-panel img{
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  display: block;
}

/* RegTech badge inside the card */
.card-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 650;
  margin-bottom: 12px;
}


/* Language switch in top nav */
.nav a.lang{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.nav a.lang:hover{
  background: rgba(255,255,255,.08);
}


/* Footer micro-notice (no banner) */
.cookie-micro{
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
}
.cookie-micro a{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* Address link (trust + mobile UX) */
.map-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Mermaid diagrams (v17) */
.mermaid {
  width: 100%;
  overflow-x: auto;
}
.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Mermaid fallback (v18): if diagrams don't render, keep the text readable */
.mermaid { white-space: pre-wrap; line-height: 1.35; }


/* Mermaid readability (v21) */
.panel .mermaid {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 14px;
  overflow-x: auto;
}

/* Keep SVG responsive and increase diagram text size */
.panel .mermaid svg {
  max-width: 100%;
  height: auto;
  font-size: 16px;
}

/* Slightly larger on desktop */
@media (min-width: 900px) {
  .panel .mermaid svg {
    font-size: 18px;
  }
}


/* Mermaid maximum contrast (v22) */
.panel .mermaid {
  background: #ffffff;
  color: #000000;
  border-radius: 16px;
  padding: 16px;
  overflow-x: auto;
}

/* Bigger text */
.panel .mermaid svg {
  max-width: 100%;
  height: auto;
  font-size: 18px;
}

/* Force bold black text everywhere */
.panel .mermaid svg text {
  fill: #000000 !important;
  font-weight: 800 !important;
}

/* Thicken and darken lines/arrows */
.panel .mermaid svg .edgePath path,
.panel .mermaid svg path {
  stroke: #000000 !important;
  stroke-width: 2.2px !important;
}

/* Ensure node borders are black and node fills stay white */
.panel .mermaid svg .node rect,
.panel .mermaid svg .node polygon,
.panel .mermaid svg .node circle,
.panel .mermaid svg .node ellipse {
  fill: #ffffff !important;
  stroke: #000000 !important;
  stroke-width: 2px !important;
}

/* Slightly larger on desktop */
@media (min-width: 900px) {
  .panel .mermaid svg { font-size: 20px; }
}


/* Mermaid text force-black (v23) */
.panel .mermaid svg {
  font-size: 20px; /* base */
}

/* Force all diagram text to true black + bold */
.panel .mermaid svg text,
.panel .mermaid svg tspan,
.panel .mermaid svg .label,
.panel .mermaid svg .nodeLabel,
.panel .mermaid svg .edgeLabel {
  fill: #000000 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}

/* If any labels render as HTML (foreignObject), force those too */
.panel .mermaid svg foreignObject,
.panel .mermaid svg foreignObject * {
  color: #000000 !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}

/* Slightly larger on desktop */
@media (min-width: 900px) {
  .panel .mermaid svg { font-size: 22px; }
}
