*{ box-sizing:border-box; }

html,body{ height:100%; }
html{ scroll-padding-top: 80px; scroll-behavior: smooth; }

body{
    margin:0;
    font-family: var(--font-body);
    background: var(--bg);
    color:var(--text);
    line-height:1.8;
    padding-top:66px;
    overflow-x: hidden;
}

/* === Background: layered gradient mesh === */
body::before{
    content:"";
    position:fixed;
    top:0; left:0; width:100%; height:100%;
    background:
        radial-gradient(ellipse 900px 600px at 8% 0%, rgba(0,6,71,.07), transparent 60%),
        radial-gradient(ellipse 800px 500px at 95% 8%, rgba(0,91,150,.05), transparent 50%),
        radial-gradient(ellipse 600px 600px at 50% 60%, rgba(0,6,71,.025), transparent 50%);
    pointer-events:none;
    z-index:0;
}

a{ color:inherit; text-decoration:none; }

/* === Prose links === */
.prose a{
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .2s ease;
}
.prose a:hover{
  opacity: .7;
}
.prose a[target="_blank"]::after{
  content: "";
  display: inline-block;
  width: .75em;
  height: .75em;
  margin-left: .25em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -0.05em;
}

.container{ position:relative; z-index:1; width:min(var(--max), calc(100% - 48px)); margin:0 auto; }

/* === Animations === */
@keyframes fadeUp{
    from{ opacity:0; transform:translateY(28px); }
    to{ opacity:1; transform:translateY(0); }
}
@keyframes fadeIn{
    from{ opacity:0; }
    to{ opacity:1; }
}
@keyframes slideInLeft{
    from{ opacity:0; transform:translateX(-24px); }
    to{ opacity:1; transform:translateX(0); }
}
@keyframes subtlePulse{
    0%,100%{ box-shadow: 0 0 0 6px rgba(0,6,71,.08); }
    50%{ box-shadow: 0 0 0 10px rgba(0,6,71,.04); }
}

.animate-up{ animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.animate-up-d1{ animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .1s both; }
.animate-up-d2{ animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .2s both; }
.animate-up-d3{ animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .3s both; }
.animate-up-d4{ animation: fadeUp .7s cubic-bezier(.22,1,.36,1) .4s both; }
.animate-left{ animation: slideInLeft .6s cubic-bezier(.22,1,.36,1) both; }

/* === Header: frosted glass === */
header{
    position:fixed; top:0; left:0; width:100%; z-index:20;
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    background: rgba(248,249,252,.78);
    border-bottom: 1px solid rgba(0,6,71,.06);
    transition: all .3s ease;
}
header.header-compact{
    box-shadow: 0 2px 12px rgba(0,6,71,.08);
}
header.header-compact .nav{
    padding-top:8px;
    padding-bottom:8px;
}
header.header-compact .logo{
    height:26px;
}
header.header-compact .navlinks{
    font-size:14px;
}
header.header-compact .btn{
    padding:7px 11px;
    font-size:13px;
}

/* === Navigation (shared) === */
.nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 0; gap:16px;
}
.brand{ display:flex; align-items:center; gap:12px; font-weight:700; letter-spacing:.02em; }
.logo{ height:34px; width:auto; transition: height .2s ease; }

.navlinks{ display:flex; align-items:center; gap:6px; color:var(--muted); font-weight:600; font-size:15px; }
.navlinks a{
    padding:8px 14px; border-radius:12px;
    transition: all .2s ease;
    position: relative;
}
.navlinks a:hover{ background: rgba(0,6,71,.05); color:var(--text); }
.navlinks a::after{
    content:""; position:absolute; bottom:4px; left:50%; width:0; height:2px;
    background: var(--accent2); border-radius:1px;
    transition: width .25s ease, left .25s ease;
}
.navlinks a:hover::after{ width:60%; left:20%; }

.cta{ display:flex; align-items:center; gap:10px; }
.hamburger{ display:none; }

/* === Headings === */
h1, h2, h3, h4{ font-family: var(--font-display); }
h2{ margin:0; font-size: clamp(23px, 2.4vw, 32px); letter-spacing:-.02em; font-weight:900; line-height:1.3; }

/* === Sections === */
section{ padding:40px 0; position:relative; }

/* Section dividers */
section + section::before{
    content:"";
    display:block;
    width:60px;
    height:2px;
    background: linear-gradient(90deg, var(--accent2), transparent);
    margin: 0 auto 32px;
    border-radius:1px;
}

