/* =========================================================
   ByteTwister — Design Tokens & Component Styles
   Organized by component. Each block is self-contained so
   editing one component cannot bleed into another's layout.
   ========================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
}

:root {
  --bt-royal: #4169e1;
  --bt-royal-dark: #22348f;
  --bt-royal-darker: #141b4d;
  --bt-baby: #89cff0;
  --bt-ink: #0b1220;
  --bt-ink-2: #101a30;
  --bt-paper: #f7f9fc;
  --bt-white: #ffffff;
  --bt-line: rgba(255, 255, 255, 0.12);
  --bt-line-soft: rgba(11, 18, 32, 0.08);
  --bt-focus: #ffd166;
}

* {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html,
body {
  background-color: var(--bt-paper);
  color: var(--bt-ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Visible, high-contrast focus ring for every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--bt-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bt-white);
  color: var(--bt-royal-darker);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
}

/* =========================
   Component: Site Header
   ========================= */
.bt-header {
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--bt-line);
}

.bt-logo-mark {
  background: linear-gradient(135deg, var(--bt-baby) 0%, var(--bt-royal) 100%);
}

.bt-nav-link {
  position: relative;
  color: #cdd8f0;
  transition: color 0.15s ease;
}
.bt-nav-link:hover,
.bt-nav-link:focus-visible {
  color: var(--bt-white);
}
.bt-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--bt-baby), var(--bt-royal));
  transition: width 0.2s ease;
}
.bt-nav-link:hover::after,
.bt-nav-link:focus-visible::after {
  width: 100%;
}

.bt-mobile-panel {
  border-top: 1px solid var(--bt-line);
}

/* =========================
   Component: CTA Buttons
   ========================= */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.65rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.bt-btn:active {
  transform: translateY(1px);
}

.bt-btn-primary {
  background: linear-gradient(135deg, var(--bt-baby) 0%, var(--bt-royal) 100%);
  color: #08122b;
  box-shadow: 0 10px 30px -10px rgba(65, 105, 225, 0.65);
}
.bt-btn-primary:hover {
  box-shadow: 0 14px 34px -8px rgba(65, 105, 225, 0.8);
  transform: translateY(-1px);
}

.bt-btn-secondary {
  background: transparent;
  color: var(--bt-white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.bt-btn-secondary:hover {
  border-color: var(--bt-baby);
  background: rgba(137, 207, 240, 0.08);
}

.bt-btn-dark {
  background: var(--bt-ink);
  color: var(--bt-white);
}
.bt-btn-dark:hover {
  background: var(--bt-royal-darker);
}

/* =========================
   Component: Hero
   ========================= */
.bt-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 10% 0%, var(--bt-royal-dark) 0%, var(--bt-ink) 55%, var(--bt-ink) 100%);
  isolation: isolate;
}

.bt-hero::before,
.bt-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.55;
}
.bt-hero::before {
  width: 32rem;
  height: 32rem;
  background: var(--bt-royal);
  top: -10rem;
  right: -8rem;
}
.bt-hero::after {
  width: 26rem;
  height: 26rem;
  background: var(--bt-baby);
  bottom: -12rem;
  left: -6rem;
  opacity: 0.25;
}

.bt-hero-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.bt-trust-strip {
  border-top: 1px solid var(--bt-line);
  border-bottom: 1px solid var(--bt-line);
}

/* =========================
   Component: Section Frame (shared shell, safe to reuse)
   ========================= */
.bt-section-light {
  background: var(--bt-paper);
  color: var(--bt-ink);
}
.bt-section-dark {
  background: var(--bt-ink);
  color: var(--bt-white);
}
.bt-eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bt-royal);
}
.bt-section-dark .bt-eyebrow {
  color: var(--bt-baby);
}

/* =========================
   Component: Products (Tabs)
   ========================= */
.bt-tab {
  border: 1px solid var(--bt-line-soft);
  background: var(--bt-white);
  color: #475569;
  transition: all 0.15s ease;
}
.bt-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--bt-royal) 0%, var(--bt-royal-dark) 100%);
  color: var(--bt-white);
  border-color: transparent;
  box-shadow: 0 12px 24px -12px rgba(65, 105, 225, 0.55);
}
.bt-tab:hover:not([aria-selected="true"]) {
  border-color: var(--bt-royal);
  color: var(--bt-royal);
}

.bt-tabpanel {
  animation: bt-fade-in 0.25s ease;
}
@keyframes bt-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bt-feature-check {
  color: var(--bt-royal);
  flex: none;
}

/* =========================
   Component: Solutions Cards
   ========================= */
.bt-solution-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-line-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bt-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(20, 27, 77, 0.25);
  border-color: rgba(65, 105, 225, 0.35);
}
.bt-solution-icon {
  background: linear-gradient(135deg, rgba(137, 207, 240, 0.18), rgba(65, 105, 225, 0.18));
  color: var(--bt-royal);
}

/* =========================
   Component: Support Module
   ========================= */
.bt-soc-card {
  background: linear-gradient(160deg, var(--bt-royal-darker) 0%, var(--bt-ink) 100%);
  border: 1px solid var(--bt-line);
}
.bt-support-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-line-soft);
}
.bt-status-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

/* Contact / Incident form */
.bt-field label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
}
.bt-field input,
.bt-field select,
.bt-field textarea {
  border: 1.5px solid #dbe3f0;
  background: var(--bt-white);
  color: var(--bt-ink);
  border-radius: 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bt-field input:focus,
.bt-field select:focus,
.bt-field textarea:focus {
  border-color: var(--bt-royal);
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.15);
  outline: none;
}
.bt-form-success {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}
.bt-form-error {
  color: #b91c1c;
  font-size: 0.8125rem;
}

/* =========================
   Component: Company Module
   ========================= */
.bt-leader-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-line-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bt-leader-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(20, 27, 77, 0.3);
}
.bt-avatar {
  background: linear-gradient(135deg, var(--bt-royal) 0%, var(--bt-baby) 100%);
  color: #08122b;
  font-weight: 700;
}
.bt-badge {
  background: var(--bt-white);
  border: 1px solid var(--bt-line-soft);
  color: var(--bt-royal-darker);
}
.bt-badge svg {
  color: var(--bt-royal);
}

/* =========================
   Component: Footer
   ========================= */
.bt-footer {
  background: var(--bt-ink);
  border-top: 1px solid var(--bt-line);
  color: #b9c4dd;
}
.bt-footer a {
  transition: color 0.15s ease;
}
.bt-footer a:hover,
.bt-footer a:focus-visible {
  color: var(--bt-white);
}
.bt-social-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bt-line);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.bt-social-icon:hover {
  background: var(--bt-royal);
  transform: translateY(-2px);
}
.bt-newsletter input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bt-line);
  color: var(--bt-white);
}
.bt-newsletter input::placeholder {
  color: #8a97b8;
}

/* Utility: visually-hidden but available to assistive tech */
.sr-only-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
