/* Premium UK Fintech Theme (Deep Navy & Red) - Institutional Edition */
:root {
  --bg: #030914; /* Глубокий темно-синий (Navy) */
  --surface: #0a192f; /* Поверхность темно-синяя */
  --surface-light: #112a4f; /* Светло-синий для карточек */
  --surface-glass: rgba(10, 25, 47, 0.7); /* Стеклянная поверхность */
  --text: #ffffff;
  --text-muted: #94a3b8; /* Приглушенный серо-синий */
  --text-terminal: #4ade80; /* Зеленый для успешных логов терминала */
  --accent: #D41B2C; /* Красный цвет британского флага */
  --accent-hover: #ED2E3E; /* Яркий красный для наведения */
  --border: #1e3a8a; /* Синяя граница */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "Courier New", Courier, monospace; /* Для терминала */
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; 
}

/* Ambient Background Animations */
.ambient-background {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; overflow: hidden; pointer-events: none; background-color: var(--bg);
}
.glow-blob {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.12;
  animation: floatBlobs 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.blob-1 { width: 600px; height: 600px; background: var(--accent); top: -10%; left: -10%; animation-duration: 25s; }
.blob-2 { width: 500px; height: 500px; background: #0033A0; bottom: -20%; right: -10%; animation-duration: 28s; animation-direction: alternate-reverse; }

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 8vh) scale(1.05); }
  100% { transform: translate(-8vw, -8vh) scale(0.95); }
}

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

/* Navigation */
header.navbar {
  position: fixed; top: 0; width: 100%; 
  background: rgba(3, 9, 20, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 100; border-bottom: 1px solid var(--border); padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;
}

.brand { font-size: 24px; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; gap: 8px;}
.brand::before { content: ''; display: block; width: 12px; height: 12px; background: var(--accent); border-radius: 2px; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }

.btn {
  background: var(--surface-light); color: var(--text); padding: 12px 24px; border-radius: 4px; /* Более строгие углы */
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; border: 1px solid var(--border); cursor: pointer; text-align: center;
}
.btn:hover { background: var(--border); }
.btn-accent { background: var(--accent); color: var(--text); border: none; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 4px 15px rgba(212, 27, 44, 0.4); }

/* General Section Styles */
section { padding: 120px 40px; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid rgba(30, 58, 138, 0.3); }
.section-label { font-size: 12px; color: var(--accent); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; display: block; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; height: 1px; width: 30px; background: var(--accent); }
h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 30px; max-width: 800px; }
p.lead { font-size: clamp(16px, 2.5vw, 20px); color: var(--text-muted); max-width: 650px; margin-bottom: 40px; line-height: 1.6; }

