/* ==========================================================================
   Brishti Technologies — shared stylesheet
   index.html   -> <html class="home">
   privacy.html -> <html class="legal">
   Shared rules are unscoped; page-specific rules are scoped to .home / .legal.
   ========================================================================== */

/* ===== 1. Tokens ===== */
:root {
  --ink: #0b1b2b;
  --ink-2: #12293f;
  --text: #1c2b3a;
  --muted: #5b6b7c;
  --line: #e2e8ee;
  --paper: #f6f8fa;
  --white: #ffffff;
  --rain: #3fa9e0;
  --rain-deep: #1b7fb8;
  --rain-soft: #dff1fb;
  --sun: #ffb648;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --grad: linear-gradient(135deg, #0a1a2c 0%, #0f2c4a 55%, #0d3a4f 100%);
}

/* ===== 2. Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
.legal { scroll-padding-top: 108px; }
body { font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
.legal body { line-height: 1.7; }
a { color: inherit; }
:where(.legal) a { color: var(--rain-deep); }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; }
:where(.legal) h1, :where(.legal) h2 { line-height: 1.1; color: var(--ink); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rain-deep); }
.hero .eyebrow, .banner .eyebrow { color: #8fd1f4; }
.banner .eyebrow { font-size: 13px; letter-spacing: .16em; }

/* ===== 3. Nav (shared) ===== */
.nav { z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; }
.logo img { height: 54px; width: auto; display: block; }
.nav ul { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav ul a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--white); }
.nav .cta { padding: 9px 18px; border-radius: 999px; background: var(--rain); color: var(--ink) !important; font-weight: 600; }
.nav .cta:hover { background: #63bdec; }

/* Nav: home = fixed, transparent until scrolled */
.home .nav { position: fixed; inset: 0 0 auto 0; transition: background .3s, box-shadow .3s; }
.home .nav.scrolled { background: rgba(11, 27, 43, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }

/* Nav: legal = sticky, always solid */
.legal .nav { position: sticky; top: 0; background: rgba(11, 27, 43, .96); backdrop-filter: blur(10px); }

/* ===== 4. Footer (shared) ===== */
footer { background: #081421; color: rgba(255,255,255,.55); font-size: 14px; padding: 26px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,.75); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ===== 5. Home page ===== */

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--grad); padding: 148px 0 84px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg .o1 { width: 560px; height: 560px; right: -120px; top: -160px; background: #2f9be0; }
.hero-bg .o2 { width: 460px; height: 460px; right: 22%; bottom: -220px; background: #19c3b1; opacity: .38; animation-duration: 23s; animation-direction: alternate-reverse; }
.hero-bg .o3 { width: 320px; height: 320px; left: -110px; top: 36%; background: #ffb648; opacity: .2; animation-duration: 27s; }
.hero-bg .grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 100%); mask-image: linear-gradient(105deg, transparent 30%, #000 100%); }
@keyframes drift { to { transform: translate(-50px, 40px) scale(1.12); } }
.hero-inner { position: relative; max-width: 1000px; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--rain); display: block; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: rgba(255,255,255,.78); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rain); color: var(--ink); }
.btn-primary:hover { background: #63bdec; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

.stats { position: relative; margin-top: 88px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 30px 24px 38px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.stat b { display: block; font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.66); line-height: 1.45; }

/* Sections */
.home section { padding: 76px 0; }
.section-head { max-width: 980px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; margin-top: 14px; color: var(--ink); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 680px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { color: var(--muted); font-size: 18px; }
.about-copy p strong { color: var(--ink); font-weight: 600; }
.pillars { display: grid; gap: 14px; }
.pillar { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, transform .2s; }
.pillar:hover { border-color: var(--rain); transform: translateX(4px); }
.pillar .num { font-family: var(--display); font-weight: 700; font-size: 15px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--rain-soft); color: var(--rain-deep); }
.pillar h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.pillar p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* Products */
.home #products { background: var(--paper); }
.flagships { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(11,27,43,.35); }
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--rain-soft); color: var(--rain-deep); margin-bottom: 20px; }
.card h3 { font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .meta { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--text); font-weight: 500; }
.card .meta a { color: var(--rain-deep); text-decoration: none; font-weight: 600; }
.card .meta a:hover { text-decoration: underline; }
.card.dark { background: var(--ink); border-color: var(--ink); }
.card.dark h3 { color: var(--white); font-size: 32px; }
.card.dark h3 a{text-decoration: none;}
.card.dark p { color: rgba(255,255,255,.72); }
.card.dark .tag { background: rgba(63,169,224,.18); color: #8fd1f4; }
.card.dark .meta { color: rgba(255,255,255,.85); }
.card.dark .meta a { color: #8fd1f4; }
.card.dark .tag.sun { background: rgba(255,182,72,.16); color: var(--sun); }
.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.others .card { padding: 26px; }
.others .card h3 { font-size: 21px; }
.others .card h3 a{text-decoration: none;}
.others .card p { font-size: 15px; line-height: 1.55; }

/* Contact */
.home #contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.home #contact::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(63,169,224,.28), transparent 65%); }
.home #contact .wrap { position: relative; }
.home #contact .eyebrow { color: #8fd1f4; }
.home #contact h2 { color: var(--white); }
.home #contact .section-head p { color: rgba(255,255,255,.7); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact-layout .section-head { margin-bottom: 0; }
.contact-grid { display: block; padding: 6px 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.contact-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; }
.contact-item + .contact-item { border-top: 1px solid rgba(255,255,255,.12); }
.contact-item h3 { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8fd1f4; margin: 0; }
.contact-item p, .contact-item a { color: var(--white); text-decoration: none; line-height: 1.6; }
.contact-item p { font-size: 16px; }
.contact-item a { display: block; font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.contact-item a:hover { color: var(--rain); }
.contact-item small { display: block; margin-top: 6px; color: rgba(255,255,255,.55); font-size: 14px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 6. Privacy page ===== */
.banner { background: var(--grad); color: #fff; padding: 56px 0 60px; }
.banner h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); font-weight: 800; margin: 12px 0 14px; }
.banner p { color: rgba(255,255,255,.72); font-size: 15.5px; }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 76px; align-items: start; }
.toc { position: sticky; top: 112px; font-size: 15px; }
.toc p { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--rain); }

.policy { max-width: 720px; }
.policy .intro { font-size: 19px; color: var(--ink); padding-bottom: 8px; }
.policy section { padding-top: 40px; }
.policy h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.policy p + p { margin-top: 14px; }
.policy p { color: #3a4a5b; }
.policy dl { display: grid; gap: 12px; margin-top: 6px; }
.policy dl div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.policy dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.policy dd { color: #3a4a5b; font-size: 16px; line-height: 1.6; }
.contact-card { margin-top: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; gap: 10px; }
.contact-card div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; }
.contact-card span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8fd1f4; }
.contact-card a, .contact-card address { color: #fff; text-decoration: none; font-style: normal; font-size: 16px; line-height: 1.55; }
.contact-card a:hover { color: var(--rain); }

/* ===== 7. Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .others { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 56px; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .wrap { height: 72px; }
  .logo img { height: 44px; }
  .nav ul li:not(:last-child) { display: none; }
  .home section { padding: 56px 0; }
  .hero { padding: 116px 0 60px; }
  .flagships, .others { grid-template-columns: 1fr; }
  .stat { padding: 22px 14px 26px 0; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .contact-item { grid-template-columns: 1fr; gap: 6px; }
  .banner { padding: 40px 0 44px; }
  .policy h2 { font-size: 24px; }
  .contact-card div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
