/* ============================================================
   AirOps AB — Global Stylesheet
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-mid: #0f2040;
  --navy-light: #1a3058;
  --teal: #0ea5e9;
  --teal-dark: #0284c7;
  --teal-glow: rgba(14, 165, 233, 0.15);
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --accent: #22d3ee;
  --gradient: linear-gradient(135deg, #0a1628 0%, #0f2040 50%, #0a2a1a 100%);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--gray-200);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal);
  color: var(--navy) !important;
  padding: .45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--navy) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: .3s;
}

/* ---- Sections ---- */
section { padding: 6rem 5%; }
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 3rem;
}
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(14,165,233,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal-glow);
  border: 1px solid rgba(14,165,233,.3);
  color: var(--teal);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.4rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--teal), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-400);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.8rem;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.8rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover {
  border-color: var(--teal);
  background: var(--teal-glow);
  color: var(--white);
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--card-border);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.stat-num span { color: var(--teal); }
.stat-label { font-size: .82rem; color: var(--gray-400); margin-top: .2rem; }

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(14,165,233,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(14,165,233,.08);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.card p { font-size: .92rem; color: var(--gray-400); line-height: 1.65; }

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* ---- Services section ---- */
#services { background: var(--navy-mid); }
#services .section-sub { max-width: 620px; }

/* ---- About / LinkedIn ---- */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-title { margin-bottom: 1.2rem; }
.about-text p { color: var(--gray-400); line-height: 1.8; margin-bottom: 1rem; }
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #0a66c2;
  color: var(--white) !important;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.6rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  transition: background .2s, transform .15s;
}
.linkedin-btn:hover {
  background: #004182;
  transform: translateY(-1px);
}
.linkedin-btn svg { width: 20px; height: 20px; }
.about-highlights { display: flex; flex-direction: column; gap: 1.25rem; }
.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.highlight-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--teal-glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.highlight-icon svg { width: 20px; height: 20px; }
.highlight-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.highlight-text p { font-size: .85rem; color: var(--gray-400); }

/* ---- Process ---- */
#process { background: var(--navy-mid); }
.process-steps { display: flex; flex-direction: column; gap: 1.5rem; max-width: 780px; }
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--teal-glow);
  border: 1px solid rgba(14,165,233,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
}
.step-body h4 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step-body p { font-size: .9rem; color: var(--gray-400); }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), #0369a1);
  border-radius: var(--radius);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: .8rem; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 480px; margin: 0 auto 2rem; }

/* ---- Footer ---- */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--card-border);
  padding: 3rem 5% 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: .88rem; color: var(--gray-400); margin-top: .75rem; max-width: 320px; line-height: 1.7; }
.footer-col h5 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .88rem; color: var(--gray-400); }
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: var(--gray-400);
}

/* ---- Cookie Consent Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15, 32, 64, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--card-border);
  padding: 1.25rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-text p { font-size: .88rem; color: var(--gray-200); }
.cookie-text a { color: var(--teal); }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  padding: .55rem 1.3rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--accent); }
.btn-cookie-decline {
  background: transparent;
  color: var(--gray-400);
  font-size: .85rem;
  padding: .55rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn-cookie-decline:hover { color: var(--white); border-color: var(--gray-400); }

/* ---- Tech tags (used on engineering page cards) ---- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin-top: 1rem;
}
.tech-tags li {
  background: var(--teal-glow);
  color: var(--teal);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
  border: 1px solid rgba(14,165,233,.2);
}

/* ---- Engineering / Markets page specifics ---- */
.markets-hero {
  padding-top: calc(68px + 4rem);
  padding-bottom: 3rem;
}
.markets-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: .75rem; }
.markets-hero p { color: var(--gray-400); font-size: 1.05rem; }

.instruments-panel {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.instruments-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gray-200);
}
.search-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.search-input {
  flex: 1;
  min-width: 200px;
  background: var(--navy);
  border: 1px solid var(--card-border);
  color: var(--white);
  font-size: .92rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
}
.search-input::placeholder { color: var(--gray-600); }
.search-input:focus { border-color: var(--teal); }
.btn-add-instrument {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s;
  white-space: nowrap;
}
.btn-add-instrument:hover { background: var(--accent); }
.btn-add-instrument svg { width: 16px; height: 16px; }

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--gray-200);
  font-size: .8rem;
  font-weight: 500;
  padding: .35rem .85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}
.chip:hover, .chip.active {
  border-color: var(--teal);
  background: var(--teal-glow);
  color: var(--teal);
}
.chip.active .chip-check { display: inline; }
.chip-check { display: none; }

.watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.watchlist-header h2 { font-size: 1.25rem; font-weight: 700; }
.watchlist-count {
  background: var(--teal-glow);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 100px;
  border: 1px solid rgba(14,165,233,.25);
  margin-left: .6rem;
}
.btn-clear-all {
  background: transparent;
  color: var(--gray-400);
  font-size: .82rem;
  padding: .4rem .9rem;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn-clear-all:hover { color: #f87171; border-color: #f87171; }

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}
.widget-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.widget-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--card-border);
}
.widget-symbol {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
}
.widget-exchange {
  font-size: .75rem;
  color: var(--gray-400);
  margin-left: .4rem;
}
.btn-remove-widget {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: .25rem;
  border-radius: 4px;
  display: flex;
  transition: color .2s, background .2s;
}
.btn-remove-widget:hover { color: #f87171; background: rgba(248,113,113,.1); }
.btn-remove-widget svg { width: 16px; height: 16px; }
.widget-embed { width: 100%; height: 220px; overflow: hidden; }
.widget-embed .tradingview-widget-container { height: 220px; }

.empty-watchlist {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray-400);
}
.empty-watchlist svg {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--gray-600);
}
.empty-watchlist h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: var(--gray-200); }
.empty-watchlist p { font-size: .9rem; max-width: 340px; margin: 0 auto; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 2rem; }
  .widgets-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--navy-mid); padding: 1rem 5%; border-bottom: 1px solid var(--card-border); gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .preset-chips .chip { font-size: .75rem; }
}

/* ---- Contact form ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-200);
}
.form-group input,
.form-group textarea {
  background: var(--navy);
  border: 1px solid var(--card-border);
  color: var(--white);
  font-family: var(--font);
  font-size: .92rem;
  padding: .65rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Utilities ---- */
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.text-teal { color: var(--teal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
