:root{
  --bg: #0b0f14;
  --bg2: #070a0f;
  --panel: rgba(255,255,255,0.07);
  --panel2: rgba(255,255,255,0.10);
  --line: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --accent: #e11d48;
  --accent2: #fb7185;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.40);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: #f3f5f7;
  color: #0f172a;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration:none; }
.wrap{ width:min(1120px, 92vw); margin:0 auto; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,15,20,0.92), rgba(6,8,11,0.82));
  border-bottom: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
.bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}
.logo{
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.6px;
  white-space: nowrap;
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.logo::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  box-shadow: 0 0 0 5px rgba(225,29,72,0.20);
}
.nav{
  display:flex;
  align-items:center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  color: rgba(255,255,255,0.80);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}
.nav a:hover{ background: rgba(255,255,255,0.08); color:#fff; transform: translateY(-1px); }
.nav-call{
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  color:#fff !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 40px rgba(225,29,72,0.28);
}
.nav-call:hover{ filter: brightness(0.97); }

/* Hero */
.hero{
  position: relative;
  min-height: 560px;
  max-height: 760px;
  height: 72vh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero-bg{
  position:absolute;
  inset:0;
  background: url("images/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}
.hero-shade{
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 60% at 18% 20%, rgba(225,29,72,0.35), rgba(0,0,0,0) 55%),
    radial-gradient(70% 55% at 75% 15%, rgba(251,113,133,0.22), rgba(0,0,0,0) 60%),
    linear-gradient(to top, rgba(0,0,0,0.70), rgba(0,0,0,0.22));
}
.hero-content{
  position: relative;
  height: 100%;
  display:flex;
  align-items:flex-end;
  padding: 32px 0 44px;
}
.hero-card{
  width: min(720px, 100%);
  padding: 22px 20px;
  border-radius: calc(var(--radius) + 4px);
  background: rgba(10,14,20,0.62);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.kicker{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.86);
  font-weight: 850;
  letter-spacing: 0.3px;
}
.hero-title{
  margin: 0 0 10px;
  color: #fff;
  font-weight: 950;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
}
.hero-sub{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.78);
  font-weight: 650;
  max-width: 62ch;
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent));
  box-shadow: 0 14px 40px rgba(225,29,72,0.28);
}
.btn.primary:hover{ filter: brightness(0.97); }
.btn.ghost{ background: rgba(255,255,255,0.08); color:#fff; }
.btn.ghost:hover{ background: rgba(255,255,255,0.14); }

.hero-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 13px;
}

/* Origin point for fly animation */
.fly-origin{
  position:absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 1px;
  pointer-events:none;
}

/* Sections */
.section{ padding: 76px 0; }
.section-head{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.section h2{
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.2px;
}
.section-head p{
  margin: 0;
  color: #475569;
  font-weight: 650;
  max-width: 70ch;
}

.section.dark{
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
}
.section.dark .section-head p{ color: rgba(255,255,255,0.72); }

/* Aggregates */
.agg-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.agg{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.agg:hover{
  transform: translateY(-3px);
  background: var(--panel2);
  border-color: rgba(255,255,255,0.18);
}
.agg-img{
  width: min(320px, 100%);
  height: auto;
  display:block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 26px 36px rgba(0,0,0,0.42));
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}
.agg h3{ margin: 8px 0 6px; color: #fff; }
.agg p{
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-weight: 650;
  font-size: 14px;
}

/* Services */
.services{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service{
  background:#fff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.service:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}
.service h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}
.service p{
  margin: 0;
  color:#475569;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.45;
}
.note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #f8fafc;
  color: #334155;
  font-weight: 750;
}

/* Contact */
.section.contact{
  background: linear-gradient(180deg, var(--bg2), #05070a);
  color: var(--text);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.section.contact .section-head p{ color: rgba(255,255,255,0.72); }
.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-tile{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 900;
  color:#fff;
  display:flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 180ms ease, background 180ms ease;
}
.contact-tile:hover{ background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.contact-label{ color: rgba(255,255,255,0.70); font-weight: 800; font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase; }
.contact-value{ font-size: 18px; }
.contact-hint{ color: rgba(255,255,255,0.70); font-weight: 750; font-size: 13px; }

/* Footer */
.footer{
  background: #05070a;
  color: rgba(255,255,255,0.60);
  padding: 22px 0;
}
.foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
.to-top:hover{ text-decoration: underline; }

/* Scroll animations */
[data-animate]{
  opacity: 0;
  transform: translateY(10px);
}
.in-view{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .nav a, .btn, .agg, .service, .contact-tile{ transition: none !important; }
  [data-animate]{ opacity: 1; transform: none; }
  .agg-img{ opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px){
  .services{ grid-template-columns: 1fr 1fr; }
  .agg-grid{ grid-template-columns: 1fr; }
  .hero{ height: auto; min-height: 520px; }
  .hero-content{ padding: 26px 0 34px; }
  .fly-origin{ top: 68%; }
}
@media (max-width: 620px){
  .bar{ padding: 12px 0; }
  .nav{ gap: 4px; }
  .hero-card{ padding: 18px 16px; }
  .contact-grid{ grid-template-columns: 1fr; }
  .services{ grid-template-columns: 1fr; }
}
