
:root {
  --bg: #f3faf6; --bg2: #f7fbf9; --card: #ffffff; --card2: #eef6f2; --line: #e1eae5;
  --text: #0f1b2d; --muted: #4b5868; --dim: #7a8796;
  --violet: #0e9f6e; --pink: #12b886; --green: #0e9f6e; --amber: #d97706; --red: #dc2626;
  --accent: #0e9f6e; --accent-d: #0b8a5f;
  --grad: linear-gradient(120deg, #0e9f6e 0%, #12b886 100%);
  color-scheme: light;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #ffffff 0%, #f4fbf7 38%, #eaf7f0 100%) fixed; background-color: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.grad-text { color: var(--accent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(15,27,45,.06); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-decoration: none; font-size: 18px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; font-size: 15px; color: #fff; box-shadow: 0 6px 20px rgba(14,159,110,.3); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } }
.logo { white-space: nowrap; }
@media (max-width: 600px) {
  .nav .wrap { gap: 10px; }
  .nav-right { gap: 6px; }
  .nav-right .hide-sm { display: none; }
}
/* account menu (top right) */
.acct, .acct[open] { position: relative; background: none; border: 0; padding: 0; margin: 0; border-radius: 0; }
.acct > summary::after, .acct[open] > summary::after { content: none; }
.acct > summary { list-style: none; cursor: pointer; display: block; border-radius: 999px; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.acct-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(15,27,45,.14); }
.acct-email { padding: 8px 10px 10px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; font: inherit; font-size: 14px; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--card2); }
.acct-menu form { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 15px/1 inherit; padding: 12px 18px; border-radius: 12px; text-decoration: none; transition: transform .12s, opacity .12s, background .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 28px rgba(14,159,110,.28); }
.btn-primary:hover { background: var(--accent-d); }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 24px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 640px;
  background: radial-gradient(closest-side, rgba(14,159,110,.16), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(52,211,153,.14), transparent 70%);
  filter: blur(20px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(14,159,110,.08); border: 1px solid rgba(14,159,110,.28); color: #0b8a5f; font-size: 13px; font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1.hero-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 18px; font-weight: 800; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--dim); }

/* chat mock */
.chat { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 30px 80px rgba(15,27,45,.12); }
.chat-top { display: flex; gap: 6px; margin-bottom: 14px; } .chat-top i { width: 10px; height: 10px; border-radius: 50%; background: #d6e2dc; }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 10px; }
.msg.user { background: #eef6f2; margin-left: 36px; }
.msg.ai { background: transparent; border: 1px solid var(--line); }
.tool { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); background: #f5faf7; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.tool b { color: var(--text); font-weight: 600; }
.tool .ok { margin-left: auto; color: var(--green); font-weight: 700; }
.mock-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mock-media div { aspect-ratio: 9/16; border-radius: 10px; position: relative; overflow: hidden; }
.mock-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mock-media div::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 18px; }

/* sections */
section.block { padding: 84px 0; border-top: 1px solid rgba(15,27,45,.05); }
.eyebrow { color: #0e9f6e; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h2.title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.1; margin: 10px 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(15,27,45,.04), 0 8px 24px rgba(15,27,45,.04); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.step-n { width: 34px; height: 34px; border-radius: 10px; background: rgba(14,159,110,.1); color: #0b8a5f; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.icon { font-size: 26px; margin-bottom: 10px; }
.model { display: flex; flex-direction: column; gap: 8px; }
.model .tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef6f2; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.model .tag.video { background: rgba(219,39,119,.08); color: #be185d; }
.model .tag.image { background: rgba(14,159,110,.1); color: #0b8a5f; }
.model .tag.edit { background: rgba(37,99,235,.08); color: #1d4ed8; }
.model .tag.voice { background: rgba(217,119,6,.1); color: #b45309; }
.model .price { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--text); font-weight: 600; }

/* pricing */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(14,159,110,.65); box-shadow: 0 0 0 1px rgba(14,159,110,.35), 0 20px 60px rgba(14,159,110,.14); }
.plan .badge { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan .amount { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 0; }
.plan .amount small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan form, .plan .btn { margin-top: auto; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* cta + footer */
.cta-band { text-align: center; padding: 72px 24px; border-radius: 28px; background: radial-gradient(circle at 20% 0%, rgba(14,159,110,.16), transparent 60%), radial-gradient(circle at 90% 100%, rgba(52,211,153,.16), transparent 60%), var(--card); border: 1px solid var(--line); }
footer { padding: 40px 0 60px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--dim); text-decoration: none; margin-left: 18px; }

/* forms */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth .card { width: 100%; max-width: 420px; padding: 32px; }
.auth h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
/* connect (sign in with GENRA from Claude) */
.connect-badge { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 22px; }
.connect-badge .logo-mark { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; font-weight: 800; }
.connect-arrows { color: var(--dim); font-size: 20px; }
.connect-claude { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #d97757; box-shadow: 0 6px 24px rgba(217,119,87,.4); }
.connect-claude svg { width: 28px; height: 28px; fill: #fff; }
.connect-list { margin: 0 0 22px; padding: 0; list-style: none; }
.connect-list li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); font-size: 15px; border-bottom: 1px dashed var(--line); }
.connect-list li:last-child { border-bottom: 0; }
.connect-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text] { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,159,110,.18); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 14px 0 0; }
.alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #0b8a5f; }
.alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* dashboard */
.dash { padding: 36px 0 80px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.balance { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 8px 0 4px; }
.kv { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
details.adv { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; margin: 18px 0 0; }
details.adv summary { font-size: 14px; color: var(--muted); }
details.adv p { margin: 10px 0 0; }
.code-row { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.code { flex: 1; min-width: 0; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; overflow-x: auto; white-space: nowrap; }
.steps { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.steps li { margin: 4px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tile .media { background: #000; aspect-ratio: 9/16; display: grid; place-items: center; position: relative; }
.tile .media.square { aspect-ratio: 1; }
.tile .media.audio { aspect-ratio: auto; padding: 22px 10px; background: var(--bg2); }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile audio { width: 100%; }
.tile .meta { padding: 10px 12px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status.done { background: #ecfdf5; color: #0b8a5f; }
.status.running, .status.queued { background: #fffbeb; color: #b45309; }
.status.failed { background: #fef2f2; color: #b91c1c; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #e1eae5; border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td.pos { color: #0b8a5f; } td.neg { color: var(--muted); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 14px; }
.section-h h2 { margin: 0; font-size: 20px; }
.new-key { border-color: rgba(14,159,110,.5); box-shadow: 0 0 0 1px rgba(14,159,110,.2); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; background: #0f1b2d; color: #fff; border: 1px solid #0f1b2d; padding: 10px 16px; border-radius: 12px; font-size: 14px; transition: all .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
