/* Kyber Direct — site stylesheet (approved design, Aug 2026)
   Dark strand hero with overlaid tagline, centered masthead, icon-led body.
   Brand: navy #1E2B3B, purple #A855FF (accent) / #7C3AED (interactive), Sora + Open Sans.
   Light and dark themes via prefers-color-scheme. */

:root {
  --bg: #FFFFFF;
  --ink: #1E2B3B;
  --gray: #6B7280;
  --purple: #A855FF;
  --purple-ui: #7C3AED;
  --purple-ui-hover: #6A2BD9;
  --hairline: #E8E8EC;
  --tile: #FBFAFE;
  --input-border: #C9C5D6;
  --input-bg: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1522;
    --ink: #E8ECF3;
    --gray: #9AA3B2;
    --purple-ui: #A87BFF;          /* lighter interactive purple for dark contrast */
    --purple-ui-hover: #BD9AFF;
    --hairline: #273147;
    --tile: #161F31;
    --input-border: #3A4560;
    --input-bg: #131B2C;
  }
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family:'Open Sans', Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:15px;
  line-height:1.65;
}

.wrap { max-width:1100px; margin:0 auto; padding:0 32px; }

h1, h2, h3 { font-family:'Sora','Open Sans',Arial,sans-serif; color:var(--ink); }

a { color:var(--purple-ui); }

/* Masthead: nav above centered logo */
header.masthead { display:flex; flex-direction:column; align-items:center; gap:16px; padding:18px 0 24px; }
header.masthead img { height:54px; }
.main-nav { display:flex; gap:34px; flex-wrap:wrap; justify-content:center; }
.main-nav a {
  font-size:12.5px; color:var(--ink); text-decoration:none; font-weight:600;
  font-family:'Sora'; letter-spacing:0.08em; text-transform:uppercase;
}
.main-nav a:hover, .main-nav a.active { color:var(--purple-ui); }

