:root{
  --bg:#0b0f16;
  --card:#0f1522ee;
  --line:#1b2333;
  --text:#f5f7ff;
  --muted:#a6b2c9;
  --accent1:#2b9cfb;
  --accent2:#16d2c1;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
}

/* Background canvas sits behind everything */
#bg{
  position:fixed; inset:0; z-index:-2;
  background: radial-gradient(1200px 800px at 20% -10%, #0a264580, transparent 60%),
              radial-gradient(900px 700px at 110% 20%, #001b2a66, transparent 60%),
              linear-gradient(180deg, #07101b 0%, #0b0f16 70%);
  /* ensure it never steals hover/clicks */
  pointer-events:none;
}

/* Layout */
.container{max-width:1100px; margin-inline:auto; padding:clamp(16px, 4vw, 28px);}

.site-header{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  position:sticky; top:0; background:linear-gradient(to bottom, rgba(11,15,22,.9), rgba(11,15,22,.4));
  backdrop-filter: blur(8px); border-bottom:1px solid #0f1522; z-index:20;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:700}
.brand img{filter:drop-shadow(0 8px 24px rgba(23,184,255,.25));}
.nav{display:flex; gap:20px; align-items:center}
.nav a{color:var(--muted); text-decoration:none; font-weight:600}
.nav a:hover{color:var(--text)}

.nav-toggle{display:none; background:none; border:0; width:42px; height:42px; position:relative}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after{
  content:""; position:absolute; left:8px; right:8px; height:2px; background:#c9d4ec; transition:.25s
}
.nav-toggle span{top:20px}
.nav-toggle span:before{top:-8px}
.nav-toggle span:after{top:8px}

/* Buttons */
.btn{
  --g:linear-gradient(135deg, var(--accent1), var(--accent2));
  display:inline-flex; align-items:center; justify-content:center;
  gap:.6rem; padding:12px 16px; border-radius:12px; text-decoration:none;
  color:#001018; background:var(--g); font-weight:800; box-shadow:var(--shadow); border:0;
}
.btn:hover{filter:saturate(1.1) brightness(1.05)}
.btn-ghost{background:transparent; color:var(--text); border:1px solid #2a344a}
.btn-outline{background:transparent; color:var(--text); border:1px solid #37425b}
.btn-small{padding:8px 12px; font-weight:700}
.btn-block{display:flex; width:100%; justify-content:center}

/* Make sure interactive elements sit above visuals and show pointer */
.cta, .card, .footer-cta, .nav a, .btn { position: relative; z-index: 5; }
a, .btn, button { cursor: pointer; }

.badge{
  display:inline-block; padding:6px 10px; border-radius:999px; 
  border:1px solid #2a344a; color:#c9d4ec; background:rgba(15,21,34,.6);
}

/* Hero */
.hero{display:grid; grid-template-columns:1.1fr .9fr; align-items:center; min-height:65svh; gap:30px}
.hero-text h1{font-size:clamp(40px, 6vw, 72px); line-height:1.02; margin:10px 0 8px}
.grad{background:linear-gradient(135deg, var(--accent1), var(--accent2)); -webkit-background-clip:text; background-clip:text; color:transparent}
.lead{color:#d6def3; font-size:clamp(16px, 2.3vw, 20px); max-width:52ch}
.tiny{color:#9fb0cf; font-size:.9rem}
.fade{opacity:.75}

/* Hero art — decorative, ignore mouse */
.hero-logo{width:min(1000px, 60%); filter:drop-shadow(0 30px 50px rgba(0,0,0,.5))}
/* === Hero visual: Aurora + Grid (replaces orbs) === */
.hero-art {
  position: relative;
  height: 320px;
  display: grid;
  place-items: center;
  isolation: isolate;
  pointer-events: none; /* visuals should never intercept clicks */
}

/* Soft aurora wash with strong feathered vignette */
.hero-art::before{
  content:"";
  position:absolute; inset:-30% -40%;   /* larger canvas = softer edges */
  z-index:-1;
  background:
    radial-gradient(60% 80% at 30% 40%, rgba(43,156,251,.22), transparent 60%),
    radial-gradient(70% 80% at 70% 60%, rgba(22,210,193,.18), transparent 65%),
    linear-gradient(120deg, rgba(43,156,251,.12), rgba(22,210,193,.10));
  filter: blur(26px);
  animation: aurora-drift 14s ease-in-out infinite alternate;

  /* Vignette mask: fully opaque near center, smoothly to 0 before edges */
  /* Standards syntax */
  mask-image: radial-gradient(closest-side at 50% 50%,
                #000 0%,
                #000 38%,
                rgba(0,0,0,.6) 55%,
                rgba(0,0,0,.15) 75%,
                transparent 90%);
  mask-repeat: no-repeat;
  mask-size: 140% 140%;
  mask-position: 50% 50%;

  /* WebKit fallback */
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%,
                      #000 0%,
                      #000 38%,
                      rgba(0,0,0,.6) 55%,
                      rgba(0,0,0,.15) 75%,
                      transparent 90%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 140% 140%;
  -webkit-mask-position: 50% 50%;
}

/* Faint tech grid, also fully feathered so corners never show */
.hero-art::after{
  content:"";
  position:absolute; inset:-28% -38%;
  z-index:-1;
  background:
    repeating-linear-gradient(135deg,
      rgba(180,205,255,.08) 0 1px,
      rgba(180,205,255,0) 1px 20px);
  opacity:.8;
  transform: translateZ(0);
  animation: grid-scroll 20s linear infinite;
  filter: blur(7px);

  mask-image: radial-gradient(closest-side at 50% 50%,
                #000 0%,
                #000 42%,
                rgba(0,0,0,.4) 60%,
                rgba(0,0,0,.12) 78%,
                transparent 92%);
  mask-repeat: no-repeat;
  mask-size: 145% 145%;
  mask-position: 50% 50%;

  -webkit-mask-image: radial-gradient(closest-side at 50% 50%,
                        #000 0%,
                        #000 42%,
                        rgba(0,0,0,.4) 60%,
                        rgba(0,0,0,.12) 78%,
                        transparent 92%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 145% 145%;
  -webkit-mask-position: 50% 50%;
}

/* Animations */
@keyframes aurora-drift{
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(-8px) translateX(10px) rotate(1.5deg); }
}
@keyframes grid-scroll{
  0%   { background-position: 0 0; }
  100% { background-position: 420px 320px; }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce){
  .hero-art::before,
  .hero-art::after{ animation: none; }
}


/* Sections */
.section{padding-block:56px}
.section-title{font-size:clamp(28px,4vw,40px); margin:0 0 10px}
.section-subtitle{color:#c1cce4; margin:0 0 20px}

/* Cards / grid */
.grid{
  display:grid; gap:22px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.card{
  background:linear-gradient(180deg, rgba(16,23,38,.85), rgba(12,17,28,.85));
  border:1px solid #1f2940; border-radius:18px; padding:18px; box-shadow:var(--shadow);
  display:flex; flex-direction:column; justify-content:space-between; min-height:360px;
}
.card-head h3{margin:0 0 4px}
.price{color:#cfe3ff}
.price .major{font-size:26px; font-weight:800; background:linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip:text; background-clip:text; color:transparent}
.card-list{margin:12px 0 18px; padding:0 0 0 18px; color:#d4def2}
.card-foot{margin-top:auto}

.steps{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; counter-reset: step;
}
.step{background:var(--card); border:1px solid #1f2940; border-radius:16px; padding:18px; box-shadow:var(--shadow)}
.step-num{
  width:36px; height:36px; border-radius:10px; display:inline-grid; place-items:center; font-weight:800;
  color:#001018; background:linear-gradient(135deg, var(--accent1), var(--accent2)); margin-bottom:8px;
}

/* About */
.about-wrap{display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:26px}
.about-art{position:relative; height:260px; pointer-events:none}
.ring{position:absolute; inset:0; border-radius:50%; border:2px solid #28406a; animation:spin 12s linear infinite; pointer-events:none}
.ring-2{inset:18px; animation-direction:reverse; opacity:.7}
.ring-3{inset:36px; opacity:.4}
@keyframes spin{to{transform:rotate(360deg)}}

/* Footer */
.footer{padding-block:40px}
.footer-grid{display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:18px; align-items:start}
.footer-links a{display:block; color:#c1cce4; text-decoration:none; margin:4px 0}
.footer-links a:hover{color:var(--text)}
.footer-cta{display:flex; gap:10px; justify-content:flex-end}

/* Reveal + tilt */
.reveal{opacity:0; transform:translateY(12px); transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1; transform:none}
.tilt{transform-style:preserve-3d; will-change:transform}
.tilt:hover{transform:perspective(900px) rotateX(4deg) rotateY(-4deg) translateZ(0)}

/* Copy email button */
.copy-email{
  background:none; border:0; color:#b7c6e6; text-decoration:underline; cursor:pointer; padding:0;
}
.copy-confirm{margin-left:.6rem}

/* Responsive */
@media (max-width: 980px){
  .grid{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr; gap:14px}
  .hero{grid-template-columns:1fr; text-align:left}
  .about-wrap{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr; gap:10px}
  .nav{display:none}
  .nav.open{display:flex; flex-direction:column; position:absolute; right:16px; top:64px; padding:12px;
    background:rgba(12,17,28,.9); border:1px solid #1f2940; border-radius:14px}
  .nav-toggle{display:inline-block}
}

#services { position: relative; z-index: 4; }
.grid { position: relative; }

.card { position: relative; z-index: 2; }
.card:hover { z-index: 6; }               /* hovered card pops above neighbors */

.card .btn {
  position: relative;
  z-index: 7;                              /* buttons are always on top */
  pointer-events: auto;                    /* ensure they receive the click */
}

/* ===== Vertical Timeline ===== */

.timeline {
  position: relative;
  margin: 32px auto 0;
  max-width: 860px;
  padding-left: 24px; /* space for line on mobile */
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;                /* aligns with markers on mobile */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr; /* marker + card */
  column-gap: 16px;
  margin-bottom: 28px;
}

.timeline-marker {
  grid-column: 1;
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #0b0f16;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
  z-index: 1;
}

.timeline-card {
  grid-column: 2;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.16);
  backdrop-filter: blur(6px);
}

.timeline-card h4 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.timeline-card p {
  margin: 0;
  color: rgba(255,255,255,0.88);
}

/* Larger screens: center the line, alternate spacing a touch */
@media (min-width: 820px) {
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  }
  .timeline-item {
    grid-template-columns: 1fr 40px 1fr; /* left card | marker | right card */
    column-gap: 24px;
  }
  .timeline-marker {
    grid-column: 2;
    justify-self: center;
  }
  .timeline-item:nth-child(odd) .timeline-card {
    grid-column: 1;
  }
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 3;
  }
}

/* Subtle hover for desktop */
@media (hover: hover) and (pointer: fine) {
  .timeline-card:hover {
    transform: translateY(-2px);
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .timeline-card:hover {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Services Grid (polished cards) ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.service-card {
  position: relative;
  padding: 18px 18px 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.16);
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.service-card p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}

.svc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #0b0f16;
  background: linear-gradient(145deg, #ffffff, #cfe2ff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.15);
}

/* Compact rows on small screens; multi-column on larger screens */
@media (min-width: 620px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover { transition: none; transform: none; }
}
