/* =========================================================
   S4 TRADING — DESIGN SYSTEM
   ========================================================= */

:root {
  --bg: #0F1115;
  --panel: #1A1D24;
  --panel-light: #21252D;
  --text: #D1D5DB;
  --text-muted: #8A929E;
  --white: #F4F5F6;
  --blue: #0A3D62;
  --blue-light: #14568A;
  --gold: #D4AF37;
  --gold-dim: #B8963E;
  --border: rgba(212, 175, 55, 0.16);
  --border-soft: rgba(209, 213, 219, 0.1);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 560px; }

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0 0 12px;
  display: block;
}
.eyebrow--light { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #14171C; }
.btn--gold:hover { background: #e0bc4c; }
.btn--outline { border-color: var(--border-soft); color: var(--white); background: transparent; }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost { color: var(--text-muted); background: transparent; }
.btn--ghost:hover { color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
  padding: 22px 0;
}
.nav.is-scrolled {
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
  padding: 14px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__mark {
  font-family: var(--font-display);
  color: var(--gold);
  border: 1px solid var(--border);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  border-radius: 2px;
}
.nav__name { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 28px; font-size: 0.9rem; color: var(--text); }
.nav__links a:hover { color: var(--gold); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; }
.lang-switch__item { padding: 4px 7px; color: var(--text-muted); border-radius: 2px; }
.lang-switch__item:hover { color: var(--white); }
.lang-switch__item.is-active { color: var(--gold); border: 1px solid var(--border); }
.nav__cta { display: inline-flex; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--white); display: block; transition: var(--transition); }

@media (max-width: 880px) {
  .nav__links { position: fixed; top: 68px; left: 0; right: 0; background: var(--panel); flex-direction: column; padding: 24px; gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: var(--transition); border-bottom: 1px solid var(--border-soft); }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(15,17,21,0.55) 0%, rgba(15,17,21,0.72) 55%, rgba(15,17,21,0.95) 100%),
    url('../../images/s4t_1.jpg') center center / cover no-repeat,
    var(--bg);
}
.hero__route { width: 100%; height: 100%; }
#routePath { animation: draw 2.4s ease forwards; stroke-dashoffset: 900; stroke-dasharray: 900; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 60px; }
.hero__title { max-width: 780px; color: var(--white); }
.hero__subtitle { max-width: 560px; font-size: 1.15rem; color: var(--text); margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero__coords { display: flex; align-items: center; gap: 18px; font-family: var(--font-mono); }
.coord-tag { display: flex; flex-direction: column; gap: 4px; }
.coord-tag__label { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-muted); }
.coord-tag__value { font-size: 0.85rem; color: var(--gold); }
.coord-tag__line { flex: 0 0 60px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

@media (max-width: 600px) {
  .hero__coords { flex-direction: column; align-items: flex-start; gap: 10px; }
  .coord-tag__line { display: none; }
}

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 110px 0; }
.section--panel { background: var(--panel); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
}
.about__stats { display: flex; flex-direction: column; gap: 30px; border-left: 1px solid var(--border-soft); padding-left: 36px; }
.stat__value { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); display: block; line-height: 1; }
.stat__label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__stats { flex-direction: row; border-left: none; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 26px; gap: 34px; flex-wrap: wrap; }
}

/* =========================================================
   SERVICES / CARDS
   ========================================================= */
.cards { display: grid; gap: 24px; margin-top: 44px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border); transform: translateY(-3px); }
.card__ref { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; }
.card__ref--gold { color: var(--gold); }
.card__list li { padding: 6px 0; font-size: 0.92rem; border-top: 1px solid var(--border-soft); }
.card__list li:first-child { border-top: none; }
.card--accent { background: linear-gradient(155deg, var(--blue), #082c47); border-color: var(--gold-dim); }
.card--accent h3, .card--accent p { color: var(--white); }

@media (max-width: 980px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--4 { grid-template-columns: 1fr; } }

/* =========================================================
   PROCESS / TIMELINE
   ========================================================= */
.timeline { margin-top: 50px; position: relative; }
.timeline__step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  align-items: start;
}
.timeline__step:first-child { border-top: none; }
.timeline__num { font-family: var(--font-mono); font-size: 1.6rem; color: var(--gold); opacity: 0.85; }
.timeline__step h3 { margin-bottom: 6px; }
.timeline__step p { color: var(--text-muted); max-width: 560px; margin: 0; }

@media (max-width: 600px) {
  .timeline__step { grid-template-columns: 50px 1fr; }
  .timeline__num { font-size: 1.2rem; }
}

/* =========================================================
   SECTORS
   ========================================================= */
.sector-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; }
.sector {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}
.sector:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   WHY
   ========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; margin-top: 44px; }
.why-item { display: flex; align-items: flex-start; gap: 14px; font-size: 1.02rem; color: var(--white); padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.why-item__check { color: var(--gold); font-weight: 700; flex-shrink: 0; }
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact__call { margin-top: 34px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.contact__call p { margin-bottom: 14px; color: var(--text-muted); font-size: 0.92rem; }

.contact-form { background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 0; }
.field-row { margin-bottom: 18px; }
label { font-size: 0.82rem; color: var(--text-muted); font-family: var(--font-mono); }
input, textarea {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--gold); outline: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.consent input { margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.9rem; }
.form-alert--ok { background: rgba(212,175,55,0.12); border: 1px solid var(--gold); color: var(--gold); }
.form-alert--error { background: rgba(200,60,60,0.1); border: 1px solid #c85050; color: #e0908f; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--panel); border-top: 1px solid var(--border-soft); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.footer__col a { color: var(--text); font-size: 0.92rem; }
.footer__col a:hover { color: var(--gold); }
.footer__brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 10px; max-width: 280px; }
.footer__bottom { border-top: 1px solid var(--border-soft); padding: 20px 0; font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 90;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform var(--transition);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2.4s infinite;
  z-index: -1;
}
.whatsapp-float:hover { transform: scale(1.06); }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 95;
}
.cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--text); max-width: 720px; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-page { padding-top: 150px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 32px; }
.legal-page p { color: var(--text); max-width: 720px; }
.legal-note { margin-top: 40px; padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 0.85rem; }
.cookie-banner { z-index: 99999 !important; pointer-events: auto !important; }
.cookie-banner__actions button { pointer-events: auto !important; position: relative; z-index: 1; }

.nav__logo { height: 76px; width: auto; display: block; }
