* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

:root{
  --bg: #0f1115;
  --panel: rgba(21,24,31,0.82);
  --panel2: rgba(21,24,31,0.72);
  --text: #f1f1f1;
  --muted: #b8bcc6;
  --muted2: #8a909e;
  --accent: #2e7dff;
  --border: rgba(255,255,255,0.08);
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Animated background ===== */
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;

  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(46,125,255,0.20), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(46,125,255,0.12), transparent 50%);

  background-size:
    70px 70px,
    70px 70px,
    100% 100%,
    100% 100%;

  animation: grid-drift 22s linear infinite;
}

@keyframes grid-drift{
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 210px 140px, 140px 210px, 0 0, 0 0; }
}

@media (prefers-reduced-motion: reduce){
  .bg-grid{ animation: none; }
}

/* ===== Header (with scroll shrink) ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* vertical centering */
  padding: 18px 10%;
  background: rgba(17,20,24,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 10;

  transition:
    padding 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.scrolled{
  padding: 10px 10%;
  background: rgba(12,14,18,0.86);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.brand{
  display: inline-flex;
  align-items: center; /* vertical centering */
  text-decoration: none;
  color: var(--text);
  line-height: 0;
}

.brand-logo-only{
  padding: 0;
}

.brand-logo{
  width: 52px;           /* slightly larger */
  height: 52px;
  object-fit: contain;
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    filter 220ms ease,
    opacity 180ms ease,
    width 180ms ease,
    height 180ms ease;
}

/* Scroll shrink also shrinks the logo slightly */
.site-header.scrolled .brand-logo{
  width: 44px;
  height: 44px;
}

/* Hover glow */
.brand:hover .brand-logo{
  filter:
    drop-shadow(0 0 14px rgba(46,125,255,0.28))
    drop-shadow(0 0 28px rgba(46,125,255,0.18));
  transform: scale(1.04);
}

/* Nav */
.site-nav a {
  color: rgba(184,188,198,0.9);
  margin-left: 18px;
  text-decoration: none;
  transition: 0.2s ease;
}

.site-nav a:hover { color: #ffffff; }

/* ===== Hero ===== */
.hero {
  padding: 110px 10% 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero p {
  color: rgba(184,188,198,0.95);
  max-width: 820px;
  margin: 0 auto 26px;
}

.hero-actions{
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-ghost{
  background: rgba(255,255,255,0.06);
  color: rgba(241,241,241,0.95);
}

/* ===== Sections ===== */
.section {
  padding: 70px 10%;
  text-align: center;
}

.section h2{
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.section-text{
  color: rgba(184,188,198,0.92);
  max-width: 820px;
  margin: 0 auto;
}

/* ===== Cards ===== */
.cards {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: 28px;
  border-radius: 16px;
  width: 290px;
  transition: 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(28,32,40,0.88);
  border-color: rgba(46,125,255,0.18);
}

.card h3{ margin-bottom: 8px; }
.card p{ color: rgba(184,188,198,0.9); }

/* ===== Contact Form ===== */
.contact-wrap{
  max-width: 860px;
  margin: 28px auto 0;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(17,20,24,0.50);
  backdrop-filter: blur(10px);
  text-align: left;
}

.contact-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
  align-items: start;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label{
  font-size: 0.92rem;
  color: rgba(184,188,198,0.92);
}

.field-full{
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(21,24,31,0.72);
  color: rgba(241,241,241,0.95);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: rgba(184,188,198,0.60);
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(46,125,255,0.45);
}

.turnstile-row{
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.actions-row{
  display: grid;
  gap: 10px;
}

.form-status{
  color: rgba(184,188,198,0.92);
  min-height: 1.2em;
  font-size: 0.95rem;
}

.contact-alt{
  grid-column: 1 / -1;
  margin-top: 6px;
  color: rgba(184,188,198,0.92);
}

/* Hide honeypot completely */
#fax{
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Links */
.link{
  color: rgba(46,125,255,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,125,255,0.35);
}
.link:hover{ border-bottom-color: rgba(46,125,255,0.8); }

/* Footer */
.site-footer {
  padding: 18px;
  text-align: center;
  color: rgba(138,144,158,0.9);
  font-size: 0.9rem;
  background: rgba(13,15,19,0.7);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Mobile tweaks */
@media (max-width: 720px){
  .site-header{ padding: 16px 6%; }
  .site-header.scrolled{ padding: 10px 6%; }

  .hero{ padding: 86px 6% 62px; }
  .section{ padding: 58px 6%; }

  .site-nav a{ margin-left: 14px; }

  .contact-wrap{ padding: 18px; }
  .contact-form{ grid-template-columns: 1fr; }

  .brand-logo{
    width: 48px;
    height: 48px;
  }
  .site-header.scrolled .brand-logo{
    width: 42px;
    height: 42px;
  }
}