:root {
  --bg: #08090d;
  --bg-soft: #0e1016;
  --surface: #12141c;
  --surface-hover: #171a24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --text-dim: #9ca0ae;
  --text-faint: #6b6f7d;
  --accent: #7c8cff;
  --accent-2: #55e6c1;
  --accent-grad: linear-gradient(135deg, #7c8cff 0%, #b06ffb 55%, #55e6c1 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------------------- background fx -------------------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-fx::before,
.bg-fx::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  animation: drift 22s ease-in-out infinite alternate;
}

.bg-fx::before {
  top: -20%;
  left: -10%;
  background: radial-gradient(circle at 30% 30%, #7c8cff, transparent 70%);
}

.bg-fx::after {
  bottom: -25%;
  right: -10%;
  background: radial-gradient(circle at 60% 60%, #55e6c1, transparent 70%);
  animation-delay: -11s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 8%) scale(1.12); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------- nav -------------------- */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8, 9, 13, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

header.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 15px;
}

.logo-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.logo-mark .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logo-mark .core {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0a0a0f;
  letter-spacing: -0.02em;
}

.brand-name { color: var(--text); }
.brand-name small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

nav.links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--text-dim);
}

nav.links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

nav.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent-grad);
  transition: width 0.25s ease;
}

nav.links a:hover { color: var(--text); }
nav.links a:hover::after { width: 100%; }

@media (max-width: 640px) {
  nav.links { display: none; }
}

/* -------------------- sections -------------------- */
main { position: relative; z-index: 2; }

section {
  padding: 130px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

/* -------------------- hero -------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero h1 .split {
  display: inline-block;
  overflow: hidden;
}

.hero h1 .split span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes rise {
  to { transform: translateY(0); }
}

.hero p.lead {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.08rem;
  margin: 0 0 38px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.55s;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.75s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color .25s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent-grad);
  color: #0a0a0f;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 140, 255, 0.35);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn.ghost:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  background: rgba(255,255,255,0.05);
}

.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translate(2px, -2px); }

.hero-meta {
  margin-top: 70px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 13px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.95s;
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* -------------------- reveal on scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-head {
  margin-bottom: 46px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin: 0;
}

/* -------------------- about -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-grid p {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin: 0 0 16px;
}

.fact-list {
  display: grid;
  gap: 14px;
}

.fact {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
  transition: border-color 0.25s ease, transform 0.25s ease, background .25s ease;
}

.fact:hover {
  border-color: rgba(124,140,255,0.35);
  transform: translateX(4px);
  background: rgba(124,140,255,0.05);
}

.fact .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.fact .v {
  font-size: 14.5px;
  font-weight: 600;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* -------------------- services -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.brands-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.brands-grid .flagship { margin-top: 0; }

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s ease, background 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,140,255,0.4);
  background: var(--surface-hover);
}

.card:hover::before { opacity: 0.06; }

.card .icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124,140,255,0.12);
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background 0.35s ease;
}

.card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(124,140,255,0.2);
}

.card .icon svg { width: 22px; height: 22px; }

.card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.08rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.card p {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  font-size: 0.94rem;
  margin: 0;
}

.card .tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* -------------------- flagship banner -------------------- */
.flagship {
  margin-top: 26px;
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,140,255,0.08), rgba(85,230,193,0.05));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.flagship .left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.flagship .dot {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0a0a0f;
  flex-shrink: 0;
}

.flagship h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.flagship span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* -------------------- contact -------------------- */
.contact-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--accent-grad);
  opacity: 0.12;
  filter: blur(80px);
  top: -100px;
  right: -60px;
  border-radius: 50%;
}

.contact-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.contact-card p {
  color: var(--text-dim);
  margin: 0;
  max-width: 420px;
}

.contact-meta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.contact-meta a { color: var(--text-dim); transition: color .2s ease; }
.contact-meta a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .contact-card { grid-template-columns: 1fr; padding: 32px; }
}

/* -------------------- footer -------------------- */
footer {
  position: relative;
  z-index: 2;
  padding: 40px 0 50px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 12.5px;
}

footer .fbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}

footer .flegal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

footer .flegal a {
  transition: color 0.2s ease;
}

footer .flegal a:hover {
  color: var(--text);
}

/* -------------------- legal pages -------------------- */
.legal-page {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 28px 80px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-page .stand {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 40px;
}

.legal-page h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.legal-page p {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0 0 14px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.legal-page .back:hover { color: var(--text); }

.legal-page .legal-footer-links {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
