/* =========================
   Flicker Pay – style.css
   Futuristic Tech Style
   ========================= */

/* ---- CSS Reset & Normalize ---- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { background: #10182a; color: #F9F9F9; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---- Flicker Pay Variables (with fallbacks) ---- */
:root {
  --color-primary: #1C315E;
  --color-secondary: #34B9DF;
  --color-accent: #F9F9F9;
  --color-dark-bg: #10182a;
  --color-dark-card: #18203A;
  --color-border: #31416E;
  --color-neon: #34B9DF;
  --color-accent-glow: #04eafe;
  --color-neon-pink: #ff5afb;
  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Orbitron', Arial, sans-serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --shadow-card: 0 6px 40px rgba(52,185,223,0.10), 0 1.5px 8px rgba(58,32,248,0.13);
  --shadow-neon: 0 0 6px 2px #34B9DF44;
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

/* ---- Global Typography ---- */
body {
  font-family: var(--font-body, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  background: var(--color-dark-bg);
  color: var(--color-accent);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, Arial, sans-serif);
  color: #fff;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 20px;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.16; }
h3 { font-size: 1.25rem; line-height: 1.23; }
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.14rem; }
}

strong, b { color: var(--color-neon); font-weight: bold; }

/* ---- Spacing & Layout Containers ---- */
.container {
  width: 100%;
  max-width: 1220px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section,
.hero,
.features,
.about,
.services,
.insights,
.contact {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  padding: 24px;
}
.card:hover {
  box-shadow: 0 0 20px 4px var(--color-neon-pink);
  transform: translateY(-4px) scale(1.03);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F7FAFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px 0 #1720341a;
  color: #20202a;
  margin-bottom: 20px;
  flex: 1;
  position: relative;
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 0 0 2px var(--color-neon), 0 10px 22px #34b9df33;
  transform: scale(1.03);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive Section Spacing */
@media (max-width: 992px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section,
  .hero,
  .features,
  .about,
  .services,
  .insights,
  .contact {
    padding: 28px 8px 28px 8px;
  }
  .content-wrapper,
  .card-container,
  .content-grid,
  .testimonial-card {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(120deg, #1C315E 0%, #10182a 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 38px 0 #1C315E33;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  z-index: 1;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 0 10px #2e81cb77,0 0 4px #fff0;
}

/* ---- Buttons/CTAs ---- */
.cta,
button.cta,
.main-nav .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display, Arial, sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 35px;
  border-radius: var(--radius);
  letter-spacing: 0.08em;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-align: center;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 14px 2px #34b9df2a;
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.cta.primary,
button.cta.primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 0 2px #34B9DF44, 0 6px 18px #34b9df22;
}

.cta:hover,
button.cta:hover {
  background: #10182a;
  color: var(--color-neon);
  box-shadow: 0 0 14px 4px #34b9df55, 0 0 0 2px #1C315E;
  transform: translateY(-2px) scale(1.04);
}
.cta:active { transform: scale(0.98); }
.cta:focus { outline: none; box-shadow: 0 0 0 3px #34B9DF66; }

/* --- Navigation Bar & Header --- */
header {
  width: 100%;
  padding: 0;
  background: #10182a;
  border-bottom: 1.5px solid #1c315e40;
  z-index: 1002;
  position: sticky; top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  gap: 16px;
  position: relative;
}
header a img { height: 42px; }
@media (max-width: 550px) {
  header a img { height: 30px; }
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display, Arial, sans-serif);
  font-size: 1rem;
}
.main-nav a {
  color: #F9F9F9;
  opacity: 0.85;
  padding: 2px 0 2px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-neon);
  border-bottom: 2px solid var(--color-neon);
  opacity: 1;
}

/* Hide main nav on mobile */
@media (max-width: 992px) {
  .main-nav { display: none; }
}

/* ---- Mobile Hamburger Menu ---- */
.mobile-menu-toggle {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  padding: 4px 16px 4px 6px;
  cursor: pointer;
  line-height: 1;
  z-index: 1102;
  display: none;
}
@media (max-width: 992px) {
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,26,51,0.98);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.38,.1,.28,1.08);
  z-index: 5002;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 18px 26px 10px 0;
  cursor: pointer;
  line-height: 1;
  align-self: flex-end;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  margin-top: 40px;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.3rem;
  padding: 16px 40px;
  width: 100%;
  color: #fff;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: #242D51;
  color: var(--color-neon);
}
@media (min-width: 993px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* ---- Section: Features/Services/Cards/Lists ---- */
.features ul, .services ul, .insights ul,
.description-list ul, .benefit-descriptions ul,
.author-highlights ul, .featured-reports ul,
.industry-cases ul, .statistics-highlights ul,
.category-filters, .partner-logos, .blog-list ul, .service-benefits ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 28px;
  flex-wrap: wrap;
}
.features ul li,
.services ul li,
.insights ul li,
.description-list ul li,
.benefit-descriptions ul li,
.author-highlights ul li,
.featured-reports ul li,
.industry-cases ul li,
.statistics-highlights ul li,
.service-benefits ul li,
.partner-logos img,
.blog-list ul li {
  background: var(--color-dark-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 22px 18px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  color: #f6f6fd;
  min-width: 210px;
  flex: 1 1 220px;
  position: relative;
}
.features ul li:hover,
.services ul li:hover,
.blog-list ul li:hover {
  box-shadow: 0 0 20px 2px #34b9df80;
  transform: translateY(-5px) scale(1.025);
}

.features ul li img,
.partner-logos img,
.services ul li img {
  display: block;
  height: 42px;
  margin-bottom: 18px !important;
  border-radius: 6px;
}
.partner-logos img {
  background: none !important;
  box-shadow: none;
  padding: 0;
  min-width: initial;
}

@media (max-width: 860px) {
  .features ul, .services ul, .insights ul, .description-list ul, .benefit-descriptions ul, .partner-logos, .blog-list ul {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Comparison Grid Custom Layout (Quantum page) --- */
.comparison-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.comparison-grid > div {
  flex: 1 1 200px;
  background: var(--color-dark-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  min-width: 200px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .comparison-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Explainer and Timeline Customizations --- */
.explainer-icons ul,
.benefit-descriptions ul {
  flex-direction: row;
  gap: 32px;
}
.benefit-descriptions {
  margin-top: 16px;
}
.innovation-timeline ul {
  gap: 16px;
}

/* --- Insights & Blog List --- */
.blog-list ul {
  gap: 28px;
}
.blog-list ul li {
  flex: 1 1 220px;
  min-width: 210px;
  background: var(--color-dark-card);
  color: #fafafd;
}
.blog-list ul li a {
  display: inline-block;
  margin-top: 14px;
  color: var(--color-neon);
  text-decoration: underline;
  transition: color var(--transition);
  font-size: 1.02rem;
}
.blog-list ul li a:hover { color: #ff5afb; }

.category-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.category-filters a {
  background: #18203A;
  color: #34B9DF;
  padding: 5px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.category-filters a:hover { background: #34B9DF; color: #10182a; }

/* --- About & Contact Cards --- */
.address-block,
.office-location-map,
.transport-options,
.author-highlights,
.featured-reports {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav a,
.category-filters a,
button.cta,
.cta,
.footer-nav a {
  outline: none;
}

/* --- List & Utility Styles --- */
ul {
  list-style: none;
}
li {
  margin-bottom: 8px;
}
li:last-child { margin-bottom: 0; }
ul li strong {
  color: var(--color-secondary);
}

hr {
  border: none;
  border-top: 1px solid #18203A;
  margin: 24px 0;
}

/* --- Footer --- */
footer {
  background: #131a2a;
  color: #90aac3;
  margin-top: 52px;
  padding: 0 0 0 0;
  font-size: 1rem;
  box-shadow: 0 -2px 16px 0 #1c315e15;
}
footer .container {
  padding: 22px 18px;
  flex-direction: row;
  justify-content: center;
}
footer .content-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.footer-brand img { height: 42px; margin-bottom: 2px; }
.footer-contact ul {
  gap: 8px; flex-direction: column;
  color: #b9ccec;
  font-size: 0.97rem;
}
.footer-contact img {
  height: 19px; margin-right: 8px; vertical-align: middle; display: inline-block;
}
.footer-contact li { display: flex; align-items: center; gap: 6px; }
.footer-contact h3 { color: #fff; margin-bottom: 12px; font-size: 1.11rem; }
.footer-nav {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 2px;
}
.footer-nav a {
  color: #90aac3;
  padding: 0;
  font-size: 0.98rem;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--color-neon); text-shadow: 0 0 6px #34B9DF44;
}
.social-links {
  display: flex; flex-direction: row; gap: 19px;
}
.social-links a {
  line-height: 1; display: flex; align-items: center;
}
.social-links img { height: 27px; transition: filter var(--transition); }
.social-links a:hover img {
  filter: drop-shadow(0 0 12px #34b9dfaa) saturate(160%) hue-rotate(-20deg);
}
@media (max-width: 1024px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  footer .container, footer .content-wrapper {
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 18px 6px 16px 6px;
  }
  .footer-brand img { height: 30px; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: linear-gradient(90deg, rgba(28,49,94,0.98) 0%, rgba(52,185,223,0.95) 100%);
  color: #fff;
  z-index: 8000;
  box-shadow: 0 -4px 18px 0 #10182a1a;
  display: flex; flex-direction: row; align-items: center; gap: 24px;
  padding: 22px 24px 22px 24px;
  justify-content: space-between;
  font-size: 1rem;
  animation: cookieFadeIn 0.7s;
}
@keyframes cookieFadeIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fff;
  margin: 0 18px 0 0;
  flex:1 1 auto;
}
.cookie-banner .cookie-actions {
  display: flex; gap: 16px;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  background: #10182a;
  color: #fff;
  padding: 8px 20px;
  border-radius: 22px;
  font-family: var(--font-display, Arial, sans-serif);
  border: none;
  margin: 0 2px;
  box-shadow: 0 2px 8px #1C315E22;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner button.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.accept:hover { background: #ff5afb; color: #fff; }
.cookie-banner button.reject { background: #fff; color: #1C315E; }
.cookie-banner button.reject:hover { background: #fd4855; color: #fff; }
.cookie-banner .cookie-settings-btn { background: #222a3a; color: #34B9DF; }
.cookie-banner .cookie-settings-btn:hover { background: #34B9DF; color: #10182a; }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 11px; font-size: 0.98rem; }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  z-index: 10001;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,24,42,0.91);
  animation: modalShow 0.5s;
}
@keyframes modalShow {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #20202a;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px #1720342a;
  padding: 38px 36px 30px 36px;
  min-width: 310px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalZoomIn 0.45s;
  position: relative;
}
@keyframes modalZoomIn {
  from { transform: scale(0.78); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal .cookie-close-btn {
  position: absolute;
  top: 18px;
  right: 21px;
  background: transparent;
  color: #10182a;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}
.cookie-modal h2 { color: var(--color-primary); }
.cookie-modal h3 { color: var(--color-secondary); font-size: 1.16rem; margin-bottom: 6px; }
.cookie-modal ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 44px; height: 24px;
  background: #c3cde6;
  border-radius: 22px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
  vertical-align: middle;
}
.cookie-modal .cookie-toggle:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px #17203424;
  transition: transform var(--transition), background var(--transition);
}
.cookie-modal .cookie-toggle:checked {
  background: #34B9DF;
}
.cookie-modal .cookie-toggle:checked:before {
  background: #10182a;
  transform: translateX(20px);
}
.cookie-modal .cookie-toggle[disabled] {
  opacity: 0.7; pointer-events: none;
}
.cookie-modal .cookie-essential { color: #46c334; font-weight: 600; font-size: 1.05rem; }
.cookie-modal .cookie-actions {
  display: flex; gap: 24px; justify-content: flex-end; margin-top: 16px;
}
.cookie-modal .cookie-actions button {
  padding: 8px 26px;
  border-radius: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #10182a;
  color: #fff;
  font-family: var(--font-display, Arial, sans-serif);
  box-shadow: 0 2px 8px #1C315E22;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-modal .cookie-actions button.accept {
  background: var(--color-secondary); color: #fff;
}
.cookie-modal .cookie-actions button.reject {
  background: #fff; color: #1C315E;
}
.cookie-modal .cookie-actions button:hover {
  background: #34B9DF; color: #10182a;
}
@media (max-width: 480px) {
  .cookie-modal .cookie-modal-content {
    padding: 20px 8px 16px 8px;
    min-width: 0;
  }
}

/* --- Utility Animations & Effects --- */
@media (hover: hover) {
  a, button, .cta {
    transition: box-shadow var(--transition), color var(--transition), background var(--transition), border-color var(--transition), filter var(--transition), transform var(--transition);
  }
}

/* Neon Glow (On Focus or Neon Elements) */
.neon-glow, a:focus, .cta:focus, button:focus {
  outline: none;
  box-shadow: 0 0 0 3px #34B9DF88, 0 0 7px #34B9DF88;
}

/* ---- Accessibility & Utility ---- */
::-webkit-input-placeholder { color: #cce3fa; }
::-moz-placeholder { color: #cce3fa; }
:-ms-input-placeholder { color: #cce3fa; }
::placeholder { color: #cce3fa; }
[tabindex]:focus-visible {
  outline: 2px solid #34B9DF;
  outline-offset: 1px;
}
a:focus-visible {
  outline: 2px solid #34B9DF;
}

/* --- Responsive Tables (policy pages) --- */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td {
  border: 1px solid #293b61;
  padding: 12px 8px;
  text-align: left;
}
th {
  background: #1C315E;
  color: #fff;
}
td { background: #16213a; color: #f9f9f9; }

/* ---- Special Classes: Insights/Leadership/Map ---- */
.leadership-intro,
.office-location-map {
  background: var(--color-dark-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  margin-bottom: 20px;
  color: #dfefff;
  display: flex; flex-direction: column; gap: 10px;
}

/* --- Confirm layout: No use of Grid, only Flexbox --- */

/* ---- END Flicker Pay style.css ---- */
