:root {
  --bg: #05070c;
  --bg-2: #0a0f1a;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --fg: #f2f5fa;
  --muted: #8b96a7;
  --accent: #5eead4;
  --accent-2: #6ea8fe;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---- Futuristic background ---- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--bg-2), transparent 70%),
    var(--bg);
}

.grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(to right, rgba(110, 168, 254, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 168, 254, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 70%);
  animation: drift 26s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 0 52px; }
}

.glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 48rem;
  height: 48rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(94, 234, 212, 0.12), transparent 60%);
  filter: blur(24px);
  animation: pulse 9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo .mark {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(94, 234, 212, 0.55);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* ---- Layout ---- */
main { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

/* ---- Hero ---- */
.hero {
  padding: 6rem 0 5rem;
  max-width: 760px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff, #aebdd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 8px 30px rgba(94, 234, 212, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(94, 234, 212, 0.35); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn-ghost:hover { border-color: var(--accent); }

/* ---- Services ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.04);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.card p { color: var(--muted); font-size: 0.98rem; }

/* ---- About ---- */
.about { max-width: 720px; }
.about p { color: var(--muted); font-size: 1.1rem; }

/* ---- Contact ---- */
.contact { max-width: 620px; }
.contact p { color: var(--muted); margin-bottom: 1.5rem; }

.email {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.4);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.email:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Footer ---- */
.foot {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

.foot-legal {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* ---- Legal / content pages ---- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.doc .back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.doc .back:hover { text-decoration: underline; }

.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #ffffff, #aebdd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 600;
}

.doc p, .doc li { color: #c3cddb; font-size: 1rem; }
.doc ul { margin: 0.5rem 0 0.5rem 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc a { color: var(--accent); }

.doc .entity {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .nav-links { gap: 1.1rem; }
  section { padding: 3.5rem 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  .grid, .glow { animation: none; }
  html { scroll-behavior: auto; }
}
