/* ========== Reset / Base ========== */
:root{
  --bg: #0b0d12;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.12);
  --text: #e9ecf1;
  --muted: rgba(233,236,241,.70);
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1100px;
  --gap: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(255,255,255,.09), transparent 60%),
    radial-gradient(900px 550px at 10% 10%, rgba(255,255,255,.06), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
h1,h2,h3,p{ margin:0; }
p{ color: var(--muted); }
::selection{ background: rgba(255,255,255,.18); }

/* ========== Layout ========== */
.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section{
  padding: 44px 0;
}

/* ========== Header / Nav ========== */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,13,18,.55);
  border-bottom: 1px solid var(--border);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  position: relative;
}

.logo{
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 18px;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo::before{
  content:"";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.nav{
  position: relative;
}

.nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
}
.nav__toggle:hover{ background: rgba(255,255,255,.10); }

.nav__list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.nav__list a{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav__list a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.nav__list a.active{
  background: rgba(255,255,255,.10);
  color: var(--text);
  border-color: rgba(255,255,255,.14);
}

/* ========== Typography ========== */
.page{
  padding: 34px 0 58px;
}

.page__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 14px;
  flex-wrap:wrap;
  margin-bottom: 18px;
}

.h1{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}
.lead{
  max-width: 62ch;
  font-size: 16px;
  margin-top: 10px;
}

/* ========== Hero ========== */
.hero{
  padding: 54px 0 26px;
}
.hero__box{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero__actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}

/* Buttons */
.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 14px;
  cursor:pointer;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover{ background: rgba(255,255,255,.10); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: rgba(255,255,255,.16);
}
.btn--primary:hover{ background: rgba(255,255,255,.22); }

/* ========== Cards / Grids ========== */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 18px;
}

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.card:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}
.card h3{
  font-size: 18px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  color: var(--text);
}

/* ========== Services layout helper ========== */
.services{
  margin-top: 18px;
}

/* ========== Form ========== */
.form{
  width: min(520px, 100%);
  margin-top: 18px;
  display:grid;
  gap: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 16px;
}

.form input,
.form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
.form textarea{ min-height: 120px; resize: vertical; }
.form input:focus,
.form textarea:focus{
  border-color: rgba(255,255,255,.22);
}

/* ========== Footer ========== */
.footer{
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: rgba(233,236,241,.55);
  text-align:center;
  font-size: 13px;
  background: rgba(255,255,255,.02);
}

/* ========== Mobile Nav ========== */
@media (max-width: 768px){
  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }

  .nav__list{
    position:absolute;
    right: 0;
    top: 58px;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(16,20,32,.98);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav__list.open{ display:flex; }
  .nav__list a{ width: 100%; }

  .grid-3{
    grid-template-columns: 1fr;
  }
}

/* ========== Small tweaks ========== */
@media (max-width: 420px){
  .logo{ font-size: 16px; }
  .hero__box{ padding: 16px; }
  .btn{ width: 100%; justify-content:center; }
}
