/* ==========================================================
   CONNEXTECH — one-page site
   ========================================================== */
:root {
  --navy-950: #050b1f;
  --navy-900: #0a1330;
  --navy-800: #111c44;
  --navy-700: #1c2a5e;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-tint: #f5f7fc;
  --primary: #3b5bfd;
  --primary-600: #2f47d6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(100deg, #3b5bfd 0%, #22b8ee 55%, #22d3ee 100%);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
b { font-weight: 700; color: var(--ink); }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit;
}
.btn .ic { width: 1.05em; height: 1.05em; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 25px -8px rgba(59, 91, 253, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(59, 91, 253, .7); }
.btn-ghost { color: #e2e8f0; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; padding: .6rem 1.1rem; font-size: .92rem; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--navy-900); justify-content: center; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .4); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(5, 11, 31, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-name { font-weight: 800; letter-spacing: .06em; color: #fff; font-size: 1.1rem; }
.brand-name b { color: var(--cyan); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: #cbd5e1; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav .nav-cta { padding: .5rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.nav .nav-cta:hover { background: var(--primary); border-color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: #cbd5e1;
  padding: calc(var(--header-h) + 72px) 0 110px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(59, 91, 253, .28), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: #a5f3fc; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); animation: blink 2s infinite; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; margin: 1.3rem 0 1.4rem; letter-spacing: -0.035em; }
.hero .lead { font-size: 1.07rem; color: #94a3b8; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-badges { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; color: #94a3b8; }
.hero-badges li { display: flex; align-items: center; gap: .4rem; }
.hero-badges .ic { color: var(--cyan); stroke-width: 2.4; }

/* Dashboard illustration */
.hero-visual { position: relative; }
.dash {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 42, 94, .75), rgba(10, 19, 48, .9));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
}
.dash-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.dash-top span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dash-top span:nth-child(1) { background: #f87171; }
.dash-top span:nth-child(2) { background: #fbbf24; }
.dash-top span:nth-child(3) { background: #34d399; }
.dash-top em { margin-left: 10px; font-style: normal; font-size: .78rem; color: #94a3b8; }
.dash-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi small { font-size: .72rem; color: #94a3b8; }
.kpi strong { color: #fff; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.kpi i { font-style: normal; font-size: .7rem; font-weight: 600; }
.kpi .up { color: #34d399; } .kpi .warn { color: var(--pink); } .kpi .ok { color: var(--cyan); }
.chart { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 6px 0; }
.chart svg { width: 100%; height: 110px; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s .4s ease forwards; }
.pulse-dot { transform-origin: 225px 22px; animation: pulse 1.8s infinite; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .8rem; color: #cbd5e1; }
.feed li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255, 255, 255, .03); border-radius: 8px; }
.feed li span { margin-left: auto; color: #64748b; font-variant-numeric: tabular-nums; }
.tag { font-size: .68rem; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.t-warn { background: rgba(244, 114, 182, .16); color: var(--pink); }
.t-info { background: rgba(59, 91, 253, .22); color: #a5b4fc; }
.t-ok { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  animation: float 6s ease-in-out infinite;
}
.float-card .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--grad); color: #fff; stroke-width: 2; }
.float-card b { display: block; font-size: .88rem; }
.float-card small { font-size: .74rem; color: var(--muted); }
.fc-1 { left: -28px; bottom: -26px; }
.fc-2 { right: -18px; top: -22px; animation-delay: -3s; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-900); color: #94a3b8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p:last-child { margin-top: 1.1rem; font-size: 1.05rem; color: var(--muted); }
.section-dark .section-head p:last-child { color: #94a3b8; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .18em; color: var(--primary); margin-bottom: .8rem !important; }
.section-dark .kicker { color: var(--cyan); }

/* About cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #eef2ff; color: var(--primary); margin-bottom: 20px; }
.card-ic .ic { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* Compliance */
.compliance-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.compliance-grid h2 { margin-bottom: 1.2rem; }
.law-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.law-list li { display: flex; gap: 16px; padding: 18px 20px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.law-list span { font-weight: 800; font-size: .9rem; color: var(--primary); padding-top: 2px; }
.law-list p { color: var(--muted); font-size: .93rem; margin-top: 2px; }
.record { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.record-head { display: flex; align-items: center; gap: .6rem; padding: 18px 24px; font-weight: 700; color: #fff; background: var(--grad); }
.record-head .ic { width: 20px; height: 20px; }
.record dl { margin: 0; padding: 8px 24px; }
.record dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.record dl div:last-child { border-bottom: 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; font-weight: 600; color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .88rem; text-align: right; }
.record-foot { display: flex; align-items: center; gap: .5rem; padding: 14px 24px; background: #f0fdfa; color: #0f766e; font-size: .88rem; font-weight: 600; }

/* Architecture */
.arch {
  display: grid; grid-template-columns: 150px 44px 1.15fr 88px 1.35fr 44px 170px;
  align-items: center; padding: 40px 32px; border-radius: 24px;
  background: linear-gradient(180deg, #f8faff, #f1f5ff); border: 1px solid #e3e9fb;
}
.arch-col { display: grid; gap: 14px; }
.actor { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.actor-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #eef2ff; color: var(--primary); }
.actor-ic .ic { width: 26px; height: 26px; }
.actor b { font-size: .92rem; }
.actor small { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.actor-admin { background: var(--navy-900); border-color: var(--navy-900); }
.actor-admin b { color: #fff; }
.actor-admin small { color: #94a3b8; }
.actor-admin .actor-ic { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.zone { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }
.zone-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 12px; flex-wrap: wrap; }
.zone-title .ic { width: 20px; height: 20px; color: var(--primary); }
.zone-title small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: #eef2ff; color: var(--primary-600); border: 1px solid #dbe3ff; white-space: nowrap; }
.chip-ext { background: #fff; border-style: dashed; color: var(--muted); border-color: #cbd5e1; }
.sql-flow { display: flex; justify-content: center; gap: 24px; font-size: .76rem; color: var(--muted); font-weight: 600; }
.legend { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.legend .chip { padding: 2px 8px; }

.flow { position: relative; height: 2px; margin: 0 6px; }
.flow span {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: dash 1s linear infinite; opacity: .6;
}
.flow span::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--primary); border-right: 0; }
.flow-enc em {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-style: normal; font-size: .72rem; font-weight: 700; color: #db2777; white-space: nowrap;
}
.flow-enc em .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fdf2f8; border: 1px solid #fbcfe8; }
.flow-enc span { background: repeating-linear-gradient(90deg, #db2777 0 6px, transparent 6px 12px); background-size: 24px 2px; }
.flow-enc span::after { border-left-color: #db2777; }

.server {
  position: relative; padding: 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(145deg, #1c2a5e 0%, #0a1330 100%);
  box-shadow: 0 30px 60px -25px rgba(10, 19, 48, .7);
  display: grid; gap: 10px; overflow: hidden;
}
.server::before { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; top: -80px; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 65%); }
.server-title { position: relative; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; text-align: center; margin-bottom: 4px; }
.stage { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.stage .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(34, 211, 238, .15); color: var(--cyan); }
.stage b { color: #fff; font-size: .92rem; display: block; }
.stage small { color: #94a3b8; font-size: .76rem; line-height: 1.45; display: block; margin-top: 2px; }

/* Functions */
.func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.func {
  position: relative; padding: 36px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08); overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.func:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-4px); }
.func-num { position: absolute; right: 24px; top: 16px; font-size: 3.4rem; font-weight: 800; color: rgba(255, 255, 255, .05); line-height: 1; }
.func-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; box-shadow: 0 12px 24px -10px rgba(34, 184, 238, .7); }
.func-ic .ic { width: 28px; height: 28px; }
.func h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.func ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.func li { display: flex; align-items: center; gap: 10px; font-size: .96rem; color: #cbd5e1; }
.func li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); flex: none; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feat {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 32px; position: relative;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.feat:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.feat-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #eef2ff; color: var(--primary); }
.feat-ic .ic { width: 28px; height: 28px; }
.feat h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feat p { font-size: .96rem; color: var(--muted); }
.feat-metric { grid-column: 2; display: flex; align-items: baseline; gap: 8px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.feat-metric strong { font-size: 1.35rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat-metric small { color: var(--muted); font-size: .82rem; }

/* CTA */
.cta-band { padding: 90px 0; background: linear-gradient(120deg, #2f47d6 0%, #1d6fe0 50%, #0ea5c6 100%); color: #e0f2fe; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 10%, rgba(255, 255, 255, .18), transparent 60%); }
.cta-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 1rem; }
.cta-contacts { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 10px; }
.cta-contacts a { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; font-size: 1.1rem; }
.cta-contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-contacts .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .16); }
.info-list a:hover { color: var(--primary); }
.footer-info a:hover { color: #cbd5e1; }
.cta-form { display: grid; gap: 14px; padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.cta-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; color: #e0f2fe; }
.cta-form input, .cta-form textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .75rem .9rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .95); color: var(--ink); resize: vertical;
}
.cta-form input:focus, .cta-form textarea:focus { outline: 3px solid rgba(255, 255, 255, .5); outline-offset: 1px; }
.cta-form input.invalid { border-color: #fda4af; outline: 2px solid #fda4af; }
.consent { margin: 0; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.consent.invalid { border-color: #fda4af; outline: 2px solid #fda4af; }
.consent legend { padding: 0 6px; font-size: .84rem; font-weight: 700; color: #fff; }
.consent p { font-size: .86rem; color: #e0f2fe; }
.consent-summary { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 3px; font-size: .84rem; color: #e0f2fe; }
.consent-summary b { display: inline-block; min-width: 64px; color: #fff; }
.consent-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.consent-opts label { display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: #fff; cursor: pointer; }
.consent-opts input { width: 16px; height: 16px; accent-color: #fff; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-privacy { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; font-weight: 800; color: #fff; cursor: pointer; }
.footer-privacy:hover { color: var(--cyan); }

/* Privacy dialog */
.privacy {
  width: min(760px, calc(100% - 32px)); max-height: min(82vh, 900px); padding: 0; border: 0; border-radius: 20px;
  color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: hidden;
}
.privacy[open] { display: flex; flex-direction: column; }
.privacy::backdrop { background: rgba(5, 11, 31, .6); backdrop-filter: blur(4px); }
.privacy-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.privacy-head h2 { font-size: 1.2rem; }
.privacy-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg-tint); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.privacy-close:hover { background: #e2e8f0; }
.privacy-body { padding: 8px 24px 28px; overflow-y: auto; font-size: .9rem; }
.privacy-body h3 { font-size: 1rem; margin: 1.6rem 0 .6rem; }
.privacy-body p { margin-bottom: .7rem; color: var(--text); }
.privacy-intro { margin-top: 1rem !important; padding: 14px 16px; border-radius: 12px; background: var(--bg-tint); }
.form-note { font-size: .88rem; min-height: 1.2em; color: #fff; }

/* Location */
.loc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.loc-grid h2 { margin-bottom: 1.8rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: #eef2ff; color: var(--primary); }
.info-list b { display: block; margin-bottom: 2px; }
.info-list p { color: var(--text); }
.info-list small { color: var(--muted); }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-tint); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--navy-950); color: #64748b; padding: 56px 0 28px; font-size: .88rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand-footer { margin-bottom: 14px; }
.footer-info { line-height: 1.8; }
.footer-partner { display: grid; gap: 8px; align-content: start; justify-items: end; text-align: right; }
.footer-partner p { color: #e2e8f0; font-weight: 700; font-size: 1rem; }
.footer-partner a { color: #94a3b8; font-size: .84rem; }
.footer-partner a:hover { color: var(--cyan); }

/* Partnership */
.maker { margin-top: .9rem !important; font-size: .95rem !important; color: var(--muted); }
.maker span { margin: 0 .4rem; }
.partner-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #a5f3fc; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35);
}
.partner-badge .ic { width: 1.2em; height: 1.2em; }
.partner-badge-sm { font-size: .7rem; padding: .35rem .8rem; }
.partner-band { background: var(--navy-900); padding: 72px 0; position: relative; overflow: hidden; }
.partner-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(59, 91, 253, .3), transparent 60%); }
.partner-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.partner-copy h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin: 1.1rem 0 .9rem; }
.partner-copy p { color: #94a3b8; }
.partner-roles { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.role { display: grid; gap: 4px; padding: 22px 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.role small { color: #94a3b8; font-size: .78rem; font-weight: 600; }
.role b { color: #fff; font-size: 1.15rem; }
.role span { color: #64748b; font-size: .84rem; }
.role-us { background: var(--grad); border-color: transparent; box-shadow: 0 16px 36px -14px rgba(34, 184, 238, .7); }
.role-us small, .role-us span { color: rgba(255, 255, 255, .85); }
.role-link { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan); background: rgba(34, 211, 238, .1); }
.role-link .ic { width: 18px; height: 18px; }
.site-footer { border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .8rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dash { to { background-position: 24px 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .arch { grid-template-columns: 1fr; gap: 0; padding: 28px 20px; max-width: 560px; margin: 0 auto; }
  .arch-actors .actor, .arch-admin { width: 100%; }
  .arch-admin { grid-template-columns: 1fr 1fr; }
  .flow-h { width: 2px; height: 48px; margin: 6px auto; }
  .flow-h span { background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation-name: dash-v; }
  .flow-h span::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--primary); border-bottom: 0; }
  .flow-enc { height: 64px; }
  .flow-enc span { background: repeating-linear-gradient(180deg, #db2777 0 6px, transparent 6px 12px); background-size: 2px 24px; }
  .flow-enc span::after { border-left-color: transparent; border-top-color: #db2777; }
  .flow-enc em { left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: row; }
}
@keyframes dash-v { to { background-position: 0 24px; } }

@media (max-width: 960px) {
  .hero-grid, .compliance-grid, .cta-inner, .loc-grid, .partner-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .dash { transform: none; }
  .cards-3, .func-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: rgba(5, 11, 31, .97); backdrop-filter: blur(14px);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .site-header.menu-open { background: rgba(5, 11, 31, .97); }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: calc(var(--header-h) + 40px) 0 80px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .fc-1 { left: -6px; bottom: -22px; }
  .fc-2 { right: -6px; top: -26px; }
  .card, .feat, .func { padding: 26px 22px; }
  .feat { grid-template-columns: 1fr; }
  .feat-metric { grid-column: 1; }
  .cta-form { padding: 20px; }
  .cta-form .row { grid-template-columns: 1fr; }
  .record dl div { flex-direction: column; gap: 2px; }
  .record dd { text-align: left; }
  .arch-admin { grid-template-columns: 1fr; }
  .footer-partner { text-align: left; justify-items: start; }
  .partner-roles { grid-template-columns: 1fr; }
  .role-link { transform: rotate(90deg); justify-self: center; }
}
.nowrap { white-space: nowrap; }
