/* RaamTrade home. Brand tokens from the live landing. */
/* Hebrew (2026-11-05): raamtrade.com's own Hebrew face (landing/home.css), served from /fonts as the app's is. Inter
   draws the Latin letters; only Hebrew ones reach Arimo. */
/* Inter from raamtrade.com's own /fonts too, as the live home's sheet (landing/home.css) has it: once this is
   raamtrade.com the page calls no third party, so no Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Arimo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/arimo-hebrew.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
:root {
  --ink: #0b0d0c;
  --white: #fbf8f1;
  --soft: #d9d5cc;
  --muted: #9d9d95;
  --iris: #7357ff;
  --iris-soft: #a697ff;
  --g1: linear-gradient(to bottom, #a78bfa, #6d28d9);
  --g2: linear-gradient(to bottom, #ff7a45, #d946ef);
  --g3: linear-gradient(to bottom, #ffb056, #ff4d2e);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 40px);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 400 17px/1.5 Inter, Arimo, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--iris); color: var(--white); }
:focus-visible { outline: 2px solid var(--iris-soft); outline-offset: 4px; border-radius: 8px; }

/* The light: a WebGL glow that comes from the line, under the 2D line itself. */
#seam, #line { position: fixed; inset: 0; width: 100%; height: 100vh; pointer-events: none; }
#seam { z-index: 0; }
#line { z-index: 1; }
.no-gl #seam { background: radial-gradient(45% 14% at 76% 68vh, rgba(255, 150, 80, .3), rgba(217, 70, 239, .12) 55%, transparent 80%); }
main { position: relative; z-index: 2; }

/* The visitor's own country's site (founder 2026-11-12): one line at the foot of the screen, never a move.
   shared/lang.js adds it on the default version for a visitor from a country with an open version of its own. */
.country-link {
  position: fixed; z-index: 5; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 2 * var(--pad));
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(11, 13, 12, .86); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px rgba(0, 0, 0, .45);
  font-size: 14px; color: var(--soft);
}
.country-link a { color: var(--white); font-weight: 600; white-space: nowrap; }
.country-link a:hover { color: var(--iris-soft); }
.country-link button {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 400 20px/1 Inter, ui-sans-serif, sans-serif; cursor: pointer;
}
.country-link button:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
@media (max-width: 560px) {
  .country-link { left: var(--pad); right: var(--pad); width: auto; max-width: none; transform: none; border-radius: 18px; flex-wrap: wrap; row-gap: 2px; }
  .country-link span:first-child { flex-basis: 100%; }
  .country-link button { position: absolute; top: 6px; right: 6px; }
}

/* Nav */
/* Three columns, the two sides as wide as each other, so the product links stand in the middle of the page whatever
   the sides hold (founder 2026-11-05, of the Hebrew header: "aint ecnterd?"). */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 3;
  height: 56px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  font-size: 13px;
  transition: background .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(11, 13, 12, .72);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  box-shadow: inset 0 -1px rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mark { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-items: end; height: 18px; direction: ltr; }
.mark i { border-radius: 4px; }
.mark i:nth-child(1) { height: 8px; background: var(--g1); }
.mark i:nth-child(2) { height: 16px; background: var(--g2); }
.mark i:nth-child(3) { height: 12px; background: var(--g3); }
.nav .brand { grid-column: 1; justify-self: start; }
.links { grid-column: 2; display: flex; gap: 32px; }
.links a, .login { color: var(--muted); transition: color .3s; }
.links a:hover, .links a.on, .login:hover { color: var(--white); }
.actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 20px; }
.nav a { white-space: nowrap; }
/* A laptop narrower than a desk: the same header, closer set, so every word keeps to its line. */
@media (max-width: 1100px) { .links { gap: 22px; } .actions { gap: 14px; } }
/* The language picker (raamtrade.com's, 2026-11-05): one link to the same page in the other language, named in its own
   script, with a globe. A phone shows the short name. */
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .3s; }
.lang:hover { color: var(--white); }
.lang svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lang-short { display: none; }

.pill {
  display: inline-flex; align-items: center; height: 48px; padding: 0 26px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
}
.pill:hover { box-shadow: 0 0 0 6px rgba(251, 248, 241, .1), 0 16px 48px -12px rgba(255, 122, 69, .55); }
.pill.small { height: 32px; padding: 0 14px; font-size: 13px; }

