/* Portföy Oyunu web — Riviera in Inter only (no serif, no italics).
   Layout: one centered column; the hero is the app's own Portföy screen in a phone,
   features sit flat on the page, only documents get a white card. */
:root {
  --page: #f7f7f8;
  --surface: #ffffff;
  --subtle: #f4f4f5;
  --muted-bg: #ececee;
  --border: #e8e8eb;
  --border-strong: #dcdce0;
  --text: #18181b;
  --text-2: #52525b;
  --muted: #71717a;
  --accent: #2b5bf5;
  --chart-blue: #1240ff;
  --chart-empty: #efeff1;
  --success: #16a34a;
  --success-text: #15803d;
  --danger: #e5484d;
  --danger-text: #c62828;
  --pill: #18181b;
  --on-pill: #ffffff;
  --phone-rim: #1c1c1f;
  --glow: rgba(43, 91, 245, 0.10);
  --shadow-float: 0 10px 30px -10px rgba(16, 16, 20, 0.18);
  --shadow-phone: 0 50px 100px -30px rgba(16, 16, 20, 0.35);

  --font: Inter, system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f0f11; --surface: #141416; --subtle: #1c1c1f; --muted-bg: #26262a; --border: #2a2a2e; --border-strong: #3a3a3f;
    --text: #f4f4f5; --text-2: #b4b4bb; --muted: #8e8e96; --accent: #4c76ff; --chart-blue: #4c76ff; --chart-empty: #232327;
    --success: #22c55e; --success-text: #4ade80; --danger: #f2555a; --danger-text: #ff8a8a;
    --pill: #f4f4f5; --on-pill: #141416; --phone-rim: #2c2c30; --glow: rgba(76, 118, 255, 0.14);
    --shadow-float: 0 10px 30px -10px rgba(0, 0, 0, 0.7); --shadow-phone: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0f0f11; --surface: #141416; --subtle: #1c1c1f; --muted-bg: #26262a; --border: #2a2a2e; --border-strong: #3a3a3f;
  --text: #f4f4f5; --text-2: #b4b4bb; --muted: #8e8e96; --accent: #4c76ff; --chart-blue: #4c76ff; --chart-empty: #232327;
  --success: #22c55e; --success-text: #4ade80; --danger: #f2555a; --danger-text: #ff8a8a;
  --pill: #f4f4f5; --on-pill: #141416; --phone-rim: #2c2c30; --glow: rgba(76, 118, 255, 0.14);
  --shadow-float: 0 10px 30px -10px rgba(0, 0, 0, 0.7); --shadow-phone: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.up { color: var(--success-text); }
.down { color: var(--danger-text); }

.wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; padding-block: 12px 40px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 20px; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -0.05em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.04em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: normal; color: var(--muted); }
.lead { font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 32em; margin: 0; }
.lead b { color: var(--text); font-weight: 600; }

.eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: 9999px;
  padding: 4px 14px 4px 5px; font-size: 14px; font-weight: 500; color: var(--text-2); background: var(--surface);
}
.eyebrow img { width: 26px; height: 26px; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: clamp(40px, 8vw, 88px); }
.hero .eyebrow { align-self: center; }
.hero .lead { margin-inline: auto; }
.cta-row { display: flex; justify-content: center; margin-top: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px 0 22px;
  border-radius: 9999px; background: var(--pill); color: var(--on-pill); text-align: left;
}
.pill svg { width: 26px; height: 26px; fill: currentColor; flex: none; margin-top: -3px; }
.pill span { display: flex; flex-direction: column; line-height: 1.1; }
.pill small { font-size: 12px; font-weight: 500; opacity: 0.7; }
.pill strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

/* Stage: phone + floating notifications */
.stage {
  position: relative; width: 100%; display: flex; justify-content: center;
  margin-top: 36px; padding-bottom: 8px;
  background: radial-gradient(closest-side, var(--glow), transparent) center 55% / 900px 640px no-repeat;
}
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 12px 18px 12px 12px; box-shadow: var(--shadow-float);
}
.float img { width: 48px; height: 48px; }
.float b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.float small { font-size: 13px; color: var(--muted); }
.f1 { top: 120px; left: calc(50% - 420px); }
.f2 { top: 360px; right: calc(50% - 440px); }

