:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --bg3: #1a1e2a;
  --accent: #4f8ef7;
  --accent2: #7c5cfc;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --border: #252a38;
  --radius: 8px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ab3ff; }

/* ── Nav ─────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,15,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.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(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Banner ──────────────────────────── */
.banner {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,142,247,0.12) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 39px,
    rgba(255,255,255,0.02) 39px, rgba(255,255,255,0.02) 40px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 39px,
    rgba(255,255,255,0.02) 39px, rgba(255,255,255,0.02) 40px
  );
  pointer-events: none;
}

.banner-content { position: relative; max-width: 700px; }

.banner-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 24px;
}

.banner h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.banner-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Intro strip ─────────────────────── */
.intro-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.intro-strip h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.intro-strip h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ── Buttons ─────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { color: #fff; opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover { color: var(--text); border-color: var(--accent); background: rgba(79,142,247,0.06); }

/* ── Section commons ─────────────────── */
section { padding: 80px 24px; }

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

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-heading p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ── About cards ─────────────────────── */
#about { background: var(--bg2); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.card-icon.blue  { background: rgba(79,142,247,0.15); }
.card-icon.purple { background: rgba(124,92,252,0.15); }
.card-icon.green { background: rgba(52,211,153,0.15); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── What we do / tabs ───────────────── */
#what-we-do { background: var(--bg); }

.tabs {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tabs a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

.tabgroup > div { display: none; }

.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tab-panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tab-panel p { color: var(--text-muted); margin-bottom: 28px; }
.tab-panel p a { color: var(--accent); }

.tab-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.tab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Contact ─────────────────────────── */
#contact-us { background: var(--bg2); }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group input,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit { margin-top: 8px; }

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 360px;
}

.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

/* ── Footer ──────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }

.back-to-top { color: var(--text-muted); font-size: 0.85rem; }
.back-to-top:hover { color: var(--text); }

/* ── Ticker ──────────────────────────── */
:root {
  --ticker-h: 32px;
  --ticker-green: #34d399;
  --ticker-red: #f87171;
}

.ticker {
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
  height: var(--ticker-h);
  background: #0a0c10;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
}

.ticker-badge {
  flex-shrink: 0;
  padding: 0 10px 0 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0a0c10;
  background: var(--accent);
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 80s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ticker-tag  { color: var(--accent); font-weight: 700; }
.ticker-up   { color: var(--ticker-green); }
.ticker-down { color: var(--ticker-red); }
.ticker-sep  { color: var(--border); margin: 0 2px; }
.ticker-link { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.ticker-link:hover { color: var(--text); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive ──────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .tab-panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
