/* eFinance — IT services for automated trading */
:root {
  --navy: #0a1628;
  --navy-2: #10203a;
  --navy-3: #182b4a;
  --teal: #19c6a6;
  --teal-2: #12a88c;
  --amber: #f3b64a;
  --ink: #16202e;
  --muted: #5f6c7d;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(10, 22, 40, 0.10);
  --max: 1140px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-2); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--teal-2); margin-bottom: .75rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: .95rem; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo em { font-style: normal; color: var(--teal-2); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-2); }
.nav-cta { display: flex; gap: .75rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(25,198,166,.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--teal); }
.hero p.lead { font-size: 1.15rem; max-width: 560px; color: rgba(255,255,255,.82); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.stat strong { display: block; font-size: 1.6rem; color: var(--amber); }
.stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Terminal card in hero */
.terminal {
  background: #061021; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: var(--shadow); font-family: var(--mono); font-size: .8rem; color: #cfe3dd; overflow: hidden;
}
.terminal-bar { display: flex; gap: 6px; padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334; display: inline-block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; } .terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal pre { margin: 0; padding: 1rem 1.1rem; line-height: 1.7; white-space: pre-wrap; }
.terminal .ok { color: var(--teal); } .terminal .warn { color: var(--amber); } .terminal .dim { color: #7b8ba3; }

/* Sections */
section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 660px; margin-bottom: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(25,198,166,.14); color: var(--teal-2); margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); flex: 1; }
.card ul { padding-left: 1.1rem; color: var(--muted); margin: 0 0 1rem; font-size: .93rem; }
.card a.more { font-weight: 600; text-decoration: none; }
.card-dark { background: var(--navy-2); border-color: rgba(255,255,255,.1); }
.card-dark p, .card-dark ul { color: rgba(255,255,255,.75); }
.card-dark:hover { box-shadow: none; border-color: rgba(25,198,166,.5); }

/* Logos / integrations */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 500; color: var(--navy); }
.section-dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }

/* Steps */
.step { position: relative; padding-left: 4rem; }
.step b { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: var(--teal); font-weight: 700; display: grid; place-items: center; font-family: var(--mono); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-2); font-weight: 700; }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.quote p { font-style: italic; }
.quote footer { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band .inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.help { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .85rem; }
.consent input { width: auto; margin-top: .3rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-2); }
details[open] summary::after { content: "–"; }
details p { margin-top: .75rem; color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 4rem 0 3rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 620px; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.25rem; }

/* Plans table */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .8rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--navy); font-weight: 700; }

/* Footer */
.footer { background: #061021; color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.5); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 1rem 16px 1.5rem; gap: 1rem; border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .table { font-size: .85rem; }
}
