/* ===== Fleet Design System for Wiza ===== */

/* --- Font Faces --- */
/* Instrument Sans is the single typeface for both body and headings,
   matching the fleet.ao landing page. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */

:root {
  --v2-bg: #FFFFFF;
  --v2-bg-dark: #111111;
  --v2-surface: #FFFFFF;
  --v2-border: #E8E8E4;
  --v2-text-primary: #0D1117;
  --v2-text-secondary: #555555;
  --v2-text-muted: #999999;
  --v2-text-inverse: #FFFFFF;
  --v2-accent-warm: #E8523F;
  --v2-accent-purple: #7C3AED;
  --font-heading: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* --- Reset --- */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--v2-text-secondary);
  background: var(--v2-surface);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Layout --- */

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

.section {
  padding: 48px 0;
}

.section--alt {
  background: var(--v2-bg);
}

.section--dark {
  background: #0A0A0A;
  color: var(--v2-text-inverse);
}

/* --- Typography --- */

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--v2-text-muted);
  margin-bottom: 20px;
}

h1, .h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--v2-text-primary);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--v2-text-primary);
}

h3, .h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--v2-text-primary);
}

.text-accent {
  color: var(--v2-accent-warm);
  font-style: italic;
}

.text-center {
  text-align: center;
}

.text-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--v2-text-secondary);
}

.text-small {
  font-size: 14px;
}

.text-muted {
  color: var(--v2-text-muted);
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
  background: var(--v2-text-primary);
  color: var(--v2-surface);
}

.btn--primary:hover {
  background: #222222;
}

.btn--secondary {
  background: transparent;
  color: var(--v2-text-secondary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
}

.btn--secondary:hover {
  color: var(--v2-text-primary);
}

/* --- Navigation --- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--v2-border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.nav__logo img {
  height: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--v2-text-primary);
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.7;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__lang {
  display: flex;
  align-items: center;
}

.nav__lang img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.nav__portal {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--v2-text-primary);
  transition: opacity 0.2s ease;
}

.nav__portal:hover {
  opacity: 0.7;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--v2-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 24px;
  z-index: 100;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile a {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--v2-text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--v2-border);
}

.nav__mobile a:last-child {
  border-bottom: none;
}

.nav__mobile a:hover {
  color: var(--v2-text-primary);
}

/* --- Hero --- */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}


#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.hero .container a,
.hero .container button {
  pointer-events: auto;
}

.hero .tag {
  display: block;
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero .text-body {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 18px;
}

/* --- Cards --- */

.card {
  background: var(--v2-surface);
  padding: 32px;
}


.card__image {
  margin-bottom: 24px;
  overflow: hidden;
  height: 220px;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.card:hover .card__image img {
  filter: grayscale(0%);
  opacity: 1;
}

.card__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2-text-muted);
  border: 1px solid var(--v2-border);
  padding: 4px 12px;
  display: inline-block;
  margin-top: 16px;
}

/* --- Grid --- */

.grid {
  display: grid;
  gap: 0;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--2 {
  grid-template-columns: 1fr;
}

/* --- Logo Grid --- */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.logo-grid__item {
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.logo-grid__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-grid__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-grid__item--large img {
  transform: scale(2);
}

.logo-grid__item--pay4all img {
  transform: scale(4);
}

@media (min-width: 768px) {
  .logo-grid__item {
    width: 190px;
    height: 120px;
  }
}

/* --- Logo Circle --- */

.logo-circle {
  position: relative;
  width: min(900px, 95vw);
  height: min(900px, 95vw);
  margin: 48px auto;
}

.logo-circle__svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.logo-circle__svg line {
  stroke: #c8c8c8;
  stroke-width: 0.3;
  opacity: 0.7;
}

.logo-circle__svg circle {
  fill: #aaa;
  opacity: 0.5;
}

.logo-circle__item {
  position: absolute;
  width: 130px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transform: translate(-50%, -50%);
}

/* 14 logos scattered inside the circle */
.logo-circle__item:nth-child(1)  { left: 28%;  top: 18%; }
.logo-circle__item:nth-child(2)  { left: 58%;  top: 15%; }
.logo-circle__item:nth-child(3)  { left: 78%;  top: 30%; }
.logo-circle__item:nth-child(4)  { left: 85%;  top: 52%; }
.logo-circle__item:nth-child(5)  { left: 72%;  top: 72%; }
.logo-circle__item:nth-child(6)  { left: 52%;  top: 82%; }
.logo-circle__item:nth-child(7)  { left: 28%;  top: 78%; }
.logo-circle__item:nth-child(8)  { left: 12%;  top: 62%; }
.logo-circle__item:nth-child(9)  { left: 10%;  top: 38%; }
.logo-circle__item:nth-child(10) { left: 25%;  top: 42%; }
.logo-circle__item:nth-child(11) { left: 42%;  top: 28%; }
.logo-circle__item:nth-child(12) { left: 68%;  top: 42%; }
.logo-circle__item:nth-child(13) { left: 65%;  top: 68%; }
.logo-circle__item:nth-child(14) { left: 32%;  top: 65%; }

.logo-circle__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-circle__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-circle__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle__center img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-circle__center:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 767px) {
  .logo-circle {
    width: 300px;
    height: 300px;
  }

  .logo-circle__item {
    width: 80px;
    height: 60px;
    padding: 8px;
  }

  .logo-circle__center {
    width: 72px;
    height: 72px;
  }

  .logo-circle__center img {
    width: 60px;
    height: 60px;
  }
}

/* --- Section Headers --- */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header .tag {
  display: block;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--v2-text-secondary);
}

