/* ===== SG AI Content Generation Service — styles ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #161a2b;
  --muted: #5b6478;
  --line: #e6e8f0;
  --brand: #5b5bf0;
  --brand-2: #9b5bf0;
  --accent: #14b8a6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 30, 60, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 30, 60, 0.14);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92vw); margin-inline: auto; }
.container--narrow { width: min(760px, 92vw); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
.grad { background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 600; padding: .7rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 6px 18px rgba(91, 91, 240, .3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91, 91, 240, .4); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: none; border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; font-size: 1.15rem; }
.brand__mark { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; padding: .15rem .45rem; border-radius: 8px; }
.brand__name { color: var(--ink); }
.brand__img { height: 34px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---- Hero ---- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0; background: radial-gradient(1200px 500px at 80% -10%, rgba(155,91,240,.12), transparent), radial-gradient(900px 400px at 0% 10%, rgba(20,184,166,.10), transparent); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--muted); padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 36ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero__trust { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .92rem; font-weight: 600; }

.hero__art { display: flex; justify-content: center; }
.hero__img { width: 100%; max-width: 460px; border-radius: 22px; box-shadow: 0 24px 60px rgba(91, 91, 240, .28); display: block; }
.art-card { position: absolute; width: 190px; height: 150px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 2.6rem; border: 1px solid var(--line); }
.art-card small { font-size: .8rem; color: var(--muted); margin-top: .4rem; font-weight: 600; }
.art-card--1 { top: 10px; left: 10px; transform: rotate(-6deg); background: linear-gradient(160deg, #fff, #eef0ff); }
.art-card--2 { top: 90px; right: 0; transform: rotate(5deg); background: linear-gradient(160deg, #fff, #f3eaff); }
.art-card--3 { bottom: 0; left: 60px; transform: rotate(-2deg); background: linear-gradient(160deg, #fff, #e7fbf6); }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .6rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Grid + cards ---- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service__icon { font-size: 2.2rem; margin-bottom: .7rem; }
.service h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service p { color: var(--muted); margin-bottom: 1rem; }
.tag { display: inline-block; background: var(--bg-alt); color: var(--brand); font-weight: 700; font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; }
.tag--soon { background: #fff3e0; color: #d98324; }
.service--soon { opacity: .9; }
.price--soon { opacity: .92; }
.price__flag--soon { background: #d98324; }
.more-soon { text-align: center; margin-top: 2rem; color: var(--muted); }
.more-soon span { font-weight: 700; color: var(--ink); }
.more-soon em { font-style: normal; }

/* ---- Steps ---- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step__n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---- Tabs + work ---- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.tab { background: #fff; border: 1px solid var(--line); color: var(--muted); padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.work { padding: 0; overflow: hidden; }
.work__media { height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 3rem; color: #fff; }
.work__media span { font-size: .85rem; font-weight: 700; margin-top: .3rem; opacity: .9; }
.work__photo { width: 100%; height: 170px; object-fit: cover; display: block; }
.work.has-detail { cursor: pointer; }
.work__media { position: relative; }
.work__zoom { position: absolute; top: 10px; right: 10px; background: rgba(17,19,42,.78); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.work.has-detail:hover .work__zoom { background: var(--brand); }

/* ---- Before/After modal ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,12,26,.78); }
.modal__panel { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(900px, 96vw); max-height: 92vh; overflow-y: auto; padding: 1.8rem; }
.modal__close { position: absolute; top: .7rem; right: .9rem; background: var(--bg-alt); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal__close:hover { background: var(--line); }
.modal__badge { margin-bottom: .6rem; }
.modal__title { font-size: 1.4rem; margin-bottom: 1.2rem; }
.modal__compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.modal__compare.no-before { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
.modal__compare.no-before .modal__fig--before, .modal__compare.no-before .modal__arrow { display: none; }
.modal__fig { margin: 0; }
.modal__fig figcaption { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: .5rem; text-align: center; }
.modal__imgwrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: .4rem; }
.modal__imgwrap img { width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 8px; }
.modal__imgwrap .ph-note { color: var(--muted); font-size: .85rem; padding: 1rem; text-align: center; }
.modal__arrow { font-size: 1.8rem; color: var(--brand); font-weight: 800; }
.modal__caption { margin-top: 1.2rem; font-style: italic; color: var(--muted); border-left: 3px solid var(--line); padding-left: 1rem; }
.modal__meta { margin-top: .8rem; font-size: .9rem; font-weight: 600; color: var(--brand); }
@media (max-width: 640px) {
  .modal__compare { grid-template-columns: 1fr; }
  .modal__arrow { transform: rotate(90deg); justify-self: center; }
  .modal__panel { padding: 1.3rem; }
  .modal__imgwrap img { max-height: 240px; }
}
.ph--ecom { background: linear-gradient(135deg, #6a8bff, #5b5bf0); }
.ph--ecom2 { background: linear-gradient(135deg, #ff9a6a, #f0685b); }
.ph--fnb { background: linear-gradient(135deg, #ffb347, #ff7e5f); }
.ph--prop { background: linear-gradient(135deg, #43cea2, #185a9d); }
.ph--event { background: linear-gradient(135deg, #f857a6, #ff5858); }
.ph--social { background: linear-gradient(135deg, #9b5bf0, #5b5bf0); }
.work__body { padding: 1.3rem 1.4rem 1.5rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand); background: var(--bg-alt); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem; }
.work h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.work__sample { color: var(--muted); font-size: .96rem; font-style: italic; border-left: 3px solid var(--line); padding-left: .9rem; }
.work__note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: .95rem; }
.work.is-hidden { display: none; }
.work__meta { margin-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--brand); }

/* ---- Two ways we work ---- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 2.4rem; }
.mode { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.mode__tag { display: inline-block; font-weight: 700; font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; margin-bottom: .7rem; }
.mode__tag--ref { background: #eef0ff; color: var(--brand); }
.mode__tag--scratch { background: #e7fbf6; color: #0e9b8c; }
.mode h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.mode p { color: var(--muted); font-size: .96rem; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

/* ---- Pricing ---- */
.price { display: flex; flex-direction: column; text-align: center; position: relative; }
.price h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.price__amt { font-size: 2.6rem; font-weight: 800; margin-bottom: 1rem; }
.price__amt span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price__list { list-style: none; text-align: left; margin-bottom: 1.4rem; display: grid; gap: .55rem; }
.price__list li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.price__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price--feature { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
.price .btn { margin-top: auto; }
.price__fine { text-align: center; color: var(--muted); margin-top: 1.6rem; font-size: .95rem; }

/* ---- Features ---- */
.feature { text-align: center; padding: 1rem; }
.feature__ic { font-size: 2rem; margin-bottom: .6rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---- FAQ ---- */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: .7rem; }

/* ---- CTA ---- */
.cta { background: linear-gradient(120deg, #1b1d36, #2b1f4d); color: #fff; }
.cta__inner { text-align: center; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .8rem; }
.cta p { color: #c9cbe0; font-size: 1.08rem; margin-bottom: 1.6rem; }
.cta__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.cta__fine { color: #9a9cc0 !important; font-size: .92rem; margin-top: 1.2rem; margin-bottom: 0; }
.cta__social { color: #9a9cc0 !important; font-size: .95rem; margin-top: 1rem; margin-bottom: 0; }
.cta__social a { color: #fff; font-weight: 600; text-decoration: none; margin: 0 .15rem; padding: .12rem .6rem; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; }
.cta__social a:hover { background: rgba(255,255,255,.22); }

/* ---- Footer ---- */
.footer { background: #11132a; color: #c9cbe0; padding: 2.6rem 0 1.4rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__inner .brand__name { color: #fff; }
.footer__inner p { margin-top: .6rem; max-width: 40ch; font-size: .92rem; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer__links a { color: #c9cbe0; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 1.2rem; font-size: .85rem; color: #8688ad; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero__art { order: 0; margin-top: 1.6rem; }
  .grid--3, .grid--4, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav__links { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 6vw 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s ease; }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: .6rem; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .grid--2, .steps { grid-template-columns: 1fr; }
  .hero__trust { gap: .6rem; }
  .hero__img { max-width: 380px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .cta__btns .btn { width: 100%; }
}

/* ---- Modal video ---- */
.modal__video { max-width: 330px; margin: 0 auto; }
