/*
  BLEA Media — Custom Styles
  Tailwind is loaded locally; this file provides the design system,
  custom animations, accessibility fallbacks, and self-hosted fonts.
*/

/* ----------------------------------------------------------------
   Self-Hosted Fonts: Inter (weights 400–900)
   ---------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('../fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('../fonts/inter-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('../fonts/inter-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('../fonts/inter-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url('../fonts/inter-latin-ext-900-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------------- */
:root {
  --color-bg: #0B0F19;
  --color-bg-alt: #0f172a;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-accent: #00D4FF;
  --color-accent-dark: #00a8cc;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 1rem;
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.18);
  --nav-height: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------------
   Focus & Accessibility
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: #0B0F19;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ----------------------------------------------------------------
   Typography Helpers
   ---------------------------------------------------------------- */
.text-balance {
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------------
   Backgrounds
   ---------------------------------------------------------------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.12), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.10), transparent 40%);
}

/* ----------------------------------------------------------------
   Hero Animated Mesh
   ---------------------------------------------------------------- */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-mesh::before,
.hero-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.hero-mesh::before {
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 70%);
  top: -10%;
  right: -10%;
  animation: floatOrb1 18s ease-in-out infinite alternate;
}

.hero-mesh::after {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.30), transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh::before,
  .hero-mesh::after {
    animation: none;
  }
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 60px) scale(1.08); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.05); }
}

/* Floating geometric shapes */
.shape {
  position: absolute;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 0;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  transform: rotate(15deg);
  animation: floatShape 12s ease-in-out infinite;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 55%;
  right: 8%;
  transform: rotate(-10deg);
  border-radius: 50%;
  animation: floatShape 16s ease-in-out infinite reverse;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 25%;
  transform: rotate(45deg);
  animation: floatShape 14s ease-in-out infinite 2s;
}

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

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(8deg); }
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #0B0F19;
  font-weight: 700;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: rgba(0, 212, 255, 0.4);
}

/* ----------------------------------------------------------------
   Cards
   ---------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------------
   Process Timeline
   ---------------------------------------------------------------- */
.process-line {
  position: absolute;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.4), rgba(59, 130, 246, 0.4));
  z-index: 0;
}

@media (min-width: 768px) {
  .process-line {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.4), rgba(59, 130, 246, 0.4));
  }
}

/* ----------------------------------------------------------------
   FAQ Accordion
   ---------------------------------------------------------------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.accordion-item.open .accordion-content {
  max-height: 600px;
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .accordion-content {
    transition: none;
  }
}

/* ----------------------------------------------------------------
   Scroll Reveal
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ----------------------------------------------------------------
   Form
   ---------------------------------------------------------------- */
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  color: var(--color-text);
  padding: 0.875rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-dim);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
  outline: none;
}

select option {
  background: #0f172a;
  color: var(--color-text);
}

/* Checkbox */
input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* ----------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------- */
#main-nav.nav-scrolled {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    transition: none;
  }
}

/* ----------------------------------------------------------------
   Utilities
   ---------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.text-accent {
  color: var(--color-accent);
}

.border-accent {
  border-color: rgba(0, 212, 255, 0.35);
}

/* ----------------------------------------------------------------
   Testimonial Read More
   ---------------------------------------------------------------- */
.testimonial-text {
  position: relative;
  height: 9rem;
  max-height: 9rem;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.testimonial-text::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.9));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.testimonial-text.expanded {
  height: auto;
  max-height: 2000px;
}

.testimonial-text.expanded::after {
  opacity: 0;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.read-more-btn:hover {
  color: #fff;
}

.read-more-btn svg {
  transition: transform 0.25s ease;
}

.read-more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-text,
  .testimonial-text::after,
  .read-more-btn svg {
    transition: none;
  }
}

/* ----------------------------------------------------------------
   Legal Pages
   ---------------------------------------------------------------- */
.legal-section {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}

.legal-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.legal-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