/* Screens */
section {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 22vh var(--pad) 0; text-align: center;
}
h1, h2 { font-weight: 600; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(2.75rem, min(10.5vw, 15vh), 8.5rem); }
h2 { font-size: clamp(3rem, min(9vw, 13vh), 7.5rem); }
.l { display: block; }
/* The gradient paints only inside the box: the padding reaches the descenders (the g of "trading"), the margin keeps the layout. */
.grad {
  display: inline-block; padding-bottom: .2em; margin-bottom: -.14em;
  background: linear-gradient(90deg, #a78bfa, #d946ef 42%, #ff7a45 76%, #ffb056);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero { padding-top: max(18vh, 96px); }
.hero .pill { margin-top: clamp(28px, 5vh, 48px); }
/* The price line under the hero button (founder 2026-11-01: "$0 forever, no credit card needed", reworded). */
.hero .free { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: -.005em; }
/* The line under the hero: manual trading too (founder 2026-11-17). */
.hero .sub { margin-top: clamp(14px, 2.4vh, 22px); color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; letter-spacing: -.01em; }
.door { justify-content: center; padding: 80px var(--pad) 56px; }
.door > h2 { font-size: clamp(3rem, min(8.5vw, 11vh), 6.5rem); }
.door > p {
  margin-top: .35em; color: var(--soft);
  font-size: clamp(1.25rem, min(2.6vw, 3.8vh), 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.15;
}
.more { margin-top: 22px; color: var(--iris-soft); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
/* A door with two ways on: its page, and RaamTrade where the visitor already is (RaamAI's door: ChatGPT). */
.mores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 22px; }
.mores > .more { margin-top: 0; }
.close .pill { margin-top: 40px; }
.risk { margin-top: 22px; max-width: 44ch; font-size: 12px; color: var(--muted); }

/* Product scenes: the shipped product's light UI, built in CSS, demo data. The line runs behind them. */
.scene { width: 100%; max-width: 520px; margin-top: clamp(28px, 5vh, 52px); }
#raamcode .scene { max-width: 500px; }
#raamagentic .scene { max-width: 480px; }
/* RaamAI's film (founder 2026-11-02): the app's screen and its chat, as big as the page allows ("The Chart needs to be
   bigger"). The picture lies on the chat; the label says what the scene is. */
#raamai .scene { position: relative; max-width: 1280px; }
/* Under every scene's card (founder 2026-11-06: «לדוגמא בלבד» under every strategy; 2026-11-22: "לדוגמה בלבד in every
   section in the home page"). */
.scene > .example { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.card {
  --tx: #0b0d0c; --tx2: #2a2d2b; --mu: #6b6f69; --ln: rgba(11, 13, 12, .08); --ok: #0c7a61; --vi: #5b4ac5;
  overflow: hidden; text-align: left;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 30px 90px -20px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(251, 248, 241, .35);
  font-size: 13px; line-height: 1.45; color: var(--tx);
}
.bar {
  height: 40px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--ln); background: #f4f0e7;
  font-size: 12px; color: var(--mu);
}
.bar em { font-style: normal; color: var(--vi); }
.who { display: flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 500; }
.orb { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(from 200deg, #a78bfa, #d946ef, #ff7a45, #ffb056, #a78bfa); }
.live { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 500; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rv .live i { animation: ring 2s var(--ease) infinite; }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(15, 138, 110, .45); } to { box-shadow: 0 0 0 7px rgba(15, 138, 110, 0); } }

/* RaamExecute: one live log, every source, each order with the account it went to. */
.accts, .accts i, .events em { display: flex; align-items: center; }
.accts { gap: 8px; }
.accts i img, .events img { width: 16px; height: 16px; border-radius: 4px; }
.accts i img { box-shadow: 0 0 0 1.5px #f4f0e7; }
.accts i img + img { margin-inline-start: -3px; transition: margin .45s var(--ease); }
/* More brokers (founder 2026-10-31): your four, then a link to every broker on /brokers. Near it the four part a
   little and the words turn the card's violet, as "Learn more" does; no window opens. */
.accts { color: var(--mu); transition: color .3s; }
.accts:hover, .accts:focus-visible { color: var(--vi); }
.accts:hover { text-decoration: underline; text-underline-offset: 4px; }
.accts:hover i img + img, .accts:focus-visible i img + img { margin-inline-start: 3px; }
.events em { gap: 6px; font-style: normal; }
.events small { color: var(--mu); font: 12px var(--mono); }
.events { padding: 4px 0; list-style: none; }
.events li {
  display: grid; grid-template-columns: 96px 1fr auto auto; align-items: center; gap: 12px;
  height: 46px; padding: 0 16px; border-bottom: 1px solid var(--ln);
}
.events li:last-child { border-bottom: 0; }
.events b { font-size: 12px; font-weight: 600; }
.events span { overflow: hidden; color: var(--tx); white-space: nowrap; text-overflow: ellipsis; }
.events time { color: var(--mu); font: 12px var(--mono); }
.events .new { animation: drop .8s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
/* The two ways in (the launch site): RaamCode and webhooks. */
.s0 { color: var(--vi); }
.s1 { color: #c2410c; }

/* RaamCode */
.code .bar span { font-family: var(--mono); }
.src { padding: 14px 0 16px; font: 13px/1.75 var(--mono); color: var(--tx2); }
.ln { padding: 0 18px; white-space: pre; }
.kw { color: var(--vi); }
.ty { color: #c2410c; }
.num { color: #0f766e; }
.cm { color: #6e6e67; font-style: italic; }
/* The branch that just ran, in its side's colour and with the app's own BUY / SELL chip, as a light surface draws it:
   the hue at 10% for the body, at 35% for its edge, the side's dark ink (founder 2026-09-15). */
.hit { --hue: 69, 165, 87; --ink: #297a3a; transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.hit.sell { --hue: 218, 47, 53; --ink: #cb2a2f; }
.hit .ln:first-child { position: relative; }
.hit .ln:first-child::after {
  content: "BUY"; position: absolute; top: 50%; right: 16px; margin-top: -9px;
  min-width: 34px; height: 18px; padding: 0 9px; border-radius: 4px; box-sizing: border-box;
  background: linear-gradient(rgba(var(--hue), .1), rgba(var(--hue), .1)), var(--white);
  box-shadow: inset 0 0 0 1px rgba(var(--hue), .35);
  font: 700 11px/18px Inter, ui-sans-serif, sans-serif; color: var(--ink); text-align: center;
  font-style: normal; text-indent: 0; white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.hit.sell .ln:first-child::after { content: "SELL"; }
.hit.on { background-color: rgba(var(--hue), .08); box-shadow: inset 2px 0 rgb(var(--hue)); }
.hit.on .ln:first-child::after { opacity: 1; transform: none; }
.status { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--ln); font-size: 12px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status b { color: var(--tx); font-weight: 500; }
.status small { color: var(--mu); font-size: 12px; }
.code .wait { display: none; }
.rv .code .ln {
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s var(--ease) calc(var(--n) * 80ms), transform .5s var(--ease) calc(var(--n) * 80ms);
}
.rv .code.typing .ln { opacity: 1; transform: none; }
.rv .code:not(.done) .wait { display: inline; }
.rv .code:not(.done) .ok, .rv .code:not(.done) .status small { display: none; }
.rv .code:not(.done) .status i { background: var(--mu); }

/* RaamAgentic: your rules, what it sees, and what it just did. */
.rules { padding: 10px 16px 8px; list-style: none; counter-reset: rule; }
.rules li {
  counter-increment: rule; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: baseline;
  margin: 0 -8px; padding: 7px 8px; border-radius: 10px; color: var(--tx2); transition: background .5s, color .5s;
}
.rules li::before {
  content: counter(rule); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(11, 13, 12, .06); font: 600 11px/1 var(--mono); color: var(--mu); transition: background .5s, color .5s;
}
.rules li.on { background: rgba(115, 87, 255, .08); color: var(--tx); }
.rules li.on::before { background: var(--vi); color: #fff; }
/* Its journal: the app's own, framed (/embed/agent-journal.html). */
.journal { position: relative; height: 172px; border-top: 1px solid var(--ln); }
.journal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }

/* RaamAI: the app's own thread beside four board panes, at full size (/embed/raamai.html), with three ready-made
   questions to press. The frame keeps its place while the scene loads. */
#raamai .frame { position: relative; height: clamp(560px, 74vh, 680px); background: #fff; }
#raamai .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The page of a notebook, lying on RaamAI's chat (its column is the frame's last 340px) as a photo lies on a desk.
   Pressed, it goes into the chat (`--fly`, set by main.js toward where his turn appears) and the film plays. */
#raamai .picture {
  position: absolute; z-index: 3; right: 62px; top: 92px; width: 216px;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  transform: rotate(4deg);
  transition: transform .45s var(--ease), opacity .3s ease;
}
#raamai .picture img {
  display: block; width: 100%; height: auto; border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 4px 10px rgba(0, 0, 0, .14), 0 22px 44px -14px rgba(0, 0, 0, .5);
}
#raamai .picture .send {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) rotate(-4deg);
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--iris); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  box-shadow: 0 10px 26px -10px rgba(115, 87, 255, .9);
}
#raamai .picture:hover { transform: rotate(2deg) translateY(-4px) scale(1.02); }
#raamai .picture.sent {
  transform: var(--fly, scale(.3)); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease), opacity .25s ease .38s;
}
#raamai .note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* Motion: the hero arrives on its own, each screen as it is reached. */
.hero .w, .hero .grad { display: inline-block; animation: rise 1.3s var(--ease) both; }
.hero .w { animation-delay: calc(.2s + var(--i) * .1s); }
.hero .grad { animation-name: lift; animation-delay: .8s; }
.hero .sub { animation: fade 1.2s var(--ease) 1.15s both; }
.hero .pill { animation: fade 1.2s var(--ease) 1.3s both; }
.hero .free { animation: fade 1.2s var(--ease) 1.45s both; }
@keyframes rise { from { opacity: 0; filter: blur(14px); transform: translateY(.25em); } }
@keyframes lift { from { opacity: 0; transform: translateY(.25em); } }
@keyframes fade { from { opacity: 0; } }

.rv .door > *, .rv .close > :not(.pill) {
  opacity: 0; transform: translateY(28px); filter: blur(10px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.rv .close > .pill { opacity: 0; transition: opacity 1.2s var(--ease) .2s, transform .6s var(--ease), box-shadow .5s var(--ease); }
.rv .in > :not(.pill) { opacity: 1; transform: none; filter: none; }
.rv .in > .pill { opacity: 1; }
.rv .in > :nth-child(2):not(.pill) { transition-delay: .12s; }
.rv .in > :nth-child(3) { transition-delay: .24s; }
.rv .in > :nth-child(4) { transition-delay: .36s; }

/* Footer (founder 2026-11-18): the not-a-broker line, the page's demo line, the company, the contact email, the legal
   documents. */
.foot {
  position: relative; z-index: 2; background: var(--ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  padding: 40px var(--pad) 48px;
  font-size: 12px; line-height: 1.6; color: var(--muted);
}
.foot > * { max-width: 980px; margin-inline: auto; }
.foot p + p { margin-top: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.foot a { transition: color .3s; }
.foot a:hover { color: var(--white); }
.foot .company { margin-top: 14px; }
/* The company's name in the other language, under it, on the page's side (its own direction would send it across). */
.foot .company span { display: block; text-align: left; }
[dir="rtl"] .foot .company span { text-align: right; }

/* Right to left (the Hebrew pages, 2026-11-05). Hebrew needs looser letters than Inter's tight display setting, and a
   little more line. Code reads left to right in any language, so the lines of RaamCode keep their direction; the
   cards around them turn. */
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: -.02em; line-height: 1.06; }
[dir="rtl"] h1 { font-size: clamp(2.25rem, min(10.5vw, 15vh), 8.5rem); }
[dir="rtl"] .door > p { letter-spacing: -.01em; }
/* The small line over a heading is spaced capitals in English; Hebrew has no capitals and spaced letters break its
   words, so it is the page's sans, close set. */
[dir="rtl"] .eyebrow, [dir="rtl"] .door > p.eyebrow { font-family: Inter, Arimo, ui-sans-serif, sans-serif; font-size: 13px; letter-spacing: .01em; }
[dir="rtl"] .card { text-align: right; }
[dir="rtl"] .src, [dir="rtl"] .code .bar span { direction: ltr; text-align: left; }
[dir="rtl"] .hit .ln:first-child::after { content: "קנייה"; }
[dir="rtl"] .hit.sell .ln:first-child::after { content: "מכירה"; }

@media (max-width: 860px) {
  /* No links in the middle here: the name and the actions take the two ends. */
  .nav { display: flex; justify-content: space-between; }
  .links { display: none; }
  /* The film stacks here (its frame is 791px or less): the screen on top, the chat under it, and the picture on the
     chat. */
  #raamai .frame { height: 720px; }
  #raamai .picture { right: auto; left: 50%; top: 470px; width: 176px; margin-left: -88px; }
}
@media (max-width: 560px) {
  .card { font-size: 12px; }
  .src { font-size: 11.5px; }
  /* A line too long for a phone wraps, and its rest hangs under it like Python's continuation. */
  .ln { padding: 0 14px 0 calc(14px + 14ch); text-indent: -14ch; white-space: pre-wrap; }
  .events li { grid-template-columns: 84px 1fr auto auto; gap: 8px; padding: 0 12px; }
  .events small { display: none; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  #raamai .picture { width: 150px; margin-left: -75px; }
}
@media (max-width: 360px) { .login { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #raamai .picture, #raamai .picture.sent { transition: none; }
  .hero .w, .hero .grad, .hero .sub, .hero .pill { animation: none; }
}
