/* ==========================================================
   Hazard Studio — site styles (2026 redesign)
   ========================================================== */
:root {
  --bg: #0b0b10;
  --bg-2: #12121a;
  --surface: #171722;
  --surface-2: #1e1e2b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f7;
  --muted: #a2a2b3;
  --dim: #6f6f82;
  --accent: #ff4d3d;
  --accent-2: #ff8a3d;
  --grad: linear-gradient(135deg, #ff4d3d 0%, #ff8a3d 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 77, 61, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 77, 61, .8); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(11, 11, 16, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(255, 77, 61, .8);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand small { font-weight: 500; color: var(--muted); font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { height: 42px; padding: 0 20px; font-size: 14px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); cursor: pointer; place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(150px + env(safe-area-inset-top, 0px)) 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/slider-bg-1.jpg") center/cover no-repeat;
  opacity: .22;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -180px;
  background: radial-gradient(closest-side, rgba(255, 77, 61, .35), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted);
  margin-bottom: 26px;
}
.badge b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; }
.hero-stats span { color: var(--dim); font-size: 14px; }

.hero-visual { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transform: rotate(-6deg); }
.hero-visual .col { display: flex; flex-direction: column; gap: 18px; }
.hero-visual .col:nth-child(2) { margin-top: 46px; }
.hero-visual .col:nth-child(3) { margin-top: -20px; }
.hero-visual img {
  width: 100%; aspect-ratio: 1; border-radius: 26%; box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
  animation: float 6s ease-in-out infinite;
}
.hero-visual .col:nth-child(2) img { animation-delay: -2s; }
.hero-visual .col:nth-child(3) img { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee / trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; overflow: hidden; }
.strip-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.strip-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Apps ---------- */
.apps-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.apps-toolbar .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font: 500 14px var(--font); cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.app-card[hidden] { display: none !important; }
.app-top { display: flex; gap: 16px; align-items: center; }
.app-top img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .7); }
.app-top h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.app-cat { font-size: 13px; color: var(--dim); margin-top: 3px; }
.app-desc { color: var(--muted); font-size: 14.5px; flex: 1; }
.app-links { display: flex; gap: 8px; }
.store {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.store svg { width: 16px; height: 16px; }
.store:hover { background: rgba(255, 255, 255, .1); border-color: var(--line-2); }
.tag {
  position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.tag-new { background: rgba(61, 220, 151, .14); color: #3ddc97; }
.tag-hot { background: rgba(255, 77, 61, .16); color: #ff7a6b; }

/* ---------- Features ---------- */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(255, 77, 61, .12); color: var(--accent-2);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Split (about teaser) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float-card {
  position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 18px 20px; border-radius: 16px;
  background: rgba(11, 11, 16, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); display: flex; gap: 14px; align-items: center;
}
.float-card .stars { color: #ffc24b; letter-spacing: 2px; font-size: 15px; }
.float-card p { font-size: 14px; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--accent-2); margin-top: 1px; }
.checklist b { color: var(--text); font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 72px 56px; text-align: center;
  background: linear-gradient(135deg, rgba(255, 77, 61, .92), rgba(255, 138, 61, .9)), url("../img/cta-bg.jpg") center/cover;
}
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; max-width: 720px; margin: 0 auto; }
.cta p { color: rgba(255, 255, 255, .88); margin: 16px auto 32px; max-width: 560px; font-size: 17px; }
.cta .btn-light { background: #fff; color: #1a1a22; }
.cta .btn-light:hover { transform: translateY(-2px); }
.cta .btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(160px + env(safe-area-inset-top, 0px)) 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-img, url("../img/about-breadcrumb-bg.jpg")) center/cover;
  opacity: .18;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: 50%; top: -300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 77, 61, .3), transparent 70%);
}
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 620px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Timeline / values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.value .num { font-family: var(--display); font-size: 14px; color: var(--accent-2); font-weight: 700; margin-bottom: 18px; display: block; }
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.contact-card .feature-icon { margin: 0; flex: none; }
.contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.contact-card p, .contact-card li { color: var(--muted); font-size: 15px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.contact-card a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.contact-card a:hover { border-color: var(--accent-2); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

.mini-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 calc(32px + env(safe-area-inset-bottom, 0px)); margin-top: 104px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer-grid h4 { font-family: var(--font); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 15px; }
.footer-grid ul a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted);
  transition: all .2s;
}
.socials a:hover { color: #fff; border-color: transparent; background: var(--grad); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img, .strip-track { animation: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound .code { font-family: var(--display); font-size: clamp(96px, 20vw, 180px); font-weight: 800; line-height: 1; }
.notfound h1 { font-size: 28px; margin: 12px 0; }
.notfound p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 32px; }
}
@media (max-width: 880px) {
  .section { padding-block: 80px; }
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: calc(76px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: rgba(18, 18, 26, .97); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); }
  .hero-visual { max-width: 460px; margin: 20px auto 0; }
  .split-media { aspect-ratio: 16 / 11; }
  .values, .mini-contact { grid-template-columns: 1fr; }
  .cta { padding: 56px 24px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .feature-grid, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .apps-grid { grid-template-columns: 1fr; }
}
