:root {
  --bg: #07111f;
  --bg2: #0c1a2f;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.12);
  --text: #f5f7fb;
  --muted: #bac6d8;
  --line: rgba(255,255,255,.14);
  --brand: #58d5ff;
  --brand2: #7c5cff;
  --good: #50e3a4;
  --warn: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(88,213,255,.2), transparent 35%),
    radial-gradient(circle at top right, rgba(124,92,255,.18), transparent 35%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7,17,31,.82);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .4px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #03101d;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(88,213,255,.22);
}

.logo small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--card);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #04101e;
}

.btn.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.25);
}

/* Hero */
.hero {
  padding: 88px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.6px;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  margin: 12px 0 18px;
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -1px;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

p {
  color: var(--muted);
  margin: 0 0 18px;
}

.lead {
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* Homepage redirect cards */
.hero-actions-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 430px;
}

.hero-action-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  text-decoration: none;
  color: #20343b;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-action-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.24);
  border-color: rgba(88, 213, 255, 0.55);
}

.hero-action-card h3 {
  margin: 0 0 8px;
  color: #0f3d4a;
  font-size: 1.25rem;
}

.hero-action-card p {
  margin: 0 0 12px;
  color: #5c6f78;
  line-height: 1.55;
  font-size: 0.95rem;
}

.hero-action-card span {
  color: #0077b6;
  font-weight: 800;
}

.action-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #58d5ff, #7c5cff);
  color: #03101d;
  font-size: 1.35rem;
}

.urgent-card {
  border-left: 6px solid #50e3a4;
}

.about-card-link {
  border-left: 6px solid #58d5ff;
}

/* General sections */
.section {
  padding: 66px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 650px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Square card style */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}

.card:hover {
  background: var(--card2);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(88,213,255,.12);
  color: var(--brand);
  font-size: 24px;
  margin-bottom: 16px;
}

/* Services */
.services-grid {
  align-items: stretch;
}

.service-card {
  min-height: 230px;
  border-radius: 16px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  transform: translateY(0) scale(1);
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.035);
  background: var(--card2);
  border-color: rgba(88, 213, 255, 0.45);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  z-index: 5;
}

.service-card h3 {
  color: var(--text);
}

.service-card p {
  color: var(--muted);
}

.service-card:hover h3 {
  color: var(--brand);
}

.service-card .icon {
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover .icon {
  transform: scale(1.08);
  background: rgba(88, 213, 255, 0.18);
}

/* Existing reusable layout styles */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-card {
  position: relative;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.hero-card img {
  border-radius: 26px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.floating-card {
  position: absolute;
  left: -26px;
  bottom: 34px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(7,17,31,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  width: min(290px, calc(100% - 28px));
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

ul.clean li {
  padding: 9px 0 9px 26px;
  color: var(--muted);
  position: relative;
  border-top: 1px solid rgba(255,255,255,.07);
}

ul.clean li:first-child {
  border-top: 0;
}

ul.clean li:before {
  content: "✓";
  color: var(--good);
  position: absolute;
  left: 0;
  font-weight: 800;
}

.callout {
  border: 1px solid rgba(88,213,255,.3);
  background: linear-gradient(135deg, rgba(88,213,255,.12), rgba(124,92,255,.1));
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.field select option {
  background: #101828;
  color: #ffffff;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

.status {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

.status.warn {
  border-color: rgba(255,209,102,.4);
  color: #ffe9a3;
}

.status.danger {
  border-color: rgba(255,107,107,.45);
  color: #ffc1c1;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(255,255,255,.04);
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

th {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.kpi div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.kpi strong {
  display: block;
  font-size: 24px;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.highlight {
  color: var(--text);
  font-weight: 800;
}

.support-options .card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.portal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.soft-line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.danger-text {
  color: #ffc1c1;
}

code {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
  color: var(--text);
}

/* Request / Quote Page Fix */
.request-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 48px;
  align-items: center;
  min-height: 70vh;
}

.request-text {
  max-width: 620px;
  z-index: 1;
}

.request-text h1 {
  margin-bottom: 18px;
}

.request-bubble {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  z-index: 2;
}

.request-bubble strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.bubble-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.request-bubble .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.request-bubble .field label {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
}

.request-bubble .field input,
.request-bubble .field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
}

.request-bubble .field input::placeholder,
.request-bubble .field textarea::placeholder {
  color: #64748b;
}

.request-bubble .field input:focus,
.request-bubble .field textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.request-bubble .field textarea {
  min-height: 120px;
  resize: vertical;
}

.quote-submit-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #38bdf8;
  color: #00111f;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 4px;
}

.quote-submit-btn:hover {
  background: #14b8a6;
  color: #ffffff;
}

.request-bubble.floating-card {
  transform: none;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}

/* Image animation if used on other pages */
.hero-image-link {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.hero-image {
  display: block;
  max-width: 100%;
  border-radius: 24px;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  transform-origin: center;
}

.hero-image-link:hover .hero-image {
  transform: rotate(10deg) translateX(12px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.25);
}

.hero-image-link:focus .hero-image {
  outline: 3px solid #00a896;
  outline-offset: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .split {
    grid-template-columns: 1fr;
  }

  .section-head,
  .callout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .hero {
    padding-top: 54px;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .request-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .request-bubble {
    max-width: none;
    margin-left: 0;
  }

  .two-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .hero-actions-panel {
    max-width: 100%;
  }

  .hero-action-card {
    padding: 22px;
  }
}

@media (max-width: 700px) {
  .portal-head {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .kpi {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-action-card {
    flex-direction: column;
  }
}

.ticket-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ticket-modal-box {
  width: 100%;
  max-width: 460px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ticket-modal-box h2 {
  margin: 0 0 12px;
  color: #38bdf8;
  font-size: 28px;
}

.ticket-modal-box p {
  color: #e5e7eb;
  line-height: 1.6;
}

.countdown-text {
  margin-top: 16px;
  color: #94a3b8 !important;
  font-size: 14px;
}