/* --- CSS Reset & Normalize --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #0F1125;
  color: #F5F7FA;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2ED9FC;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5A46D6;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, select, input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Brand Variables with Fallbacks --- */
:root {
  --primary: #0F1125;
  --secondary: #5A46D6;
  --accent: #2ED9FC;
  --white: #F5F7FA;
  --grey: #23243d;
  --border: #262852;
  --body: 'Roboto', Arial, sans-serif;
  --display: 'Orbitron', 'Roboto', Arial, sans-serif;
}

@media (max-width: 768px) {
  :root {
    font-size: 16px;
  }
}
@media (min-width: 769px) {
  :root {
    font-size: 18px;
  }
}

/* --- Typography (geometric_structured aesthetic) --- */
h1, .hero-section h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h2 {
  font-family: var(--display);
  color: var(--secondary);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
h3 {
  font-family: var(--display);
  color: var(--accent);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
p, li, address {
  font-family: var(--body);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--white);
  opacity: 0.88;
}
strong {
  font-weight: 600;
}

/* --- Layout Containers and Spacing --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--grey);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(46,217,252,0.09);
  padding: 28px 28px 24px 28px;
  position: relative;
  transition: transform 0.18s, box-shadow 0.26s;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 6px 24px 0 rgba(46,217,252,0.18);
  z-index: 1;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  color: #121230;
  box-shadow: 0 2px 10px 0 rgba(90,70,214,0.05);
  margin-bottom: 20px;
  flex: 1 0 220px;
  min-width: 0;
}
.testimonial-card p {
  color: #222;
  font-size: 1.1rem;
}
.testimonial-card .author {
  font-family: var(--display);
  color: var(--secondary);
  font-size: 0.95rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO Section --- */
.hero-section {
  width: 100%;
  padding: 52px 0 42px 0;
  background: linear-gradient(95deg, rgba(90,70,214,0.27) 0%, rgba(46,217,252,0.04) 100%);
  border-radius: 0 0 52px 0;
  box-shadow: 0 2px 32px 0 rgba(46,217,252,0.09);
  margin-bottom: 48px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero-section .cta-btn {
  margin-top: 10px;
}

/* --- Feature Grids / Lists --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 0 0 16px 0;
}
.feature-grid > li {
  flex: 1 1 260px;
  background: var(--grey);
  border-radius: 11px;
  box-shadow: 0 2px 10px 0 rgba(46,217,252,0.07);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
  transition: box-shadow 0.18s, border-color 0.18s;
}
.feature-grid > li:hover {
  box-shadow: 0 5px 20px 0 rgba(46,217,252,0.15);
  border-color: var(--accent);
  z-index: 1;
}
.feature-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
}

.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 0;
}
.step-list > li {
  flex: 1 1 180px;
  background: var(--grey);
  border-radius: 11px;
  padding: 20px 14px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 20px;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.tool-list > li {
  flex: 1 1 240px;
  background: var(--grey);
  border-radius: 10px;
  padding: 18px 14px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.tool-list > li:hover {
  box-shadow: 0 4px 16px 0 rgba(46,217,252,0.13);
  border-color: var(--accent);
  z-index: 1;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.timeline li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--grey);
  border-radius: 10px;
  padding: 12px 16px;
  border-left: 4.5px solid var(--accent);
}
.timeline img {
  width: 27px;
  height: 27px;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.values-list > li {
  flex: 1 1 210px;
  background: var(--grey);
  border-radius: 10px;
  padding: 16px 12px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.values-list > li img {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.team-member {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--grey);
  border-radius: 10px;
  padding: 18px 10px;
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.team-member img {
  width: 46px;
  height: 46px;
}

/* --- Market Table --- */
.market-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--grey);
  border-radius: 10px;
  margin-top: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}