.sectionTitle{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.sectionSubtitle{ color:var(--muted); margin:8px 0 0; max-width:none; line-height:1.9; }

/* === Buttons === */
.btn{
    display:inline-flex; align-items:center; justify-content:center;
    gap:10px; padding:11px 18px; border-radius:14px;
    border:1px solid rgba(0,6,71,.12);
    background: rgba(255,255,255,.85);
    color:var(--text); font-weight:700; font-family:var(--font-body);
    letter-spacing:.02em; cursor:pointer;
    box-shadow: 0 4px 16px rgba(2,6,23,.06);
    transition: all .2s cubic-bezier(.22,1,.36,1);
    user-select:none; white-space:nowrap;
    font-size:15px;
}
.btn:hover{
    background: rgba(255,255,255,1);
    border-color: rgba(0,6,71,.2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(2,6,23,.1);
}
.btn:active{ transform: translateY(0); }
.btn.primary{
    background: linear-gradient(135deg, #000647, #005B96);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,6,71,.2);
}
.btn.primary:hover{
    box-shadow: 0 12px 36px rgba(0,6,71,.28);
    transform: translateY(-2px);
}

/* === Panels: glass morphism === */
.panel{
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border:1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* === Company section labels === */
.company .kv dt{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .02em;
}
.company .kv dd{
  color: var(--text);
}

/* === Utilities === */
.stack-8{ margin-top:8px; }
.stack-10{ margin-top:10px; }
.stack-12{ margin-top:12px; }
.stack-16{ margin-top:16px; }
.m0{ margin:0; }
.panelPad16{ padding:20px; }
.titleTight{ margin:0 0 10px; }

/* CTA row */
.ctaRow{ display:flex; gap:12px; flex-wrap:wrap; }

/* === Contact form === */
.contactForm{ margin-top: 16px; }
.formGroup{ margin-bottom: 18px; }
.formGroup label{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.formGroup input[type="text"],
.formGroup input[type="email"],
.formGroup input[type="tel"],
.formGroup textarea{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
  background: #fff;
  transition: border-color .15s ease;
}
.formGroup input:focus,
.formGroup textarea:focus{
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0,91,150,.12);
}
.formCheck label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.formCheck input[type="checkbox"]{ width: 18px; height: 18px; }
.required{
  color: #DC3545;
  font-size: 12px;
  font-weight: 700;
}
.formRadioGroup .radioRow{
  display: flex;
  gap: 24px;
  margin-top: 4px;
}
.radioLabel{
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  cursor: pointer;
}
.radioLabel input[type="radio"]{ width: 18px; height: 18px; }
.formGroup select{
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s ease;
}
.formGroup select:focus{
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0,91,150,.12);
}
.formActions{ margin-top: 24px; }
.formActions .btn{ min-width: 200px; }

/* === Footer === */
footer{
  padding:30px 0 42px;
  color: rgba(12,18,32,.5);
  border-top: 1px solid var(--line);
  margin-top: 22px;
  position:relative; z-index:1;
}
.foot{ display:flex; gap:14px; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; }
.foot small{ color: rgba(12,18,32,.4); font-size:13px; }
.footLinks{ display:flex; flex-wrap:wrap; gap:8px; }
.footLinks a{
    color: rgba(12,18,32,.55); padding:6px 10px; border-radius:10px;
    font-size:14px; transition: all .2s ease;
}
.footLinks a:hover{ background: rgba(0,6,71,.04); color: rgba(12,18,32,.85); }

/* === News list === */
.newsList{ list-style:none; margin:0; padding:0; }
.newsList li{
  display:flex; align-items:baseline; gap:18px;
  padding:14px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.newsList li:first-child{ border-top: 1px solid var(--line); }
.newsList time{ color:var(--muted); font-size:14px; font-weight:600; white-space:nowrap; letter-spacing:.02em; }
.newsList a{ color:var(--text); font-weight:600; transition: color .2s ease; }
.newsList a:hover{ color:var(--accent2); }
.newsMore{ margin-top:14px; text-align:right; }
.newsMore a{ color:var(--accent2); font-weight:800; transition: gap .2s ease; display:inline-flex; gap:4px; }
.newsMore a:hover{ gap:8px; }

/* === Responsive === */
@media (max-width: 920px){
    .navlinks{ display:none; }
    .hamburger{ display:inline-flex; }
}
@media (max-width: 620px){
    .container{ width:min(var(--max), calc(100% - 34px)); }
}