/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0f1117;
  --bg-card:      #181b27;
  --bg-card-alt:  #1e2130;
  --accent:       #7c3aed;
  --accent-hover: #6d28d9;
  --text:         #ffffff;
  --text-muted:   #94a3b8;
  --border:       rgba(255,255,255,0.07);
  --radius:       12px;
  --header-h:     72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

/* ── Logo ───────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
}

.footer-logo-img {
  height: 28px;
}

/* ── Main ───────────────────────────────────────────────────────── */
#main-content {
  padding-top: var(--header-h);
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 80px 40px 80px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ── Services ───────────────────────────────────────────────────── */
.services-section {
  padding: 100px 0;
  background: var(--bg-card);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 40px;
  max-width: 1140px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--text-muted);
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Contact ────────────────────────────────────────────────────── */
.contact-section {
  padding: 100px 24px;
  background: var(--bg);
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-detail {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-detail a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--accent);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-sister {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-sister-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.footer-sister-logo {
  height: 28px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-sister-logo:hover { opacity: 1; }

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-social {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
  }
}

@media (max-width: 600px) {
  .site-header { padding: 0 20px; }

  .hero-content { padding: 60px 20px; }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .services-section { padding: 60px 0; }
  .contact-section  { padding: 60px 20px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