.market-table th, .market-table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1.5px solid var(--border);
}
.market-table th {
  font-family: var(--display);
  color: var(--accent);
  font-weight: 600;
  font-size: 1.10rem;
  background: rgba(90,70,214,0.07);
}
.market-table tbody tr:last-child td {
  border-bottom: none;
}
.market-table tr:hover td {
  background: rgba(46,217,252,0.06);
}
.market-table a {
  color: var(--secondary);
  font-weight: 600;
  font-family: var(--display);
  text-decoration: underline;
  transition: color 0.18s;
}
.market-table a:hover {
  color: var(--accent);
}

/* --- Banner / Info Boxes --- */
.info-box {
  background: var(--grey);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tips {
  background: #16173c;
  color: var(--accent);
  border-radius: 8px;
  padding: 13px 15px;
  margin-top: 10px;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #23243d;
  border-radius: 9px;
  padding: 6px 13px;
  font-family: var(--display);
  color: var(--accent);
  margin-top: 12px;
  font-size: 1.10rem;
}

.policy-section {
  background: var(--grey);
  border-radius: 9px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}

.icon-highlights,
.cookie-icons {
  display: flex;
  gap: 16px;
  margin-top: 9px;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  font-size: 1rem;
}

/* --- Testimonial Slider --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  justify-content: flex-start;
}

/* --- Market Preview (start page /) --- */
.market-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  background: var(--grey);
  padding: 20px 22px;
  border-radius: 13px;
  justify-content: space-between;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}
.market-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: var(--display);
  color: var(--accent);
  font-size: 1.07rem;
}
.quick-trade {
  display: flex;
  gap: 18px;
}
.quick-trade .cta-btn {
  font-size: 1rem;
}

.market-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
.market-controls label {
  color: var(--accent);
  font-weight: 500;
}
.market-controls select {
  background: var(--primary);
  color: var(--white);
  border-radius: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  margin-right: 6px;
  margin-left: 3px;
  font-size: 1rem;
}

.market-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 10px 0;
}
.market-icons img {
  width: 38px;
  height: 38px;
}

input[type='search'] {
  width: 100%;
  max-width: 350px;
  background: #181927;
  color: var(--white);
  border-radius: 8px;
  border: 1.5px solid var(--border);
  padding: 11px 17px;
  margin-bottom: 9px;
  font-size: 1rem;
  caret-color: var(--accent);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input[type='search']:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(46,217,252,0.13);
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 12px 36px;
  border-radius: 13px;
  box-shadow: 0 3px 18px 0 rgba(90,70,214,0.10);
  transition: background 0.18s, color 0.16s, transform 0.13s;
  border: none;
  outline: none;
  cursor: pointer;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 0;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent);
  color: #0F1125;
  transform: translateY(-2px) scale(1.025);
}

/* --- Header & Navigation --- */
header {
  background: var(--primary);
  border-bottom: 2.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: auto;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 69px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.07rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  transition: color 0.17s, border-bottom-color 0.19s;
  padding: 7px 0;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}
header img {
  height: 36px;
  width: auto;
}

header .cta-btn {
  margin-left: 18px;
  font-size: 1rem;
  padding: 10px 30px;
}

/* --- Footer --- */
footer {
  background: #171731;
  border-top: 2.5px solid var(--border);
  padding: 32px 0 20px 0;
  margin-top: 70px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}
