/* =============================================================================
   Chronocell Digital Limited — Public Site Stylesheet
   ========================================================================== */
:root {
  --ink: #0F1B2D;
  --ink-deep: #0A121F;
  --accent: #D98E30;
  --accent-deep: #B4700C;
  --slate: #3E6B8A;
  --off: #F7F8FA;
  --line: #E4E8EC;
  --line2: #D6DCE2;
  --muted: #5B6672;
  --text: #1C2530;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(15,27,45,.08);
  --maxw: 1180px;
  --focus: 0 0 0 3px rgba(217,142,48,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em 0; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em 0; }
a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; box-shadow: var(--focus); border-radius: 4px;
}
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 9px; font-weight: 700; font-size: .95rem; text-decoration: none; border: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-primary-nav { padding: 9px 18px; border-radius: 8px; background: var(--accent); color: #fff !important; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); z-index: 50; transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(15,27,45,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: Georgia, serif; font-size: 1.28rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.brand-mark { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .93rem; text-decoration: none; }
.nav-links a:hover { color: var(--accent-deep); }
.nav-product { position: relative; }
.nav-product::after { content: 'PRODUCT'; position: absolute; top: -10px; right: -34px; font-size: .55rem; font-weight: 800; letter-spacing: .5px; color: #fff; background: var(--slate); padding: 1px 5px; border-radius: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---- Hero ---- */
.hero { background: linear-gradient(165deg, var(--ink) 0%, var(--ink-deep) 100%); color: #fff; padding: 92px 0 100px 0; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px; border-radius: 50%; background: rgba(217,142,48,.08); }
.hero-inner { max-width: 660px; position: relative; z-index: 1; }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: .78rem; color: var(--accent); margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.14rem; color: #C7D2DE; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---- Trust strip ---- */
.trust-strip { background: var(--off); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust-strip .wrap { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-item { font-size: .85rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.trust-item::before { content: '\2713'; color: var(--accent-deep); font-weight: 800; }

/* ---- Sections ---- */
section { padding: 76px 0; }
section.alt { background: var(--off); }
.section-head { max-width: 680px; margin: 0 auto 44px auto; text-align: center; }
.section-head .kicker { color: var(--accent-deep); }

/* ---- Grids / cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card .icon { width: 46px; height: 46px; border-radius: 50%; background: var(--off); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; color: var(--slate); font-weight: 800; }
.card .sic { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .4px; color: var(--muted); background: var(--off); border: 1px solid var(--line2); padding: 3px 9px; border-radius: 10px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card a.card-link { font-weight: 700; font-size: .88rem; display: inline-block; margin-top: 14px; }

/* ---- Product highlight ---- */
.product-highlight { background: linear-gradient(135deg, var(--ink) 0%, var(--slate) 140%); color: #fff; border-radius: var(--radius); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.product-highlight .badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .5px; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 12px; margin-bottom: 14px; }
.product-highlight h2 { color: #fff; margin-bottom: 10px; }
.product-highlight p { color: #C7D2DE; max-width: 480px; margin-bottom: 0; }

/* ---- Prose (legal/static pages) ---- */
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }
.prose p, .prose ul, .prose ol { color: var(--text); }
.static-page { padding: 56px 0 76px 0; }
.static-page h1 { margin-bottom: .6em; }

/* ---- Forms ---- */
.form-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 9px; border: 1.5px solid var(--line2); font-size: .95rem; font-family: inherit; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,142,48,.15); }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.captcha-box { background: var(--off); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.captcha-box label { display: block; font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.captcha-box input[type=text] { width: 140px; }
.hp-field, [aria-hidden="true"] { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; }
.alert-error { background: #FBEAE7; color: #B3261E; border: 1px solid #F3C6BE; }
.alert-success { background: #E7F4EE; color: #1A7F5A; border: 1px solid #BFE0D6; }

/* ---- Footer ---- */
.site-footer { background: var(--ink-deep); color: #B9C4D1; padding: 56px 0 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
.footer-col h4 { color: #fff; font-family: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a { display: block; color: #A9B6C4; font-size: .88rem; margin-bottom: 10px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .84rem; color: #90A0B2; max-width: 340px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .76rem; color: #7C8CA0; }

/* ---- Cookie banner ---- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.2); padding: 20px 22px; z-index: 100; }
.cookie-banner p { font-size: .86rem; color: var(--text); margin-bottom: 14px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 9px 16px; font-size: .84rem; }
.cookie-prefs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cookie-pref-row { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 10px; }

/* ---- Utility ---- */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px; border-bottom: 1px solid var(--line); display: none; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-product::after { display: none; }
  .product-highlight { padding: 30px; }
}