/* Hero Section */
.hero { padding-top: 180px; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; border-bottom: none; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -2px; line-height: 1; margin-bottom: 30px; }
.hero h1 span { color: var(--accent); }
.hero-tags { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.tag { padding: 6px 14px; background: rgba(30, 58, 138, 0.2); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* Institutional Form Card */
.hero-form-card { 
  background: var(--surface-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 12px; padding: 40px; 
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); 
}
.hero-form-card h3 { font-size: clamp(20px, 4vw, 24px); font-weight: 800; margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.hero-form-card form { display: flex; flex-direction: column; gap: 16px; }
.hero-form-card .form-row { display: flex; gap: 16px; }
input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 16px 20px; border-radius: 6px; font-size: 15px; font-family: inherit; transition: all 0.3s ease; -webkit-appearance: none;
}
input::placeholder { color: #475569; }
input:focus { 
  outline: none; border-color: var(--accent); background: var(--surface); 
  box-shadow: 0 0 0 3px rgba(212, 27, 44, 0.15); 
}
.hero-form-btn { width: 100%; padding: 18px; font-size: 15px; margin-top: 10px; border-radius: 6px; letter-spacing: 1px; }

/* Payment Methods */
.payment-methods { margin-top: 30px; text-align: center; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px; }
.payment-methods p { font-size: 11px; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.payment-methods-img { display: flex; justify-content: center; gap: 20px; align-items: center; flex-wrap: wrap; }
.payment-icon { height: 28px; width: auto; object-fit: contain; filter: grayscale(100%) brightness(1.5); transition: all 0.3s ease; opacity: 0.7; }
.payment-icon:hover { filter: grayscale(0%) brightness(1); opacity: 1; transform: translateY(-2px); }

/* Steps Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.card { background: var(--surface); padding: 40px; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--surface-light); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card .number { font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: 2px; margin-bottom: 20px; border: 1px solid var(--accent); display: inline-block; padding: 4px 10px; border-radius: 4px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 15px; letter-spacing: -0.5px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Terminal / Live Telemetry */
.live-hub-container { 
  background: var(--surface); border-radius: 12px; padding: 40px; margin-top: 60px; 
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.live-hub-container::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent);
}
#live-trades-container { 
  background: #010409 !important; /* Очень темный фон для терминала */
  border: 1px solid #1e293b !important;
  border-radius: 6px; padding: 20px !important; font-family: var(--font-mono); 
}
.trade-row { transition: all 0.4s ease; max-height: 80px; opacity: 1; }
.trade-row.new { animation: terminalInsert 0.5s ease forwards; background: rgba(74, 222, 128, 0.05); }
.trade-row.fade-out { opacity: 0; transform: translateX(-20px); max-height: 0; padding: 0 !important; margin: 0; border: none !important; }

@keyframes terminalInsert {
  0% { opacity: 0; transform: translateX(20px); max-height: 0; padding-top: 0; padding-bottom: 0; }
  100% { opacity: 1; transform: translateX(0); max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
}

.live-pulse { display: inline-block; width: 10px; height: 10px; background-color: var(--accent); border-radius: 50%; margin-left: 10px; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 
  0% { box-shadow: 0 0 0 0 rgba(212, 27, 44, 0.6); } 
  70% { box-shadow: 0 0 0 8px rgba(212, 27, 44, 0); } 
  100% { box-shadow: 0 0 0 0 rgba(212, 27, 44, 0); } 
}

/* Bottom Registration Form - Redesigned */
.form-section { 
  background: linear-gradient(145deg, var(--surface), var(--surface-light)); 
  border: 1px solid var(--border);
  border-radius: 16px; padding: 80px; margin: 100px auto; 
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; 
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.form-section h2 { color: var(--text); }
.form-section input { 
  background: var(--bg); border: 1px solid var(--border); 
  border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; font-size: 16px;
}
.form-btn { 
  background: var(--accent); color: var(--text); width: 100%; padding: 20px; 
  border-radius: 6px; font-size: 16px; font-weight: 800; text-transform: uppercase; 
  letter-spacing: 1px; border: none; cursor: pointer; margin-top: 10px; transition: all 0.2s; 
}
.form-btn:hover { background: var(--accent-hover); box-shadow: 0 8px 25px rgba(212, 27, 44, 0.3); transform: translateY(-2px); }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(30, 58, 138, 0.4); padding: 30px 0; }
.faq-question { font-size: clamp(18px, 3vw, 22px); font-weight: 700; display: flex; justify-content: space-between; cursor: pointer; align-items: center; transition: color 0.2s; }
.faq-question:hover { color: var(--text-muted); }
.faq-icon { color: var(--accent); font-size: 24px; transition: transform 0.3s ease; font-weight: 400; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { color: var(--text-muted); margin-top: 20px; font-size: 16px; max-width: 850px; display: none; line-height: 1.7; border-left: 2px solid var(--border); padding-left: 20px; }

/* Footer */
footer { padding: 60px 20px; text-align: center; color: var(--text-muted); font-size: 13px; border-top: 1px solid rgba(30, 58, 138, 0.3); background: var(--bg); }

/* RESPONSIVENESS */
@media (max-width: 900px) {
  .hero, .form-section { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 140px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .nav-links { display: none; } 
  section { padding: 80px 30px; }
  .form-section { padding: 50px 30px; margin: 60px auto; }
}

@media (max-width: 768px) {
  header.navbar { padding: 15px 20px; }
  .brand { font-size: 20px; }
  .btn { padding: 10px 16px; font-size: 11px; }
  section { padding: 60px 20px; }
  .hero { padding-top: 120px; }
  .hero-form-card { padding: 30px 20px; }
  .hero-form-card .form-row { flex-direction: column; gap: 16px; } 
  .live-hub-container { padding: 25px 15px; margin-top: 40px; }
  .form-section { padding: 40px 20px; }
  .form-section input { font-size: 15px; padding: 15px; }
}

@media (max-width: 480px) {
  .hero-tags { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-btn { font-size: 15px; padding: 18px; }
  .faq-item { padding: 20px 0; }
  h2 { font-size: 28px; }
}
/* Custom Trustpilot Widget */
.trustpilot-widget-custom {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.tp-stars {
  display: flex;
  gap: 4px;
}

.tp-star {
  width: 26px;
  height: 26px;
  background-color: #00b67a;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
}

.tp-star svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

/* Имитация 4.8 звезд (последняя звезда закрашена не полностью, если присмотреться) */
.tp-star-half {
  background: linear-gradient(90deg, #00b67a 80%, rgba(255,255,255,0.2) 80%);
}

.tp-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-rating {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.tp-rating strong {
  font-weight: 800;
}

.tp-reviews {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}

.tp-logo {
  color: var(--text);
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.3px;
  margin-left: 3px;
}

.tp-star-icon {
  color: #00b67a;
  font-size: 14px;
}