/* Ogifolio landing page (ogifolio.com). Self-contained: the app's style.css is not loaded here. */
:root {
  --bg: #0d1017; --bg2: #11151e; --panel: #161b26; --line: #232a38; --text: #e6e8ee; --muted: #8a91a2;
  --accent: #3d7bff; --accent2: #7c4dff; --up: #26a69a; --down: #ef5350;
  --radius: 16px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8fb; --bg2: #eef1f6; --panel: #ffffff; --line: #e1e5ee; --text: #151a26; --muted: #5d6578;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
.up { color: var(--up); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 20px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn.ghost { border-color: var(--line); color: var(--text); padding: 8px 16px; font-size: 14px; }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; }
.brand b { color: var(--accent); font-weight: 700; }
.brand.small { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.lang:hover { color: var(--text); background: var(--panel); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.glow { position: absolute; inset: -200px -10% auto; height: 640px; pointer-events: none;
  background: radial-gradient(ellipse 45% 55% at 30% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
              radial-gradient(ellipse 40% 50% at 75% 30%, color-mix(in srgb, var(--accent2) 18%, transparent), transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 80%, transparent); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 25%, transparent); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 750; margin: 20px 0 18px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2) 60%, #d946ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.join input { flex: 1 1 240px; min-width: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; }
.join input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.join-msg { flex-basis: 100%; margin: 2px 0 0; min-height: 22px; font-size: 14px; color: var(--muted); }
.join-msg.ok { color: var(--up); }
.join-msg.err { color: var(--down); }
.fine { font-size: 13px; color: var(--muted); margin: 6px 0 0; max-width: 520px; }
.fine a { color: var(--accent); font-weight: 600; }
.fine a:hover { text-decoration: underline; }

/* ---------- product mock ---------- */
.mock { position: relative; margin: 0; padding: 10px 0 96px; }
.mock-win { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mc { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.mc span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc small { font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; padding: 0 14px 16px; align-items: center; }
.mock-chart { width: 100%; height: 140px; }
.mock-alloc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.mock-alloc li { display: flex; align-items: center; gap: 8px; }
.mock-alloc i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mock-alloc .c1 { background: #f0b90b; } .mock-alloc .c2 { background: #e0a030; } .mock-alloc .c3 { background: #26a69a; } .mock-alloc .c4 { background: #7c4dff; }
.mock-alloc b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.mock-chat { position: absolute; left: -28px; bottom: 22px; width: min(320px, 80%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); font-size: 13px; }
.mock-chat p { margin: 0; }
.mock-chat .q { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; padding: 7px 11px; border-radius: 12px 12px 4px 12px; margin: 0 0 8px auto; width: fit-content; max-width: 90%; }
.mock-chat .a { display: flex; gap: 8px; color: var(--text); }
.spark { color: var(--accent2); }
.mock-toast { position: absolute; right: -12px; top: -6px; display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--down); border-radius: 12px; padding: 9px 13px; font-size: 13px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.mock figcaption { position: absolute; right: 0; bottom: 30px; font-size: 11px; color: var(--muted); }

/* ---------- markets ---------- */
.markets { padding: 32px 0 8px; text-align: center; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.markets .kicker { color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 14px; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 720; max-width: 640px; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-2px); }
.feat h3 { font-size: 18px; margin: 16px 0 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; }
.steps h3 { font-size: 18px; margin: 16px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta { padding: 40px 0 96px; }
.cta-in { text-align: center; display: grid; justify-items: center; padding: 56px 24px; border-radius: 24px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), var(--panel); }
.cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 720; }
.cta p { color: var(--muted); margin: 12px 0 24px; }
.cta .join { width: 100%; justify-content: center; }
.cta .join-msg { text-align: center; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-in p { margin: 0; flex: 1; min-width: 240px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .mock { max-width: 560px; margin: 0 auto; width: 100%; }
  .mock-win { transform: none; }
  .mock-chat { left: 8px; }
  .mock-toast { right: 8px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-in { gap: 12px; }
  .hero { padding-top: 44px; }
  .lead { font-size: 16px; }
  .join .btn { flex: 1 1 100%; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .mock-cards { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-alloc { grid-template-columns: 1fr 1fr; }
  .mock-chat { position: relative; left: auto; bottom: auto; width: auto; margin: 12px 0 0; }
  .mock-toast { position: relative; right: auto; top: auto; margin-bottom: 12px; width: fit-content; }
  .mock { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
