/* UFUIMI — shared styles */
:root {
  --bg: #070b16;
  --bg-2: #0c1222;
  --surface: #111a2e;
  --surface-2: #16213a;
  --line: #22304f;
  --text: #e8edf7;
  --muted: #9aa8c4;
  --teal: #2ee6c5;
  --violet: #8b7bff;
  --amber: #ffb547;
  --grad: linear-gradient(120deg, var(--teal), var(--violet));
  --radius: 16px;
  --max: 1180px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 "Inter", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 1.25rem "Space Grotesk", sans-serif; letter-spacing: .08em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 .98rem "Inter", sans-serif;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px rgba(46, 230, 197, .25); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(46, 230, 197, .35); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }
.nav-links .btn { color: #04121a; padding: 10px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { position: relative; padding: 110px 0 100px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(139, 123, 255, .22), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(46, 230, 197, .14), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { max-width: 560px; margin-bottom: 34px; }
.hero-art { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.page-hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139, 123, 255, .2), transparent 65%);
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 880px; }
.page-hero .lead { max-width: 720px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.stat { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17, 26, 46, .6); }
.stat strong { display: block; font: 700 1.9rem "Space Grotesk", sans-serif; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Pillars (two themes) */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.pillar:hover { border-color: rgba(46, 230, 197, .5); transform: translateY(-3px); }
.pillar-art { aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.pillar-art img { width: 100%; height: 100%; object-fit: cover; }
.pillar-body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.pillar-body ul { margin: 6px 0 26px; padding: 0; list-style: none; }
.pillar-body li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.pillar-body li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 2px; background: var(--grad);
}
.pillar-body .btn { margin-top: auto; align-self: flex-start; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease;
}
.card:hover { border-color: rgba(139, 123, 255, .55); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(46, 230, 197, .16), rgba(139, 123, 255, .16));
  border: 1px solid var(--line);
}
.icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-art { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { padding: 8px 0 8px 34px; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
  background: rgba(46, 230, 197, .15); color: var(--teal);
}

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 700 2rem "Space Grotesk", sans-serif; margin-bottom: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Quote / CTA */
.cta {
  border-radius: 28px; padding: 64px; text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(46, 230, 197, .22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(139, 123, 255, .28), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta p { max-width: 620px; margin: 0 auto 30px; color: var(--muted); }
.cta .btn-row { justify-content: center; }

.quote {
  font: 500 clamp(1.3rem, 2.4vw, 1.8rem)/1.45 "Space Grotesk", sans-serif;
  max-width: 900px; margin: 0 auto; text-align: center;
}
.quote cite { display: block; margin-top: 18px; font: 500 .95rem "Inter", sans-serif; color: var(--muted); font-style: normal; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; background: rgba(17, 26, 46, .6); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: .98rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 230, 197, .15); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 14px; font-weight: 500; color: var(--teal); min-height: 1.5em; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; margin-bottom: 22px; }
.info-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .icon { margin: 0; flex: none; }
.info-item h4 { font-size: 1rem; margin: 0 0 4px; }
.info-item p, .info-item address { margin: 0; color: var(--muted); font-style: normal; }
.map { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.7); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 20px 24px; margin-bottom: 14px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text); }
.site-footer address { font-style: normal; color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .9rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .cards, .cards.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .container { padding: 0 16px; }
  .pillars, .cards, .cards.two, .cards.four, .steps, .form-row { grid-template-columns: 1fr; }
  .cta { padding: 44px 24px; }
  .form, .info-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