/* --- CTA Banner --- */

.cta-banner {
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  max-width: 700px;
  margin: 0 auto 32px;
}

/* --- Footer --- */

.footer {
  background: var(--v2-bg);
  border-top: 1px solid var(--v2-border);
  color: var(--v2-text-muted);
  padding: 64px 0 32px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--v2-border);
}

.footer__brand {
  flex: 1;
  min-width: 200px;
}

.footer__brand img {
  height: 28px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer__addresses {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__address h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--v2-text-muted);
  margin-bottom: 12px;
}

.footer__address p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--v2-text-secondary);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}

.footer__links a {
  color: var(--v2-text-secondary);
  transition: opacity 0.2s ease;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__copy {
  font-size: 13px;
  color: var(--v2-text-muted);
}

/* --- Scroll Fade-in --- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

@media (min-width: 768px) {
  h1, .h1 {
    font-size: 64px;
  }

  h2, .h2 {
    font-size: 38px;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 85vh;
  }

  .section {
    padding: 64px 0;
  }

  .marquee__item {
    width: 190px;
    height: 120px;
  }
}

@media (min-width: 1024px) {
  h1, .h1 {
    font-size: 80px;
  }

  h2, .h2 {
    font-size: 42px;
  }

  .hero {
    min-height: 85vh;
  }

  .grid--3 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__portal {
    display: none;
  }

  .nav__actions .btn {
    display: none;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__addresses {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* --- Stories Page --- */

.stories-hero {
  padding-top: 140px;
  padding-bottom: 48px;
  text-align: center;
  border-bottom: 1px solid var(--v2-border);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.story-card {
  border: 1px solid var(--v2-border);
  background: var(--v2-surface);
  overflow: hidden;
}

.story-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-card__body {
  padding: 24px;
}

.story-card__category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2-accent-warm);
  margin-bottom: 8px;
  display: block;
}

.story-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--v2-text-primary);
  margin-bottom: 8px;
}

.story-card__author {
  font-size: 13px;
  color: var(--v2-text-muted);
}

.story-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--v2-border);
  background: var(--v2-surface);
  overflow: hidden;
}

.story-featured img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.story-featured__body {
  padding: 32px;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.categories-list a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2-text-secondary);
  border: 1px solid var(--v2-border);
  padding: 8px 20px;
  transition: all 0.2s ease;
}

.categories-list a:hover {
  color: var(--v2-text-primary);
  border-color: var(--v2-text-primary);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--v2-text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--v2-border);
}

/* --- Legal Pages (Privacy, Terms) --- */

.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.legal-sidebar a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--v2-text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--v2-border);
  transition: color 0.2s ease;
}

.legal-sidebar a:hover {
  color: var(--v2-text-primary);
}

.legal-content h3,
.legal-content h4,
.legal-content h6 {
  font-family: var(--font-heading);
  color: var(--v2-text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h6 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1px;
}

.legal-content h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.4px;
}

.legal-content h4 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--v2-text-secondary);
  margin-bottom: 16px;
}

.legal-content .date {
  font-size: 13px;
  color: var(--v2-text-muted);
  margin-bottom: 32px;
}

/* --- Search Page --- */

.search-hero {
  padding-top: 160px;
  padding-bottom: 48px;
  text-align: center;
}

.search-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

.search-form input[type="search"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  border: 1px solid var(--v2-border);
  border-right: none;
  outline: none;
  background: var(--v2-surface);
}

.search-form input[type="search"]:focus {
  border-color: var(--v2-text-primary);
}

.search-form input[type="submit"] {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 24px;
  background: var(--v2-text-primary);
  color: var(--v2-surface);
  border: 1px solid var(--v2-text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form input[type="submit"]:hover {
  background: #222;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-featured {
    grid-template-columns: 1fr 1fr;
  }

  .story-featured img {
    height: 100%;
  }

  .legal-layout {
    grid-template-columns: 240px 1fr;
    gap: 64px;
  }

  .legal-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
  }
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
