/* =====================================================
   Megeve Tech — Night Sky Theme
   Deep navy · constellation canvas · red accents
   ===================================================== */

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

:root {
  /* Night palette */
  --sky-deep:    #050d1a;
  --sky-mid:     #0a1628;
  --sky-surface: #0d1e38;
  --sky-card:    #0f2244;
  --sky-border:  rgba(100,160,255,0.12);
  --sky-glow:    rgba(100,160,255,0.06);

  /* Stars & highlights */
  --star-bright: #e8f0ff;
  --blue-soft:   #7ba7e0;
  --blue-mid:    #4a7fc1;
  --blue-light:  #adc8f0;

  /* Red accent (logo echo) */
  --red:         #c0392b;
  --red-light:   #e05a4b;
  --red-glow:    rgba(192,57,43,0.25);

  /* Text */
  --text-bright: #e8f0ff;
  --text-mid:    #8aafd4;
  --text-muted:  #4a6d9a;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-bright);
  background: var(--sky-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Night sky canvas ── */
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Labels & titles ── */
.section-label {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: 2rem;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(5,13,26,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--sky-border);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.22s ease;
}
.site-nav a:hover { color: var(--text-bright); }

.nav-cta {
  padding: 7px 18px !important;
  border: 1px solid var(--red) !important;
  border-radius: 2px;
  color: var(--red-light) !important;
  font-weight: 500 !important;
  transition: background 0.22s ease, color 0.22s ease !important;
}
.nav-cta:hover {
  background: var(--red) !important;
  color: #fff !important;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 2rem 100px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-bright);
  margin-bottom: 1.75rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--blue-light);
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-bright);
  border: 1px solid var(--sky-border);
  background: var(--sky-glow);
  padding: 12px 24px;
  border-radius: 2px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.hero-btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.hero-btn:hover {
  border-color: var(--red);
  background: var(--red-glow);
}
.hero-btn:hover svg { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-bar {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--red-light), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── Services ── */
.services {
  position: relative;
  z-index: 1;
  padding: 110px 0;
  background: var(--sky-mid);
  border-top: 1px solid var(--sky-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--sky-border);
  border: 1px solid var(--sky-border);
  margin-top: 3rem;
}

.svc-card {
  background: var(--sky-card);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc-card:hover { background: var(--sky-surface); }
.svc-card:hover::before { transform: scaleX(1); }

.svc-num {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--sky-border);
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}
.svc-card:hover .svc-num { color: rgba(100,160,255,0.18); }

.svc-icon {
  width: 42px;
  height: 42px;
  color: var(--blue-mid);
  margin-bottom: 1.25rem;
  transition: color 0.25s ease;
}
.svc-icon svg { width: 100%; height: 100%; }
.svc-card:hover .svc-icon { color: var(--blue-soft); }

.svc-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-bright);
  margin-bottom: 0.85rem;
}

.svc-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.svc-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-tags li {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-soft);
  background: rgba(74,127,193,0.12);
  border: 1px solid rgba(74,127,193,0.2);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ── Figures band ── */
.figures-band {
  position: relative;
  z-index: 1;
  background: var(--sky-deep);
  border-top: 1px solid var(--sky-border);
  border-bottom: 1px solid var(--sky-border);
  padding: 64px 0;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.figure {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--sky-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.figure:last-child { border-right: none; }

.figure-val {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1;
  position: relative;
}
.figure-plus {
  font-size: 1.5rem;
  color: var(--red-light);
  vertical-align: super;
}
.figure-lbl {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 140px;
}

/* ── About ── */
.about {
  position: relative;
  z-index: 1;
  padding: 110px 0;
  background: var(--sky-mid);
  border-top: 1px solid var(--sky-border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}
.about-content p:last-child { margin-bottom: 0; }

/* Visual composition */
.about-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--sky-border);
}
.vis-ring-a { width: 280px; height: 280px; animation: ringPulse 6s ease-in-out infinite; }
.vis-ring-b { width: 200px; height: 200px; border-color: rgba(74,127,193,0.2); animation: ringPulse 8s ease-in-out infinite 1s; }
.vis-ring-c { width: 120px; height: 120px; border-color: rgba(192,57,43,0.3); animation: ringPulse 5s ease-in-out infinite 0.5s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.04); opacity: 1; }
}

.vis-peak {
  position: relative;
  z-index: 2;
  width: 120px;
  filter: drop-shadow(0 0 12px rgba(192,57,43,0.5));
  animation: peakGlow 4s ease-in-out infinite;
}
.vis-peak svg { width: 100%; }

@keyframes peakGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(192,57,43,0.4)); }
  50%       { filter: drop-shadow(0 0 20px rgba(192,57,43,0.7)); }
}

/* ── Contact ── */
.contact-section {
  position: relative;
  z-index: 1;
  background: var(--sky-deep);
  border-top: 1px solid var(--sky-border);
  padding: 110px 0;
  text-align: center;
}

.contact-inner { max-width: 560px; }

.contact-sub {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 5px;
  transition: color 0.25s ease;
}
.contact-link svg { width: 22px; height: 22px; color: var(--red-light); flex-shrink: 0; }
.contact-link:hover { color: var(--red-light); }

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--sky-deep);
  padding: 2rem 0;
  border-top: 1px solid var(--sky-border);
}

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

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

.footer-copy {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { height: 280px; order: -1; }
  .figures-grid { grid-template-columns: 1fr 1fr; }
  .figure { border-right: none; border-bottom: 1px solid var(--sky-border); }
  .figure:nth-child(odd) { border-right: 1px solid var(--sky-border); }
}

@media (max-width: 640px) {
  .hero-headline { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .site-nav a:not(.nav-cta) { display: none; }
  .figures-grid { grid-template-columns: 1fr; }
  .figure:nth-child(odd) { border-right: none; }
  .contact-link { font-size: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
}
