/*
Theme Name: Scam Guard Official
Theme URI: https://blockscamcall.com
Author: Lingsen Global Enterprise
Description: Official multilingual landing site for the Scam Guard mobile application.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: scam-guard
*/

:root {
  --sg-navy: #07172d;
  --sg-navy-soft: #102843;
  --sg-blue: #1d75ff;
  --sg-cyan: #35d1ff;
  --sg-green: #18c98b;
  --sg-red: #ff4d5e;
  --sg-ink: #132238;
  --sg-muted: #627187;
  --sg-line: #dce5ef;
  --sg-bg: #f5f9fd;
  --sg-white: #fff;
  --sg-radius: 22px;
  --sg-shadow: 0 22px 60px rgba(13, 39, 68, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--sg-ink); background: var(--sg-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.sg-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sg-section { padding: 92px 0; }
.sg-section-alt { background: var(--sg-bg); }
.sg-eyebrow { color: var(--sg-blue); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sg-section-title { max-width: 720px; margin: 10px auto 14px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; text-align: center; letter-spacing: -.035em; }
.sg-section-lead { max-width: 690px; margin: 0 auto 44px; color: var(--sg-muted); text-align: center; font-size: 1.05rem; }

.sg-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(220,229,239,.8); backdrop-filter: blur(16px); }
.sg-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sg-brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.2rem; }
.sg-brand .custom-logo { display: block; width: 46px; height: 46px; object-fit: contain; border-radius: 13px; }
.sg-mark { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; border-radius: 13px; background: linear-gradient(145deg, var(--sg-blue), #083c9c); box-shadow: 0 10px 26px rgba(29,117,255,.28); font-size: .9rem; }
.sg-links { display: flex; align-items: center; gap: 25px; color: #34455d; font-size: .92rem; font-weight: 650; }
.sg-links a:hover { color: var(--sg-blue); }
.sg-nav-actions { display: flex; align-items: center; gap: 10px; }
.sg-lang { border: 1px solid var(--sg-line); padding: 9px 12px; border-radius: 12px; background: #fff; color: var(--sg-ink); font-weight: 700; }
.sg-menu-btn { display: none; border: 0; background: transparent; font-size: 1.4rem; }
.sg-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 14px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.sg-btn:hover { transform: translateY(-2px); }
.sg-btn-primary { color: #fff; background: linear-gradient(135deg, var(--sg-blue), #0751c9); box-shadow: 0 12px 28px rgba(29,117,255,.28); }
.sg-btn-light { color: var(--sg-blue); background: #fff; box-shadow: 0 10px 30px rgba(7,23,45,.1); }
.sg-btn-outline { color: var(--sg-ink); background: transparent; border: 1px solid var(--sg-line); }

.sg-hero { position: relative; overflow: hidden; color: #fff; background: var(--sg-navy); }
.sg-hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(53,209,255,.26), transparent 67%); }
.sg-hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 70px; padding: 78px 0 86px; }
.sg-hero h1 { max-width: 720px; margin: 16px 0 22px; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.sg-hero p { max-width: 620px; color: #b8c9dc; font-size: 1.14rem; }
.sg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sg-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: #b8c9dc; font-size: .88rem; }
.sg-trust span::before { content: "✓"; margin-right: 7px; color: var(--sg-green); font-weight: 900; }
.sg-phone-stage { position: relative; min-height: 490px; display: grid; place-items: center; }
.sg-radar { position: absolute; width: 430px; height: 430px; border: 1px solid rgba(53,209,255,.25); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 57px, rgba(53,209,255,.08) 58px 59px); }
.sg-radar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from 10deg, rgba(53,209,255,.35), transparent 22%); animation: sg-scan 5s linear infinite; }
@keyframes sg-scan { to { transform: rotate(360deg); } }
.sg-phone { position: relative; z-index: 2; width: 275px; min-height: 530px; padding: 18px; border: 8px solid #233a55; border-radius: 40px; background: #f7fbff; box-shadow: 0 35px 75px rgba(0,0,0,.45); transform: rotate(4deg); }
.sg-phone-bar { width: 90px; height: 7px; margin: 0 auto 24px; border-radius: 10px; background: #c4cfda; }
.sg-app-logo { width: 72px; height: 72px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 21px; color: #fff; background: linear-gradient(145deg, #297dff, #072d72); box-shadow: 0 12px 30px rgba(29,117,255,.25); font-weight: 900; }
.sg-phone h3 { color: var(--sg-ink); margin: 0; text-align: center; }
.sg-phone small { display: block; text-align: center; color: var(--sg-muted); }
.sg-call-card { margin-top: 26px; padding: 17px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(20,50,80,.1); }
.sg-risk { color: var(--sg-red); font-weight: 900; }
.sg-call-number { margin: 6px 0 12px; color: var(--sg-ink); font-size: 1.2rem; font-weight: 800; }
.sg-call-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sg-mini { padding: 10px 5px; border-radius: 10px; text-align: center; font-size: .76rem; font-weight: 800; }
.sg-mini-red { color: #a81d2a; background: #ffe8eb; }
.sg-mini-green { color: #087b55; background: #dcf9ef; }
.sg-alert { position: absolute; z-index: 3; right: 0; bottom: 60px; width: 220px; padding: 15px; color: var(--sg-ink); border-radius: 16px; background: #fff; box-shadow: var(--sg-shadow); font-size: .84rem; }
.sg-alert strong { display: block; color: var(--sg-blue); }

.sg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sg-card { padding: 30px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: #fff; box-shadow: 0 10px 32px rgba(16,49,83,.06); }
.sg-card-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: var(--sg-blue); background: #e9f2ff; font-size: 1.35rem; }
.sg-card h3 { margin: 18px 0 8px; font-size: 1.16rem; }
.sg-card p { margin: 0; color: var(--sg-muted); }
.sg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: steps; }
.sg-step { position: relative; padding: 28px; border-radius: var(--sg-radius); background: #fff; counter-increment: steps; }
.sg-step::before { content: "0" counter(steps); color: var(--sg-blue); font-weight: 900; font-size: 1.8rem; }
.sg-step h3 { margin: 14px 0 5px; }
.sg-step p { margin: 0; color: var(--sg-muted); }
.sg-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.sg-plan { position: relative; padding: 32px; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); background: #fff; }
.sg-plan-featured { color: #fff; border-color: var(--sg-navy); background: var(--sg-navy); box-shadow: var(--sg-shadow); transform: translateY(-10px); }
.sg-plan-badge { position: absolute; right: 18px; top: 18px; padding: 5px 10px; border-radius: 99px; background: var(--sg-green); color: #062d22; font-size: .72rem; font-weight: 900; }
.sg-price { margin: 18px 0; font-size: 2.4rem; font-weight: 900; }
.sg-price small { font-size: .85rem; font-weight: 600; opacity: .65; }
.sg-plan ul { padding: 0; margin: 22px 0 30px; list-style: none; }
.sg-plan li { margin: 10px 0; color: var(--sg-muted); }
.sg-plan-featured li { color: #c4d2e2; }
.sg-plan li::before { content: "✓"; margin-right: 8px; color: var(--sg-green); font-weight: 900; }
.sg-faq { max-width: 830px; margin: auto; }
.sg-faq details { margin-bottom: 12px; padding: 19px 22px; border: 1px solid var(--sg-line); border-radius: 15px; background: #fff; }
.sg-faq summary { cursor: pointer; font-weight: 800; }
.sg-faq p { color: var(--sg-muted); }
.sg-cta { padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #0b2d55, #1167da); box-shadow: var(--sg-shadow); }
.sg-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.sg-cta p { margin: 10px 0 0; color: #c7d9ee; }
.sg-footer { padding: 55px 0 28px; color: #b7c6d6; background: #061222; }
.sg-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.sg-footer h4 { margin-top: 0; color: #fff; }
.sg-footer a { display: block; margin: 8px 0; }
.sg-footer a:hover { color: #fff; }
.sg-legal { margin-top: 38px; padding-top: 20px; border-top: 1px solid #213147; font-size: .82rem; }
.sg-page { min-height: 65vh; padding: 80px 0; }
.sg-page article { max-width: 850px; margin: auto; }
.sg-page h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.05; }
.sg-page h2 { margin-top: 38px; }
.sg-page p, .sg-page li { color: var(--sg-muted); }

@media (max-width: 900px) {
  .sg-links { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 20px; flex-direction: column; align-items: stretch; border: 1px solid var(--sg-line); border-radius: 16px; background: #fff; box-shadow: var(--sg-shadow); }
  .sg-links.is-open { display: flex; }
  .sg-menu-btn { display: block; }
  .sg-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .sg-hero p { margin-left: auto; margin-right: auto; }
  .sg-hero-actions, .sg-trust { justify-content: center; }
  .sg-cards, .sg-steps, .sg-plans { grid-template-columns: 1fr 1fr; }
  .sg-plan-featured { transform: none; }
}

@media (max-width: 640px) {
  .sg-wrap { width: min(100% - 28px, 1160px); }
  .sg-section { padding: 68px 0; }
  .sg-brand span:last-child { display: none; }
  .sg-nav-actions .sg-btn { display: none; }
  .sg-hero-grid { min-height: auto; padding-top: 60px; }
  .sg-phone-stage { transform: scale(.88); margin: -30px 0; }
  .sg-alert { right: -18px; }
  .sg-cards, .sg-steps, .sg-plans { grid-template-columns: 1fr; }
  .sg-cta { padding: 34px 25px; flex-direction: column; align-items: flex-start; }
  .sg-footer-grid { grid-template-columns: 1fr; }
}

/* 1.1.0: editable assets and accessible multilingual layouts. */
[data-i18n], .sg-price, .sg-brand, .sg-support { overflow-wrap: anywhere; }
.sg-price { white-space: normal; }
.sg-phone-logo { width: 100%; height: 100%; object-fit: contain; }
.sg-phone-logo.sg-mark { background: none; box-shadow: none; }
.sg-app-logo img { border-radius: inherit; }
.sg-hero-art { position: absolute; inset: 0; display: grid; place-items: center; }
.sg-hero-image { max-height: 620px; width: 100%; object-fit: contain; }
.sg-uploaded-phone { position: relative; z-index: 2; width: min(100%, 310px); }
.sg-app-image { display: block; width: 100%; max-height: 620px; object-fit: contain; border-radius: 24px; }
.sg-support a { display: inline; text-decoration: underline; }
.sg-untranslated { border-left: 3px solid var(--sg-blue); padding: 12px 18px; background: var(--sg-bg); }
.sg-skip { position: fixed; top: -100px; left: 12px; z-index: 1000; background: #fff; color: #07172d; padding: 12px; }
.sg-skip:focus { top: 8px; }
:focus-visible { outline: 3px solid #1d75ff; outline-offset: 4px; }
.sg-hero :focus-visible, .sg-footer :focus-visible { outline-color: #35d1ff; }
section[id] { scroll-margin-top: 95px; }
html[lang="zh-CN"] .sg-hero h1 { line-height: 1.2; letter-spacing: 0; }
html[lang="zh-CN"] .sg-section-title { line-height: 1.3; }
.sg-hero-grid > *, .sg-plan, .sg-cta > * { min-width: 0; }
.sg-btn { text-align: center; white-space: normal; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 640px) {
 .sg-radar { width: min(100%, 380px); height: auto; aspect-ratio: 1; }
 .sg-alert { right: 0; max-width: 70%; }
 .sg-phone-stage { min-width: 0; }
 .sg-phone { width: min(275px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .sg-radar::after { animation: none; }
 .sg-btn { transition: none; }
}

.sg-brand .sg-mark { display: grid; }
