:root{
  --brand: #3c485a;
  --brand2: #444f61;
  --brand3: #2f3948;

  --bg: var(--brand);
  --text: #f6f8fc;
  --muted: rgba(246,248,252,0.72);
  --line: rgba(255,255,255,0.12);
  --glass: rgba(255,255,255,0.07);
  --glass2: rgba(255,255,255,0.10);

  --shadow: 0 20px 60px rgba(0,0,0,0.28);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease2: cubic-bezier(0.16, 1, 0.3, 1);
}
html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.page{
  flex: 1 0 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 70px;
}

.footer{
  margin-top: auto;
  width: 100%;
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}
body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 12% 10%, var(--brand2), var(--bg));
}
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.14), transparent 48%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.10), transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(0,0,0,0.28), transparent 55%);
}

.page{
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 70px;
}

/* Header */


/* Header v2 */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 22, 32, 0.62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.site-header-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo{
  height: 34px;
  width: auto;
  display: block;
}

.site-nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link{
  color: rgba(246,248,252,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

.nav-link:hover{
  color: rgba(246,248,252,0.95);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(246,248,252,0.92);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.btn.header-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(246,248,252,0.92);
  color: #151a24;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn.header-btn:hover{
  background: rgba(246,248,252,0.98);
  border-color: rgba(246,248,252,0.98);
}

.icon-btn{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(246,248,252,0.92);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-only{ display: none; }

.hamburger{
  width: 20px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span{
  height: 2px;
  width: 100%;
  background: rgba(246,248,252,0.92);
  border-radius: 999px;
  display: block;
}

/* Mobile drawer */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 2000;
}

.nav-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100dvh;
  background: rgba(18, 22, 32, 0.92);
  border-left: 1px solid rgba(255,255,255,0.12);
  z-index: 2100;
  transform: translateX(100%);
  transition: transform 240ms var(--ease2);
  display: flex;
  flex-direction: column;
}

.nav-drawer.open{ transform: translateX(0); }

.nav-drawer-head{
  padding: 16px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.drawer-logo{
  height: 28px;
  width: auto;
  display: block;
}

.close-x{
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.close-x::before,
.close-x::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: rgba(246,248,252,0.92);
  border-radius: 999px;
  transform-origin: center;
}

.close-x::before{ transform: translate(-50%,-50%) rotate(45deg); }
.close-x::after{ transform: translate(-50%,-50%) rotate(-45deg); }

.nav-drawer-links{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-link{
  text-decoration: none;
  color: rgba(246,248,252,0.92);
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 700;
}

.drawer-link.strong{
  background: rgba(246,248,252,0.92);
  color: #151a24;
  border-color: rgba(246,248,252,0.92);
}

.nav-drawer-foot{
  margin-top: auto;
  padding: 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.drawer-foot-text{
  font-weight: 800;
  letter-spacing: 0.04em;
}

.drawer-foot-sub{
  margin-top: 6px;
  color: rgba(246,248,252,0.62);
  font-size: 12px;
}

/* Show hamburger, hide desktop nav */
@media (max-width: 860px){
  .site-nav{ display: none; }
  .mobile-only{ display: inline-flex; }
}

html.nav-open,
html.nav-open body{
  overflow: hidden;
}
@media (max-width: 860px){
  .site-header{
    z-index: 5000;
  }

  .site-header-inner{
    position: relative;
    z-index: 5001;
  }

  #navToggle{
    position: relative;
    z-index: 5002;
    pointer-events: auto;
  }

  .brand{
    position: relative;
    z-index: 5002;
  }

  .nav-overlay{
    z-index: 6000;
    pointer-events: auto;
  }

  .nav-drawer{
    z-index: 6001;
    pointer-events: auto;
  }
}




/* Layout */
.hero{
  padding: 46px 0 24px;
  max-width: 920px;
}
.kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,248,252,0.72);
}
.title{
  margin: 0 0 14px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lead{
  margin: 0;
  max-width: 70ch;
  color: rgba(246,248,252,0.74);
  line-height: 1.7;
  font-size: 16px;
}

.section{
  margin-top: 42px;
}
.section-head{
  margin-bottom: 16px;
  max-width: 820px;
}
.section-head h2{
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.section-head p{
  margin: 0;
  color: rgba(246,248,252,0.68);
  line-height: 1.6;
}

/* Services grid */
.services-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-card{
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 240ms var(--ease2), box-shadow 240ms var(--ease2), border-color 240ms var(--ease2), background 240ms var(--ease2);
}
.service-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.service-media{
  position: relative;
  background:
    radial-gradient(800px 500px at 30% 20%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(800px 500px at 80% 80%, rgba(0,0,0,0.26), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon{
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon img{
  width: 200px;
  height: 200px;
  display: block;
  opacity: 0.95;
}

.service-body{
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-top{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-domain{
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 16px;
}
.service-desc{
  color: rgba(246,248,252,0.70);
  line-height: 1.55;
  font-size: 14px;
  max-width: 46ch;
}
.service-cta{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(246,248,252,0.92);
  font-size: 13px;
}
.service-cta span{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms var(--ease);
}
.service-card:hover .service-cta span{
  transform: translateX(2px);
}
.service-list{
  margin: 2px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(246,248,252,0.66);
}

.service-list li{
  margin: 4px 0;
}

/* About blocks */
.about-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.about-card{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 18px;
}
.about-card h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.about-card p{
  margin: 0;
  color: rgba(246,248,252,0.68);
  line-height: 1.6;
}

/* Footer */
.footer{
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-title{
  font-weight: 800;
  letter-spacing: 0.03em;
}
.footer-sub{
  margin-top: 6px;
  color: rgba(246,248,252,0.64);
}
.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a{
  color: rgba(246,248,252,0.70);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
}
.footer-links a:hover{
  background: rgba(255,255,255,0.08);
  color: rgba(246,248,252,0.92);
}
.footer-fine{
  margin-top: 14px;
  color: rgba(246,248,252,0.60);
  font-size: 12px;
}

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease2), transform 700ms var(--ease2);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px){
  .title{ font-size: 44px; }
  .services-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .service-card{ grid-template-columns: 42% 58%; }
}
@media (max-width: 860px){
  .site-nav{ display: none; }
  .mobile-only{ display: inline-flex; }
}
@media (max-width: 560px){
  .title{ font-size: 36px; }
  .service-card{ grid-template-columns: 1fr; }
  .service-media{ min-height: 140px; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .service-card, .btn, .nav-link, .icon-btn{ transition: none; }
}
/* Stop horizontal scroll caused by drawer */
html, body{
  overflow-x: hidden;
}

@media (min-width: 861px){
  .nav-overlay,
  .nav-drawer{
    display: none;
  }
}


/* Enable drawer only on mobile */
@media (max-width: 860px){
  .nav-overlay[hidden],
  .nav-drawer[hidden]{
    display: none !important;
  }

  .nav-overlay{
    display: block;
  }

  .nav-drawer{
    display: flex;
  }
}

@media (max-width: 860px){
  .nav-overlay{
    background: rgba(0,0,0,0.55);
  }

  .drawer-logo{
    height: 20px;
  }

  .nav-drawer-head{
    padding: 12px 14px;
  }
}
@media (max-width: 860px){
  .nav-overlay{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 6000;
  }

  .nav-drawer{
    z-index: 6001;
  }
}
@media (max-width: 860px){
  .site-header-inner{
    padding: 10px 12px;
    gap: 10px;
  }

  .brand{
    min-width: 0;
    max-width: calc(100% - 56px);
    overflow: hidden;
  }

  .brand-logo{
    height: 26px;
    max-width: 90%
  }

  #navToggle.icon-btn{
    flex: 0 0 auto;
    padding: 9px 10px;
    border-radius: 999px;
    margin-right: 0;
  }
}
@media (max-width: 860px){
  .drawer-section{
    padding: 12px 12px 4px;
  }

  .drawer-section-title{
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(246,248,252,0.72);
  }

  .drawer-section-sub{
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(246,248,252,0.58);
  }

  .drawer-section .nav-drawer-links{
    padding: 0;
    gap: 10px;
  }
}
@media (max-width: 860px){
  .drawer-item{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom:14px;
  }

.drawer-item-sub{
  font-size: 13px;
  line-height: 1.55;
  color: rgba(246,248,252,0.56);
  padding-left: 10px;
  margin-top: 4px;
}
}

@media (max-width: 860px){
  .drawer-section + .drawer-section{
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
}
@media (max-width: 860px){
  #navClose.icon-btn{
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.10);
    padding: 8px 10px;
  }
}
/* Premium background override */
:root{
  --bg0: #0f1420;
  --bg1: #1a2232;
  --bg2: #2a3447;
  --brand: #3c485a;
}

body{
  background:
    radial-gradient(900px 600px at 12% 10%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(900px 600px at 85% 18%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(1200px 900px at 70% 90%, rgba(0,0,0,0.40), transparent 55%),
    linear-gradient(140deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  color: var(--text);
}

/* Cards slightly brighter */
.service-card,
.about-card{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.service-card:hover{
  background: rgba(255,255,255,0.08);
}

/* Fix ugly default link colors if any remain */
a{
  color: rgba(246,248,252,0.90);
}

a:hover{
  color: rgba(246,248,252,0.98);
}

/* Hero image should fully cover the card */
.hero-image{
  min-height: 520px;
}

.hero-image-bg{
  inset: -2px;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.08);
}

/* Stronger overlay so text pops, but still feels premium */
.hero-image::before{
  background:
    radial-gradient(1100px 700px at 24% 22%, rgba(255,255,255,0.75), rgba(255,255,255,0.08) 55%, transparent 70%),
    linear-gradient(90deg, rgba(8,12,20,0.70), rgba(8,12,20,0.28) 60%, rgba(8,12,20,0.12));
}

/* Make the inner content align nicer in the card */
.hero-image-inner{
  min-height: 520px;
  padding: 54px 54px;
}

@media (max-width: 980px){
  .hero-image{ min-height: 480px; }
  .hero-image-inner{ min-height: 480px; padding: 34px 24px; }
}

@media (max-width: 560px){
  .hero-image{ min-height: 520px; }
  .hero-image-inner{ min-height: 520px; padding: 26px 18px; }
}
/* Image hero */
.hero-image{
  position: relative;
  margin-top: 18px;
  border-radius: 26px;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

.hero-image-bg{
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.04);
}

.hero-image::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 22% 20%, rgba(255,255,255,0.70), rgba(255,255,255,0.10) 55%, transparent 70%),
    linear-gradient(90deg, rgba(10,14,22,0.65), rgba(10,14,22,0.20) 55%, rgba(10,14,22,0.10));
  pointer-events: none;
}

.hero-image::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.02);
  pointer-events: none;
}

.hero-image-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 44px 44px;
}

.hero-image-copy{
  max-width: 560px;
}

.hero-label{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,248,252,0.70);
  margin-bottom: 10px;
}

.hero-h1{
  margin: 0 0 14px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: rgba(246,248,252,0.96);
}

.hero-p{
  margin: 0;
  max-width: 62ch;
  color: rgba(246,248,252,0.72);
  font-size: 16px;
  line-height: 1.7;
}

.hero-buttons{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Button variants */
.btn.primary{
  background: rgba(246,248,252,0.92);
  color: #1b2230;
  border-color: rgba(246,248,252,0.92);
}

.btn.primary:hover{
  background: rgba(246,248,252,0.98);
}

.btn.ghost{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: rgba(246,248,252,0.92);
}

.btn.ghost:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

@media (max-width: 980px){
  .hero-h1{ font-size: 44px; }
  .hero-image-inner{ padding: 34px 24px; }
}

@media (max-width: 560px){
  .hero-image{ min-height: 420px; }
  .hero-image-inner{ min-height: 420px; padding: 26px 18px; }
  .hero-h1{ font-size: 36px; }
}
@media (max-width: 560px){

  .services-grid{
    grid-template-columns: 1fr;
  }

  .service-card{
    grid-template-columns: 1fr;
  }

  .service-media{
    width: 100%;
    min-height: 160px;
  }

  .service-body{
    width: 100%;
  }

}
/* Footer links must never inherit nav/button styles */
.footer .footer-links a,
.footer .footer-links a:visited,
.footer .footer-links a:hover,
.footer .footer-links a:active,
.footer .footer-links a:focus{
  display: inline;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