.phone {
  width: 340px; max-width: 100%; border-radius: 56px; padding: 11px;
  background: var(--phone-rim); box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.screen {
  position: relative; height: 740px; overflow: hidden; border-radius: 46px;
  background: #ffffff; color: #18181b; text-align: left; font-size: 13px; line-height: 1.35;
  font-variant-numeric: tabular-nums;
  /* The app screen keeps its light palette in both page themes so it reads like a screenshot. */
  --s-subtle: #f4f4f5; --s-muted: #ececee; --s-border: #e8e8eb; --s-border-strong: #dcdce0; --s-text-2: #52525b; --s-muted-text: #71717a;
}
.status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 28px 0 32px; font-weight: 600; font-size: 14px; }
.island { width: 96px; height: 28px; border-radius: 20px; background: #000; }
.bat { width: 24px; height: 11px; border-radius: 3px; border: 1.5px solid #18181b; position: relative; }
.bat::after { content: ""; position: absolute; inset: 1.5px 3px 1.5px 1.5px; background: #18181b; border-radius: 1px; }
.appbar { display: flex; align-items: center; gap: 8px; padding: 6px 16px 8px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; flex: 1; }
.logo svg { width: 18px; height: 18px; fill: none; stroke: #18181b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sq { position: relative; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--s-border-strong); display: grid; place-items: center; }
.sq img { width: 21px; height: 21px; }
.sq i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 3px; background: #e5484d; }
.acct { display: flex; align-items: flex-start; gap: 8px; padding: 4px 16px 0; }
.acct div { flex: 1; }
.acct b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.acct small { color: var(--s-muted-text); font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border: 1px solid var(--s-border); border-radius: 4px; font-size: 11px; font-weight: 500; color: #15803d; margin-top: 2px; }
.tag i { width: 6px; height: 6px; border-radius: 3px; background: #16a34a; }

.stat { border-radius: 21px; padding: 4px; background: var(--s-subtle); }
.stat-in { border-radius: 16px; border: 1px solid var(--s-border); background: #fff; padding: 14px 16px; }
.screen > .stat { margin: 14px 12px 0; }
.head { display: flex; align-items: center; gap: 8px; height: 26px; color: var(--s-text-2); font-size: 13px; }
.head img { width: 22px; height: 22px; }
.delta { margin-left: auto; display: inline-flex; gap: 3px; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--s-subtle); border: 1px solid var(--s-border); font-size: 11px; font-weight: 500; color: #18181b; }
.big { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; margin-top: 10px; line-height: 1.15; }
.sub { color: var(--s-text-2); font-size: 12px; margin-top: 2px; }
.sub b { font-weight: 500; }
.matrix { display: block; width: 100%; height: auto; margin-top: 14px; }
.matrix .on { fill: #1240ff; }
.matrix .off { fill: #efeff1; }
.seg { display: flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 8px; background: var(--s-subtle); }
.seg span { flex: 1; text-align: center; font-size: 11px; font-weight: 500; padding: 4px 0; border-radius: 6px; color: var(--s-muted-text); }
.seg .on { background: #fff; color: #18181b; box-shadow: 0 1px 2px rgba(16, 16, 20, 0.08); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 12px 0; }
.two .stat-in { padding: 10px 12px; }
.mid { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; margin-top: 6px; }
.chips { display: flex; gap: 8px; padding: 0 16px; margin-top: 14px; overflow: hidden; }
.chips span { flex: none; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--s-border-strong); border-radius: 8px; font-size: 13px; font-weight: 500; }
.chips img { width: 19px; height: 19px; }
.holdings { margin-top: 14px; border-top: 1px solid var(--s-border); padding: 0 16px; }
.hold-title { font-size: 15px; font-weight: 600; padding: 12px 0 4px; }
.h { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--s-border); }
.h b { display: block; font-size: 14px; font-weight: 500; }
.h small { font-size: 11px; color: var(--s-muted-text); }
.h .r { text-align: right; }
.h .r b { font-weight: 600; }
.h .r small.up { color: #15803d; font-weight: 500; }
.h .r small.down { color: #c62828; font-weight: 500; }
.it { width: 32px; height: 32px; border-radius: 6px; background: var(--s-subtle); display: grid; place-items: center; }
.it img { width: 24px; height: 24px; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 18px; border-radius: 21px; padding: 4px; background: rgba(244, 244, 245, 0.8); box-shadow: 0 6px 20px -6px rgba(16, 16, 20, 0.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tabbar-in { display: flex; height: 58px; padding: 0 6px; border-radius: 17px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--s-border); align-items: center; }
.tabbar-in span { flex: 1; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.tabbar-in .on { background: var(--s-muted); }
.tabbar-in img { width: 26px; height: 26px; }

/* Features: flat, no boxes */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--border); }
.features article { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.features img { width: 64px; height: 64px; margin: 0 0 8px -6px; }
.features p { margin: 0; color: var(--text-2); font-size: 15px; }

/* League */
.league { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.league-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.code { display: flex; gap: 8px; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.code span { width: 50px; height: 62px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 0 0 4px var(--subtle); }

/* Documents (privacy, support) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(28px, 6vw, 56px); }
.doc { max-width: 760px; margin: 24px auto 0; width: 100%; }
.doc .card { display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 18px; }
.doc p, .doc ul { margin: 0; color: var(--text-2); max-width: 38em; }
.doc ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.meta { font-size: 14px; color: var(--muted); }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between;
  border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 0 0 4px var(--subtle); padding: 18px 22px; background: var(--surface);
}
.contact .addr { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; }
.btn { font: 500 14px/1 var(--font); height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.btn:hover { background: var(--subtle); }
details { border-top: 1px solid var(--border); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-size: 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin-top: 8px !important; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

a, .btn { transition: color 160ms ease-out, background-color 160ms ease-out; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 980px) {
  .f1 { left: 0; }
  .f2 { right: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .float { display: none; }
  .league { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand .full { display: none; }
}
@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .screen { height: 700px; }
  .code span { width: 42px; height: 54px; font-size: 26px; }
}
