/* AMS Trading Group, 2026 refresh. No external fonts, no trackers. */
:root {
  --bg: #0d0f14;
  --bg-2: #13161d;
  --bg-3: #1a1e27;
  --line: #262b36;
  --text: #e8ebf1;
  --muted: #9aa3b2;
  --faint: #6c7586;
  --blue: #4895f5;
  --blue-2: #2f7de6;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center .actions { justify-content: center; }
.small { font-size: .875rem; color: var(--faint); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--blue); margin-bottom: .9em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lede, .phead .lede { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.ic { width: 1em; height: 1em; vertical-align: -.12em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .85em 1.35em; border-radius: 10px; font-weight: 600; font-size: 1rem; line-height: 1; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(72,149,245,.7); }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: #3a4150; background: rgba(255,255,255,.05); }
.btn-sm { padding: .6em 1em; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13,15,20,.82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(38,43,54,.7); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.login { color: var(--muted); font-size: .92rem; }
.login:hover { color: var(--text); text-decoration: none; }
.menu-toggle, .menu-btn { display: none; }

/* Hero */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; opacity: .16; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(72,149,245,.18), transparent 70%), linear-gradient(180deg, transparent 60%, var(--bg)); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); display: block; }
.hero-shot { margin: 0; }
.hero-shot img { border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }

/* Page header */
.phead { position: relative; padding: 84px 0 60px; text-align: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.phead.has-bg::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; opacity: .14; }
.phead::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(72,149,245,.16), transparent 70%); }
.phead > .wrap { position: relative; z-index: 1; }

/* Sections */
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head p:not(.kicker) { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.rev > figure { order: 2; }
.split figure, .gallery figure { margin: 0; }
.split p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45em; }
.card .was { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }

.ticks { list-style: none; padding: 0; margin: 1.4em 0 1.8em; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: rgba(72,149,245,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234895f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks strong { display: block; color: var(--text); }
.ticks span { color: var(--muted); font-size: .95rem; }

.tweets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.tweet { margin: 0; background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
.tweet img { border-radius: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.gallery figcaption { font-size: .88rem; color: var(--faint); margin-top: 10px; text-align: center; }
.legacy { display: flex; gap: 28px; align-items: center; margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.legacy > img { width: 160px; border-radius: 8px; }
.legacy p { color: var(--muted); }
.logo-strip { width: 150px; opacity: .8; }

.band { position: relative; padding: 96px 0; overflow: hidden; border-top: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; opacity: .12; }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 100%, rgba(72,149,245,.22), transparent 70%); }
.band > .wrap { position: relative; z-index: 1; }
.band p { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--bg-3); font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.map td:first-child { color: var(--faint); white-space: nowrap; }
.map td:nth-child(2) { color: var(--text); font-weight: 600; white-space: nowrap; }
.map td:last-child { color: var(--muted); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.price-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.price-card.featured { border-color: rgba(72,149,245,.5); box-shadow: 0 0 0 1px rgba(72,149,245,.2), 0 30px 60px -30px rgba(72,149,245,.4); }
.price-card p { color: var(--muted); }
.price-card h3 { margin-top: 1.2em; }

.steps { padding-left: 1.2em; display: grid; gap: 12px; margin: 1em 0 2em; color: var(--muted); }
.steps strong { color: var(--text); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details div { color: var(--muted); padding-bottom: 14px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-grid a { font-weight: 600; display: inline-block; margin-top: 14px; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.post-card:hover { text-decoration: none; border-color: #3a4150; transform: translateY(-2px); }
.post-card > div:last-child { padding: 22px; }
.post-card time { font-size: .82rem; color: var(--faint); }
.post-card h3 { margin: .4em 0 .5em; font-size: 1.1rem; }
.post-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Articles */
.article { padding: 64px 0 40px; }
.art-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.meta, .back { color: var(--faint); font-size: .9rem; }
.back a { color: var(--muted); }
.prose { font-size: 1.06rem; color: #cfd5df; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 1.8em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose img { border-radius: 10px; margin: 1.4em auto; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0 auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--muted); font-style: italic; }
.prose table { margin: 1.4em 0; border: 1px solid var(--line); display: block; overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .embed { position: relative; aspect-ratio: 16/9; margin: 1.6em 0; }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.attach img { margin: 0 auto; }
.inline-cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin: 56px 0 24px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid rgba(72,149,245,.35); background: linear-gradient(135deg, rgba(72,149,245,.12), rgba(72,149,245,.02)); }
.inline-cta p { margin: .2em 0 0; color: var(--muted); font-size: .95rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #0a0c10; padding: 64px 0 32px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 1em; }
.foot a { display: block; color: var(--muted); margin-bottom: .55em; }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot-brand img { width: 120px; margin-bottom: 16px; }
.foot-brand p { color: var(--faint); max-width: 340px; }
.social { display: flex; gap: 16px; }
.social a { display: inline; }
.fine { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .8rem; }
.fine p { margin: 0 0 .5em; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid, .split, .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > figure { order: 0; }
  .cards, .posts, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tweets { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .top-in { gap: 12px; }
  .menu-btn { display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer; order: 3; margin-left: 4px; }
  .menu-btn span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .top-actions { margin-left: auto; }
  .login { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero { padding: 56px 0 64px; }
  .sec { padding: 64px 0; }
  .phead { padding: 60px 0 44px; }
  .cards, .posts, .contact-grid, .tweets { grid-template-columns: 1fr; }
  .tweets { max-width: 400px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .legacy, .inline-cta { flex-direction: column; align-items: flex-start; }
  .map thead { display: none; }
  .map, .map tbody, .map tr, .map td { display: block; width: 100%; }
  .map tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .map tr:last-child { border-bottom: 0; }
  .map td { padding: 0; border: 0; white-space: normal !important; }
  .map td:first-child { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
  .map td:first-child::before { content: "Was: "; }
  .map td:nth-child(2) { font-size: 1.05rem; margin: 2px 0 6px; }
  .actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