/* Home hero: looping strand video with overlaid tagline (always dark) */
.hero { position:relative; border-radius:16px; overflow:hidden; margin-bottom:80px; min-height:460px; display:flex; align-items:center; }
.hero-bg { position:absolute; inset:0; background:url("../assets/images/hero-final.jpg") center/cover no-repeat #10161F; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-content { position:relative; z-index:2; padding:64px 56px; max-width:600px; animation:rise 1.1s ease-out both; }
@keyframes rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.hero .label { font-family:'Sora'; font-size:11px; letter-spacing:0.22em; color:rgba(255,255,255,0.65); margin-bottom:18px; }
.hero .label::before { content:""; display:inline-block; width:8px; height:8px; background:var(--purple); border-radius:50%; margin-right:10px; }
.hero h1 { font-weight:500; font-size:34px; line-height:1.3; color:#fff; letter-spacing:-0.005em; margin-bottom:16px; }
.hero p { color:rgba(255,255,255,0.75); font-size:15.5px; max-width:460px; margin-bottom:28px; }

/* Interior page band: static strand art with page title (always dark) */
.page-band { position:relative; border-radius:16px; overflow:hidden; margin-bottom:64px; min-height:210px; display:flex; align-items:center;
  background:url("../assets/images/hero-final.jpg") center/cover no-repeat #10161F; }
.page-band .hero-content { padding:44px 56px; animation:rise 0.9s ease-out both; }
.page-band h1 { font-weight:500; font-size:30px; color:#fff; }

/* Buttons: fixed purple works on both themes */
.btn { display:inline-block; padding:12px 26px; border-radius:8px; font-family:'Sora'; font-weight:600; font-size:13.5px;
  background:#7C3AED; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,0.15); }
.btn:hover { background:#6A2BD9; }
.btn-ghost { background:transparent; border:1px solid rgba(255,255,255,0.35); margin-left:10px; }
.btn-ghost:hover { background:rgba(255,255,255,0.1); }
.btn-light { border:1px solid #7C3AED; }

/* Section labels & headings */
.sec-label { font-family:'Sora'; font-size:11px; letter-spacing:0.22em; color:var(--gray); margin-bottom:14px; }
.sec-label::before { content:""; display:inline-block; width:8px; height:8px; background:var(--purple); border-radius:50%; margin-right:10px; }
h2.sec-title { font-weight:500; font-size:24px; margin-bottom:46px; }

/* Services: icon grid */
.services { display:grid; grid-template-columns:1fr 1fr; gap:44px 60px; margin-bottom:96px; }
.svc { display:flex; gap:18px; align-items:flex-start; }
.svc .ic { flex:0 0 46px; height:46px; border:1px solid var(--hairline); border-radius:12px;
  display:flex; align-items:center; justify-content:center; background:var(--tile); }
.svc .ic svg { width:22px; height:22px; stroke:var(--purple-ui); stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.svc h3 { font-weight:600; font-size:15px; margin-bottom:5px; }
.svc p { font-size:13.5px; color:var(--gray); }

/* Services page: detailed blocks */
.svc-detail { display:flex; gap:22px; align-items:flex-start; padding:34px 0; border-bottom:1px solid var(--hairline); max-width:820px; }
.svc-detail:last-of-type { border-bottom:none; }
.svc-detail .ic { flex:0 0 46px; height:46px; border:1px solid var(--hairline); border-radius:12px;
  display:flex; align-items:center; justify-content:center; background:var(--tile); }
.svc-detail .ic svg { width:22px; height:22px; stroke:var(--purple-ui); stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.svc-detail h2 { font-weight:600; font-size:17px; margin-bottom:8px; }
.svc-detail p { font-size:14.5px; color:var(--gray); }

/* How we work principles */
.howwork { border-top:1px solid var(--hairline); padding:64px 0 24px; margin-bottom:72px; }
.principles { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:40px; margin-top:8px; }
.principle h3 { font-weight:600; font-size:15px; margin-bottom:6px; }
.principle h3::before { content:""; display:inline-block; width:9px; height:9px; background:var(--purple); border-radius:2px; margin-right:10px; }
.principle p { font-size:13.5px; color:var(--gray); }

/* CTA band */
.cta-band { border-top:1px solid var(--hairline); text-align:center; padding:64px 0 88px; }
.cta-band h2 { font-weight:500; font-size:22px; margin-bottom:8px; }
.cta-band p { color:var(--gray); margin-bottom:26px; }

/* Content pages (about, legal) */
.content { max-width:760px; padding-bottom:80px; }
.content h2 { font-weight:600; font-size:17px; margin:2rem 0 0.6rem; }
.content p { margin-bottom:1rem; }
.content ul { margin:0 0 1rem 1.4rem; }
.content li { margin-bottom:0.5rem; }

/* Contact form */
.contact-form { max-width:560px; margin-bottom:80px; }
.form-field { margin-bottom:18px; }
.form-field label { display:block; font-family:'Sora'; font-weight:600; font-size:13px; margin-bottom:6px; }
.form-field input, .form-field textarea {
  width:100%; padding:12px 14px; border:1px solid var(--input-border); border-radius:8px;
  font-family:'Open Sans',Arial,sans-serif; font-size:15px; color:var(--ink); background:var(--input-bg);
}
.form-field input:focus, .form-field textarea:focus { outline:2px solid var(--purple); border-color:var(--purple); }
.contact-form button { cursor:pointer; }
.hp-field { position:absolute; left:-9999px; opacity:0; height:0; overflow:hidden; }

/* Footer */
footer.site-footer { border-top:1px solid var(--hairline); padding:30px 0 46px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; font-size:12px; color:var(--gray); }
.footer-nav { display:flex; gap:20px; flex-wrap:wrap; }
.footer-nav a { color:var(--gray); text-decoration:none; }
.footer-nav a:hover { color:var(--purple-ui); }

/* Mobile */
@media (max-width:760px) {
  .wrap { padding:0 20px; }
  header.masthead { gap:12px; padding:16px 0 20px; }
  header.masthead img { height:42px; }
  .main-nav { gap:20px; }
  .hero { min-height:400px; margin-bottom:56px; }
  .hero-content, .page-band .hero-content { padding:40px 24px; }
  .hero h1 { font-size:24px; }
  .hero p { font-size:14.5px; }
  .btn { display:block; text-align:center; margin-bottom:10px; }
  .btn-ghost { margin-left:0; }
  .page-band { min-height:160px; margin-bottom:44px; }
  .page-band h1 { font-size:22px; }
  .services { grid-template-columns:1fr; gap:30px; margin-bottom:64px; }
  .svc-detail { flex-direction:column; gap:14px; }
  .howwork { padding:44px 0 12px; margin-bottom:48px; }
  .principles { gap:26px; }
  .cta-band { padding:44px 0 60px; }
  .footer-inner { flex-direction:column; align-items:center; text-align:center; }
  .footer-nav { justify-content:center; }
}
