/* ChronoBeat — "Swiss watch laboratory meets modern Apple software". Dark glass, thin borders, big numerals. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/inter-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/jetbrains-mono-latin-300-normal.woff2") format("woff2"); }

:root {
  --cb-bg: #07080b;
  --cb-bg-2: #0e1219;
  --cb-surface: rgba(255, 255, 255, 0.045);
  --cb-surface-strong: rgba(255, 255, 255, 0.075);
  --cb-border: rgba(255, 255, 255, 0.09);
  --cb-text: #eceae4;
  --cb-muted: #a3a6ad;
  --cb-gold: #deb874;
  --cb-gold-deep: #a57d3b;
  --cb-signal: #5ad6ab;
  --cb-tock: #7ab8fa;
  --cb-radius: 22px;
  --bs-body-font-family: "Inter", "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  --bs-body-bg: var(--cb-bg);
  --bs-body-color: var(--cb-text);
  --bs-link-color: var(--cb-gold);
  --bs-link-hover-color: #f0d49b;
  --bs-border-color: var(--cb-border);
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(222, 184, 116, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(122, 184, 250, 0.06), transparent 60%),
    linear-gradient(180deg, var(--cb-bg) 0%, var(--cb-bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
[dir="rtl"] body { letter-spacing: 0; }

a { color: var(--cb-gold); text-underline-offset: 3px; }
a:hover, a:focus { color: #f0d49b; }
html, body { overflow-x: clip; }
.skip-link { position: fixed; top: 0; inset-inline-start: 1rem; z-index: 2000; background: var(--cb-gold); color: #111; padding: .5rem 1rem; border-radius: 0 0 12px 12px; transform: translateY(-120%); }
.skip-link:focus { transform: none; color: #111; }
:focus-visible { outline: 2px solid var(--cb-gold); outline-offset: 3px; }

/* Navigation */
.cb-nav { backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: rgba(7, 8, 11, 0.72); border-bottom: 1px solid var(--cb-border); }
.cb-nav .navbar-brand { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; color: var(--cb-text); }
.cb-nav .navbar-brand img { border-radius: 8px; }
.cb-nav .nav-link { color: var(--cb-muted); font-size: .92rem; }
.cb-nav .nav-link:hover, .cb-nav .nav-link:focus { color: var(--cb-text); }
.cb-nav .navbar-toggler { border-color: var(--cb-border); }
.cb-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28236,234,228,0.85%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.lang-select { background: var(--cb-surface); color: var(--cb-text); border: 1px solid var(--cb-border); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }

/* Hero */
.hero { padding: 7.5rem 0 4rem; }
.eyebrow { color: var(--cb-gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; }
[dir="rtl"] .eyebrow, :lang(ja) .eyebrow { letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
[dir="rtl"] .hero h1, :lang(ja) .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero h1 .line-2 { background: linear-gradient(90deg, var(--cb-gold) 0%, #f5e2b8 60%, var(--cb-gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--cb-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 34rem; }
.hero-note { color: var(--cb-muted); font-size: .86rem; }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .55)); }

.btn-cb { background: linear-gradient(180deg, #ecc98a, var(--cb-gold)); color: #15120b; border: 0; font-weight: 600; border-radius: 999px; padding: .85rem 1.6rem; box-shadow: 0 10px 30px rgba(222, 184, 116, .25); }
.btn-cb:hover, .btn-cb:focus { background: linear-gradient(180deg, #f3d7a2, #e5c182); color: #15120b; }
.btn-cb-ghost { background: var(--cb-surface); color: var(--cb-text); border: 1px solid var(--cb-border); border-radius: 999px; padding: .85rem 1.6rem; font-weight: 600; }
.btn-cb-ghost:hover, .btn-cb-ghost:focus { background: var(--cb-surface-strong); color: var(--cb-text); border-color: rgba(255, 255, 255, .18); }

/* Glass */
.glass { background: var(--cb-surface); border: 1px solid var(--cb-border); border-radius: var(--cb-radius); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px rgba(0, 0, 0, .25); }
.section { padding: 5rem 0; }
.section-title { font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.8rem, 4vw, 2.7rem); }
[dir="rtl"] .section-title, :lang(ja) .section-title { letter-spacing: 0; }
.section-sub { color: var(--cb-muted); max-width: 42rem; margin-inline: auto; }

/* Bento */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); } .bento .span-2 { grid-column: span 2; } .bento .row-2 { grid-row: span 2; } }
.bento-card { padding: 1.6rem; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .6rem; }
.bento-card h3 { font-size: 1.12rem; font-weight: 600; margin: 0; }
.bento-card p { color: var(--cb-muted); margin: 0; font-size: .96rem; }
.bento-card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(222, 184, 116, .12); color: var(--cb-gold); border: 1px solid rgba(222, 184, 116, .25); }
.bento-card .visual { margin-top: auto; }
.bento-card .visual img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--cb-border); }
.numeral { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 300; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; color: var(--cb-text); }
.numeral small { font-size: .38em; color: var(--cb-muted); margin-inline-start: .35em; letter-spacing: .08em; }
.meter { display: flex; gap: 3px; direction: ltr; }
.meter span { flex: 1; height: 10px; border-radius: 2px; background: rgba(90, 214, 171, .9); }
.meter span.off { background: rgba(255, 255, 255, .08); }
.meter span.gold { background: var(--cb-gold); }

/* Steps */
.step-num { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--cb-gold); font-size: .9rem; letter-spacing: .12em; }

/* Pricing */
.price-card { padding: 2rem; height: 100%; }
.price-card.featured { border-color: rgba(222, 184, 116, .45); background: linear-gradient(180deg, rgba(222, 184, 116, .10), rgba(255, 255, 255, .03)); }
.price { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 300; font-size: 2.6rem; direction: ltr; unicode-bidi: isolate; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .38rem 0; display: flex; gap: .6rem; align-items: baseline; }
.check-list li::before { content: "✓"; color: var(--cb-signal); font-weight: 700; }

/* Legal / support pages */
.doc { padding: 7rem 0 4rem; }
.doc h1 { font-weight: 700; letter-spacing: -0.025em; }
.doc h2 { font-size: 1.3rem; font-weight: 600; margin-top: 2.2rem; }
.doc p, .doc li { color: #cfd1d6; line-height: 1.7; }
.doc .updated { color: var(--cb-muted); font-size: .9rem; }
.faq details { border-bottom: 1px solid var(--cb-border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: inline-end; color: var(--cb-gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; color: #cfd1d6; }

/* Footer */
.cb-footer { border-top: 1px solid var(--cb-border); padding: 3rem 0 2.5rem; color: var(--cb-muted); font-size: .92rem; }
.cb-footer a { color: var(--cb-muted); text-decoration: none; }
.cb-footer a:hover, .cb-footer a:focus { color: var(--cb-text); }
.cb-footer .brand { color: var(--cb-text); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fineprint { font-size: .78rem; color: #7d8189; }

/* Reveal on scroll (progressive enhancement; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
