/* Hero adjustment variables */
:root {
  --hero-aspect: 1;        /* logo.png is square (1024x1024) */
  --hero-y-offset: -20vw;  /* Moves the bat Ears. Relative to width for persistent alignment! */
  --header-overlap: 15vw;  /* Pushes brokers down. Relative to width to lock the 'Eye' position! */
}

/* Global layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 40px;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
}
.brand { display:flex; align-items:center; gap:16px; justify-content:center; margin-bottom:16px; }
.brand img { height: 192px; width: 192px; border-radius: 16px; }
/* Hero overlay layout */
.hero { position:relative; display:flex; align-items:center; justify-content:center; }
.hero .brand img { width:min(85vw, 1200px); height:auto; }
.hero-cards { position:absolute; left:50%; top:50%; transform:translate(-50%, -10%); width: 100%; }
/* Replace hero with background version. Wide logo filling horizontal space. */
.hero-bg {
  position: absolute;
  top: var(--hero-y-offset);
  left: 0;
  width: 100%;
  aspect-ratio: var(--hero-aspect);
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  border-radius: 16px;
  pointer-events: none;
}
/* Brokers overlap hero; position is relative to container width to keep eyes in place */
.broker-section {
  position: relative;
  z-index: 2;
  margin-top: var(--header-overlap);
  padding-bottom: 32px;
}
.broker-section h2.small { margin-top: 0; }
.tagline { text-align:center; color:#b8f3ff; margin-top:8px; margin-bottom:12px; opacity:0.95; font-size:1.2em; font-weight:700; letter-spacing:.04em; }
h1 { font-size: 2.5em; margin-bottom: 40px; background: linear-gradient(45deg, #00d4ff, #0099cc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-align: center; text-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.links { list-style: none; padding: 0; max-width: 100%; margin: 0 auto; }
.links li { margin: 15px 0; background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 15px 20px; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; backdrop-filter: blur(10px); }
.links:not(.nohover) li:hover { background: rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.3); transform: translateX(5px); box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2); }
.links a { color: #00d4ff; text-decoration: none; font-size: 1.3em; font-weight: 500; display: block; }
.links a:hover { color: #ffffff; text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
h2 { font-size: 1.8em; margin-top: 50px; margin-bottom: 25px; color: #ffffff; border-bottom: 2px solid #00d4ff; padding-bottom: 10px; text-align: center; position: relative; }
h2::before { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 50px; height: 2px; background: linear-gradient(45deg, #00d4ff, #0099cc); }
.container { width: min(100%, 1400px); margin: 0 auto; padding: 20px; }
.description { color: #b0b0b0; font-size: 0.9em; margin-top: 5px; line-height: 1.4; }
.api-button { background: linear-gradient(45deg, #00d4ff, #0099cc); color: #000; border: none; padding: 12px 20px; border-radius: 6px; font-size: 1.3em; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; min-width: 200px; }
.api-button:hover { background: linear-gradient(45deg, #0099cc, #00d4ff); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3); }
.inline-form { display: inline; margin: 0; padding: 0; }
.inline-form a { color: #00d4ff; text-decoration: none; font-size: 1.3em; font-weight: 500; display: block; cursor: pointer; }
.inline-form a:hover { color: #ffffff; text-shadow: 0 0 10px rgba(0, 212, 255, 0.5); }
.date-input { background: rgba(255, 255, 255, 0.1); color: #e0e0e0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 8px 10px; margin-right: 8px; margin-bottom: 8px; }

/* Brokers list (responsive grid, columns auto-fill based on screen width) */
.broker-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap:12px; width:100%; margin:0 auto; }
.broker-list .card { width:auto; min-width:0; }
/* Brokers Carousel (legacy, retained for compatibility) */
.carousel { overflow: hidden; width: 100%; margin: 0 auto; }
.carousel-track { display:flex; gap:12px; will-change: transform; }
.card { background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:12px; text-align:left; transition: all 0.3s ease; backdrop-filter: blur(10px); display:flex; align-items:center; gap:12px; min-width: 240px; text-decoration:none; flex: 0 0 100%; }
.card:hover { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.3); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,212,255,0.2); cursor: pointer; text-decoration:none; }
.card img { height:48px; width:48px; object-fit:cover; border-radius:8px; }
.card-info h3 { margin: 0 0 2px 0; font-size: 1.1em; }
.quote { color:#b0b0b0; font-style: italic; margin-top:2px; font-size: 0.85em; }
.rating { color:#FFD166; letter-spacing:1px; font-size: 0.9em; }
.card a { color:#00d4ff; text-decoration:none; display:inline-flex; align-items:center; gap:4px; font-size: 0.9em; }
.card a img.icon { width:14px; height:14px; display:inline-block; }
.card a:hover { text-decoration:underline; }
.card-links { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; }
.card-links a { font-weight:600; }
.dots { text-align:center; margin-top:12px; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; background: rgba(0,212,255,0.3); margin: 0 4px; }
.dot.active { background:#00d4ff; }
.card-mainlink { display:block; padding:6px 8px; border-radius:8px; text-decoration:none; }
.card-mainlink:hover { background: rgba(0,212,255,0.08); }
.card-links a:hover { text-decoration:underline; }

/* Smaller section variant */
h2.small { font-size: 1.2em; margin-top: 32px; letter-spacing:.05em; text-transform: uppercase; color:#bfefff; border-bottom: none; position:relative; text-align: center; }
h2.small::after { content:''; display:block; height:3px; width:200px; margin:8px auto 0; background: #00d4ff; }

/* Service status rows (traffic-light dots) */
.service-row { display:flex; align-items:center; gap:12px; }
.status-dot { display:inline-block; width:14px; height:14px; border-radius:50%; flex: 0 0 auto; }
.status-dot.ok { background:#22c55e; box-shadow: 0 0 10px rgba(34,197,94,0.7); }
.status-dot.warn { background:#f59e0b; box-shadow: 0 0 10px rgba(245,158,11,0.7); }
.status-dot.err { background:#ef4444; box-shadow: 0 0 10px rgba(239,68,68,0.7); }
.service-row .description { font-size: 1.05em; color:#e0e0e0; margin-top: 0; }

.links li.centered-link { text-align: center; margin-top: 20px; border: none; background: transparent; }
.centered-link a {
  display: inline-block !important;
  color: #00d4ff;
  font-size: 1.2em;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid #00d4ff;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.centered-link a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.buy-section { text-align: center; margin-top: 32px; }

/* Footer */
.footer { margin-top: 40px; text-align:center; color:#8abccc; opacity:0.8; font-size: 0.85em; }

/* Mobile responsive */
@media (max-width: 640px) {
  :root { --hero-h: 360px; }
  body { padding: 16px; }
  .container { padding: 12px; }
  .carousel { max-width: 100%; }
  .carousel-track { gap: 12px; }
  .broker-list { grid-template-columns: 1fr; gap: 12px; }
  .brand img { width: min(80vw, 340px); height: auto; }
  .dots { position: relative; z-index: 2; margin-top: 8px; }
}

/* Medium screens: 2 cards */
@media (min-width: 900px) {
  .card { flex: 0 0 calc((100% - 16px) / 2); }
}

/* Large screens: 3 cards */
@media (min-width: 1200px) {
  .card { flex: 0 0 calc((100% - 32px) / 3); }
}

/* Large screens: bigger hero */
@media (min-width: 1400px) {
  :root { --hero-h: 720px; }
}

/* Performance chart card */
.chart-card { max-width: 100%; margin: 0 auto; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:16px; backdrop-filter: blur(10px); }
.chart-card canvas { width: 100% !important; height: 320px !important; display: block; }
.chart-footer { text-align:center; color:#8abccc; margin-top:8px; }
.chart-footer a { color:#00d4ff; text-decoration:none; }
.chart-footer a:hover { text-decoration:underline; }

/* Extra narrow phones */
@media (max-width: 480px) {
  :root { --hero-h: 420px; }
}
@media (max-width: 360px) {
  :root { --hero-h: 460px; }
}