footer nav a {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
footer nav a:hover { color: var(--secondary); }
footer a img {
  width: 38px;
  height: auto;
  margin-bottom: 8px;
}
footer address {
  color: #C9CAEE;
  font-size: 0.96rem;
  font-style: normal;
  line-height: 1.7;
}
footer address a {
  color: var(--secondary);
  text-decoration: underline;
}
footer address a:hover {
  color: var(--accent);
}

/* --- FAQ Accordion (Support Page) --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px 0 20px 0;
}
.faq-accordion > div {
  background: var(--grey);
  border-radius: 9px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
}
.faq-accordion strong {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
}

/* --- Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 9px;
  font-size: 2.1rem;
  padding: 6px 18px;
  margin-right: 6px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 17px;
  right: 24px;
  z-index: 210;
  transition: background 0.17s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15,17,37,0.97);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.87,-0.41,.19,1.44);
  z-index: 310;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 19px 19px 0 0;
  font-size: 2rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 320;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: var(--accent);
  color: #0F1125;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 40px 0 0 28px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom-color 0.17s;
  display: inline-block;
}
.mobile-nav a:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 501;
  background: var(--grey);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--body);
  box-shadow: 0 -2px 22px 0 rgba(90,70,214,0.15);
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  border-top: 3px solid var(--accent);
  animation: banner-slide-in 0.44s cubic-bezier(.87,-0.41,.19,1.44);
}
@keyframes banner-slide-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}
.cookie-banner button {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  transition: background 0.13s, color 0.16s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: #0F1125;
}
.cookie-banner .accept:hover,.cookie-banner .accept:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .reject {
  background: #23243d;
  color: var(--accent);
}
.cookie-banner .reject:hover,.cookie-banner .reject:focus {
  background: #23243d;
  color: var(--secondary);
}
.cookie-banner .settings {
  background: #23243d;
  color: #fff;
  text-decoration: underline;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  color: var(--accent);
}

/* --- Cookie Consent Modal --- */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,17,37,0.88);
  z-index: 510;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.24s cubic-bezier(.87,-0.41,.19,1.44);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--grey);
  color: var(--white);
  border-radius: 14px;
  padding: 36px 24px 28px 24px;
  min-width: 300px;
  max-width: 98vw;
  box-shadow: 0 4px 48px 0 rgba(46,217,252,0.23);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 520;
}
.cookie-modal h2 {
  font-family: var(--display);
  color: var(--accent);
  font-size: 1.36rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-weight: 500;
  color: var(--accent);
  font-size: 1.07rem;
  padding-left: 6px;
}
.cookie-modal input[type='checkbox'] {
  accent-color: var(--accent);
  width: 20px; height: 20px;
  margin-right: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}
.cookie-modal .close-modal {
  background: var(--secondary);
  color: #fff;
  border-radius: 8px;
  font-size: 1.03rem;
  padding: 7px 16px;
  border: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 500;
}
.cookie-modal .close-modal:hover { background: var(--accent); color: #0F1125; }

/* --- Responsive Styles (Mobile First) --- */
@media (max-width: 1023px) {
  .container, footer .container {
    max-width: 94vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .tool-list, .team-grid, .content-grid, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .market-preview, .card-container, .timeline, .values-list { flex-direction: column; gap: 16px; }
  .market-ticker { gap: 11px; }
  .step-list { flex-direction: column; gap: 14px; }
}
@media (max-width: 768px) {
  h1, .hero-section h1 { font-size: 1.65rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.1rem; }

  .hero-section {
    padding: 38px 0 28px 0;
    border-radius: 0 0 27px 0;
    margin-bottom: 29px;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 6px;
  }
  .feature-grid, .tool-list, .content-grid, .timeline, .values-list, .testimonial-slider { gap: 14px; }

  header .container {
    padding: 0 4px 0 9px;
    min-height: 56px;
  }
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu-close {
    margin: 12px 16px 0 0;
    width: 36px; height: 36px; font-size: 1.5rem;
  }
  .mobile-nav {
    margin-left: 15px;
    gap: 15px;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .hero-section { border-radius: 0 0 15px 0; }
  .section { padding: 10px 1vw; }
  .policy-section, .feature-grid > li, .tool-list > li, .team-member, .values-list > li, .step-list > li {
    padding: 12px 7px;
  }
  .market-preview { padding: 11px 6px; }
}

/* --- Micro-Interactions & Misc --- */
.card, .feature-grid > li, .values-list > li, .team-member {
  transition: box-shadow 0.16s, border-color 0.14s, transform 0.13s;
}
.card:active, .feature-grid > li:active, .values-list > li:active, .team-member:active {
  transform: scale(0.98);
}
.cta-btn:active { transform: scale(0.96); }

::-webkit-scrollbar {
  width: 12px;
  background: #222341;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}

/* -- Hide outline on mouse, show on keyboard navigation (basic a11y) -- */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Extra: Prevent elements overlapping on narrow screens */
* { min-width: 0; }


