@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root { --scroll-offset: 115px; }
@media (min-width: 768px) { :root { --scroll-offset: 95px; } }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ─────────────────────────────────── */
header {
  background: rgba(33, 48, 72, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 170, 255, 0.15);
  transition: box-shadow 0.3s;
}
header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
}
.logo-link {
  display: flex;
  align-items: center;
  height: 74px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-link:hover { transform: translateY(-1px); }
.logo-link:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 4px;
  border-radius: 8px;
}
.logo {
  height: 68px;
  width: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(2, 8, 21, 0.45);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(0, 170, 255, 0.12);
  border-color: rgba(0, 170, 255, 0.45);
}
.nav-toggle:focus-visible {
  outline: 2px solid #00aaff;
  outline-offset: 4px;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
nav ul { display: flex; list-style: none; gap: 4px; }
nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 8px 15px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover {
  color: #00aaff;
  background: rgba(0, 170, 255, 0.1);
}

/* ── DESKTOP NAV ENHANCEMENTS ─────────────────────────────────── */
@media (min-width: 769px) {
  nav ul { align-items: center; gap: 2px; }
  nav a { color: rgba(255, 255, 255, 0.88); font-size: 0.875rem; letter-spacing: 0.03em; }
  nav a:hover { color: white; }

  /* Vertical separator before action links */
  nav li:nth-child(5) { margin-left: 12px; position: relative; }
  nav li:nth-child(5)::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
  }

  /* Schedule — outlined button */
  nav a[data-nav="schedule"] {
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 6px 15px;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  nav a[data-nav="schedule"]:hover {
    color: #00aaff;
    border-color: rgba(0, 170, 255, 0.7);
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.08);
  }

  /* Support Portal — filled CTA */
  nav a[data-nav="support-portal"] {
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 16px;
    box-shadow: 0 2px 10px rgba(0, 170, 255, 0.28);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  nav a[data-nav="support-portal"]:hover {
    background: linear-gradient(135deg, #22bbff 0%, #00aaff 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0, 170, 255, 0.48);
    transform: translateY(-1px);
  }
}

/* ── HERO ─────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(0, 170, 255, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(0, 170, 255, 0.07) 0%, transparent 38%),
    radial-gradient(circle, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    #0a1f44;
  background-size: auto, auto, 28px 28px, auto;
  color: white;
  text-align: center;
  padding: 130px 20px 120px;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 22px;
  animation: heroFadeUp 0.8s ease both;
}
.hero h1 .highlight { color: #00aaff; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 38px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.76);
  animation: heroFadeUp 0.8s 0.15s ease both;
}
.hero .btn { animation: heroFadeUp 0.8s 0.3s ease both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTON ─────────────────────────────────── */
.btn {
  background: linear-gradient(135deg, #00aaff 0%, #0077cc 100%);
  color: white;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 170, 255, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 170, 255, 0.55);
}
.btn:active { transform: translateY(0); }

/* ── WAVE DIVIDERS ─────────────────────────────────── */
.wave {
  display: block;
  line-height: 0;
  overflow: hidden;
  margin-top: -1px;
}
.wave svg { display: block; width: 100%; }

/* ── SECTIONS ─────────────────────────────────── */
.section {
  padding: 90px 0 80px;
  scroll-margin-top: var(--scroll-offset);
}

section[id] { scroll-margin-top: var(--scroll-offset); }

h2 {
  text-align: center;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: #0a1f44;
}
.section h2::after,
.contact h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: #00aaff;
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-sub {
  text-align: center;
  color: #777;
  font-size: 1.03rem;
  line-height: 1.65;
  margin-bottom: 54px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SERVICE CARDS ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  padding: 34px 28px 30px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: 0 2px 14px rgba(10, 31, 68, 0.05);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00aaff 0%, #0a1f44 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(10, 31, 68, 0.13);
  border-color: rgba(0, 170, 255, 0.25);
}
.card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 170, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: #00aaff;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin-bottom: 10px;
  color: #0a1f44;
  font-size: 1.1rem;
  font-weight: 700;
}
.card p { color: #555; font-size: 0.94rem; line-height: 1.7; }

/* ── ABOUT ─────────────────────────────────── */
.about { background: #f0f4f8; text-align: center; }
.about > .container > p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
}

/* ── CONTACT ─────────────────────────────────── */
.contact { background: #0a1f44; color: white; text-align: center; }
.contact h2 { color: white; }
.contact > .container > p { color: rgba(255, 255, 255, 0.72); margin-bottom: 0; }
.contact form { max-width: 580px; margin: 32px auto 0; }
input, textarea {
  width: 100%;
  padding: 13px 17px;
  margin: 9px 0;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
input:focus, textarea:focus {
  outline: none;
  border-color: #00aaff;
  background: rgba(255, 255, 255, 0.1);
}
#formStatus { margin-top: 12px; font-size: 0.95rem; min-height: 1.4em; }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #071428;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 28px 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(0, 170, 255, 0.08);
}
footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: #00aaff; }

/* ── CARD SPECIFICS ─────────────────────────────────── */
.card--clickable { cursor: pointer; }
.card-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #00aaff;
  letter-spacing: 0.02em;
}
.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #00aaff;
  background: rgba(0, 170, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── CARD TOOL NOTE ─────────────────────────────────── */
.card-tool-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 31, 68, 0.07);
  font-size: 0.82rem;
  color: #888;
}
.card-tool-note span { margin-right: 4px; }
.card-tool-note a {
  color: #00aaff;
  text-decoration: none;
  font-weight: 500;
}
.card-tool-note a:hover { text-decoration: underline; }

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FORM CHECKBOX ─────────────────────────────────── */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: auto;
  margin: 4px 0 0;
  flex-shrink: 0;
}
.form-checkbox a { color: #00aaff; }
.form-checkbox a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 20px;
    gap: 8px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  nav {
    width: 100%;
    display: none;
  }
  header.nav-open nav {
    display: block;
  }
  .logo-link {
    height: 58px;
    padding: 4px 0;
  }
  .logo { height: 50px; }
  nav ul {
    width: 100%;
    margin-top: 4px;
    gap: 4px;
    flex-direction: column;
  }
  nav li {
    margin: 0;
    width: 100%;
  }
  nav a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.92rem;
    text-align: left;
    white-space: normal;
    line-height: 1.25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }
  .hero { padding: 90px 20px 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .card-tool-note { margin-top: 20px; padding-top: 20px; }
}
