/* Cevix — cevix.tech. One stylesheet for both languages. */
:root {
  --bg: #f7f9fc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --text: #0f1b2d;
  --text-soft: #4a5a70;
  --text-faint: #7a879a;
  --border: #dfe6ef;
  --primary: #2a8fe8;
  --primary-strong: #1976d2;
  --primary-soft: #e3f2ff;
  --grad-a: #81d6ff;
  --grad-b: #4eadff;
  --ok: #19a463;
  --danger: #e5484d;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px rgba(15, 27, 45, .08);
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111c;
    --bg-alt: #0f1826;
    --surface: #131e2e;
    --text: #e8eef7;
    --text-soft: #a9b6c8;
    --text-faint: #7d8a9e;
    --border: #23324a;
    --primary: #6cc0ff;
    --primary-strong: #8fd0ff;
    --primary-soft: #11273d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC",
    "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--border); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-soft); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang {
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
  font-size: 14px; color: var(--text-soft) !important;
}
@media (max-width: 760px) { .nav a:not(.lang) { display: none; } }

/* ---- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--grad-b) 30%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-strong); font-size: 14px; font-weight: 600;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.15; margin: 18px 0 16px; letter-spacing: -.5px; }
:lang(zh-Hant) .hero h1 { letter-spacing: 1px; }
.nb { display: inline-block; }
.grad-text {
  background: linear-gradient(100deg, var(--grad-b), var(--grad-a));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-soft); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(120deg, var(--grad-b), #3a9bf0); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--grad-b) 40%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-faint); }

/* ---- phone mockup */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: 290px; aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1d2633, #0b1018); box-shadow: var(--shadow), inset 0 0 0 2px #2b3644;
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; position: relative; color: #fff;
  background: linear-gradient(170deg, #1b4d7e 0%, #0f2b4a 55%, #0a1b30 100%);
  display: flex; flex-direction: column; align-items: center; padding: 54px 20px 34px; text-align: center;
}
.screen .island { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.screen .who { font-size: 13px; opacity: .75; letter-spacing: .5px; }
.screen .num { font-size: 27px; font-weight: 600; margin-top: 6px; letter-spacing: .5px; }
.screen .via { font-size: 13px; opacity: .7; margin-top: 4px; }
.screen .avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 34px 0 auto; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 10px rgba(255, 255, 255, .05), 0 0 0 22px rgba(255, 255, 255, .03);
}
.screen .avatar img { width: 46px; height: 46px; }
.screen .actions { display: flex; justify-content: space-between; width: 100%; padding: 0 12px; }
.screen .act { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; opacity: .9; }
.screen .act span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
.screen .act .decline { background: var(--danger); }
.screen .act .answer { background: var(--ok); }
.screen .act svg { width: 26px; height: 26px; fill: #fff; }
.toast {
  position: absolute; right: -18px; top: 312px; width: 248px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text);
  box-shadow: var(--shadow); border: 1px solid var(--border); font-size: 13px; line-height: 1.45;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.toast b { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.toast b img { width: 16px; height: 16px; border-radius: 4px; }
.toast small { color: var(--text-faint); margin-left: auto; font-weight: 400; }
.toast p { margin: 4px 0 0; color: var(--text-soft); }
@media (max-width: 900px) { .toast { right: 50%; transform: translateX(160px); } }
@media (max-width: 480px) { .toast { display: none; } }

/* ---- highlight strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .item { padding: 22px 18px; border-left: 1px solid var(--border); }
.strip .item:first-child { border-left: 0; }
.strip b { display: block; font-size: 16px; }
.strip span { font-size: 14px; color: var(--text-soft); }
@media (max-width: 860px) {
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip .item:nth-child(3) { border-left: 0; }
  .strip .item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---- sections */
section.block { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.kicker { color: var(--primary-strong); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.kicker.keep-case { text-transform: none; letter-spacing: .5px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; margin: 8px 0 14px; letter-spacing: -.3px; }
.section-lead { color: var(--text-soft); max-width: 40em; margin: 0 0 40px; font-size: 18px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--text-soft); font-size: 15.5px; }
.flow {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 34px 0 0; color: var(--text-soft); font-size: 15px;
}
.flow .node { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; color: var(--text); }
.flow .node.hl { border-color: color-mix(in srgb, var(--grad-b) 60%, var(--border)); background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; }
.flow .arrow { color: var(--text-faint); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--primary-soft); color: var(--primary-strong);
}
.feature .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 15.5px; }

/* dashboard mockup */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; color: var(--text-soft); }
.ticks li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232a8fe8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks b { color: var(--text); font-weight: 600; }
.window { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window picture, .window img { display: block; width: 100%; height: auto; }

/* Cevix Link spotlight (end of the features section) */
.spotlight {
  margin-top: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center;
  padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--grad-b) 45%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--grad-b) 10%, transparent), var(--shadow);
}
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; padding: 24px; } }
.spotlight h3 { font-size: clamp(26px, 3vw, 32px); margin: 12px 0 8px; }
.spotlight p { margin: 0; color: var(--text-soft); font-size: 16.5px; }
.spot-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .spot-points { grid-template-columns: 1fr; } }
.spot-points li { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); color: var(--text-soft); font-size: 14.5px; line-height: 1.5; }
.spot-points b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 2px; }

/* screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
figure { margin: 0; }
figure figcaption { margin-top: 12px; font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
figure figcaption b { color: var(--text); margin-right: 8px; }
.shots-sub { font-size: 22px; margin: 56px 0 22px; text-align: center; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 900px; margin: 0 auto; }
.phones figure { text-align: center; }
.phone-frame {
  max-width: 270px; margin: 0 auto; padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #1d2633, #0b1018); box-shadow: var(--shadow), inset 0 0 0 2px #2b3644;
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 32px; }
@media (max-width: 720px) {
  .phones { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; max-width: none; }
  .phones figure { flex: 0 0 64%; scroll-snap-align: center; }
}
.fine.center { text-align: center; }

/* carriers & platforms */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin: 0 0 6px; font-size: 20px; }
.panel > p { margin: 0 0 18px; color: var(--text-soft); font-size: 15.5px; }
.panel > p.sub { margin: 24px 0 12px; }
.panel > p.fine { margin: 16px 0 0; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 15px; }
.chip.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.chip.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip small { color: var(--text-faint); }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--text-faint); }

/* privacy */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust div { border-top: 2px solid var(--grad-b); padding-top: 16px; }
.trust h3 { margin: 0 0 6px; font-size: 17px; }
.trust p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--text-soft); }

/* closing */
.closing { text-align: center; padding: 96px 0; }
.closing .mark { width: 64px; height: 64px; margin: 0 auto 18px; }
.closing p { color: var(--text-soft); max-width: 34em; margin: 0 auto; font-size: 18px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--text-faint); }
footer .wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
footer .right { margin-left: auto; display: flex; gap: 18px; }
footer a { color: var(--text-soft); }
