:root {
  --red: #ef272d;
  --red-dark: #c91822;
  --yellow: #ffe609;
  --ink: #17171a;
  --muted: #69696f;
  --paper: #f6f6f3;
  --white: #fff;
  --line: #e8e7e2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  height: 82px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 78px); background: var(--white); border-bottom: 1px solid #f0efeb;
  position: relative; z-index: 10;
}
.brand { display: flex; width: 190px; align-items: center; }
.brand img, footer img { display: block; width: 100%; height: auto; }
.header-link { font-size: 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.header-link span { display: grid; place-items: center; width: 31px; height: 31px; color: var(--white); background: var(--red); border-radius: 50%; }

.hero {
  min-height: 610px; padding: 96px clamp(24px, 8vw, 128px); color: var(--white); background: var(--red);
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: 70px;
}
.hero::after { content: ""; position: absolute; inset: auto -8% -150px auto; width: 520px; height: 520px; border: 85px solid rgba(255,255,255,.055); border-radius: 50%; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 330px; height: 330px; background: rgba(255,230,9,.12); left: -160px; top: -130px; }
.hero-glow-two { width: 230px; height: 230px; background: rgba(111,0,0,.13); left: 42%; bottom: -170px; }
.hero-copy { max-width: 680px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; margin: 0 0 22px; }
.eyebrow span { width: 26px; height: 3px; border-radius: 4px; background: var(--yellow); }
.eyebrow.dark { color: var(--red); }
.eyebrow.dark span { background: var(--red); }
.hero h1 { font-family: Manrope, sans-serif; font-size: clamp(49px, 5.6vw, 82px); line-height: .99; letter-spacing: -.055em; margin: 0 0 26px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-text { max-width: 580px; font-size: 18px; line-height: 1.65; margin: 0 0 34px; color: rgba(255,255,255,.87); }
.hero-cta { width: fit-content; padding: 8px 8px 8px 21px; min-height: 52px; display: flex; align-items: center; gap: 18px; border-radius: 999px; background: var(--white); color: var(--red); font-size: 14px; font-weight: 800; box-shadow: 0 12px 30px rgba(121,0,7,.2); }
.hero-cta span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 18px; }

.hero-panel { height: 370px; position: relative; z-index: 2; }
.panel-card { position: absolute; background: var(--white); color: var(--ink); box-shadow: 0 30px 70px rgba(107,0,6,.24); }
.panel-main { width: min(100%, 390px); height: 235px; top: 54px; right: 15px; border-radius: 28px; padding: 44px; transform: rotate(-3deg); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.panel-main::after { content: ""; position: absolute; left: 44px; right: 44px; bottom: 35px; height: 6px; border-radius: 8px; background: linear-gradient(90deg,var(--red) 0 72%,#eee 72%); }
.panel-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff1f1; color: var(--red); display: grid; place-items: center; font-size: 22px; font-weight: 900; margin-bottom: 18px; }
.panel-main strong { font: 800 25px Manrope, sans-serif; }
.panel-main small { margin-top: 6px; color: var(--muted); font-size: 14px; }
.panel-float { left: 0; top: 4px; border-radius: 22px; padding: 18px 25px; transform: rotate(5deg); display: flex; flex-direction: column; }
.panel-float span { color: var(--red); font: 800 30px Manrope, sans-serif; line-height: 1; }
.panel-float small { margin-top: 5px; color: var(--muted); font-weight: 700; }
.panel-bolt { position: absolute; right: -5px; bottom: 4px; width: 96px; height: 96px; border-radius: 28px; transform: rotate(8deg); background: var(--yellow); color: var(--red); display: grid; place-items: center; font: 800 60px Manrope, sans-serif; box-shadow: 0 25px 50px rgba(107,0,6,.22); }

.apps-section { padding: 96px clamp(24px, 6vw, 96px) 110px; max-width: 1500px; margin: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 32px; }
.section-heading h2 { font: 800 clamp(34px, 4vw, 54px) Manrope, sans-serif; letter-spacing: -.045em; margin: 0; }
.search-box { width: min(380px, 100%); height: 57px; padding: 0 20px; display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: .2s; }
.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(239,39,45,.08); }
.search-box span { color: var(--red); font-size: 25px; line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #9a999d; }
.results-meta { display: flex; justify-content: space-between; align-items: center; min-height: 30px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.results-meta button { padding: 0; border: 0; background: none; color: var(--red); font-weight: 700; cursor: pointer; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.app-card { min-height: 338px; padding: 27px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 22px; transition: transform .25s, box-shadow .25s, border-color .25s; animation: cardIn .45s ease both; }
.app-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 18px 50px rgba(35,35,38,.11); }
.app-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; top: -75px; right: -65px; background: rgba(239,39,45,.06); transition: .25s; }
.app-card:hover::after { transform: scale(1.6); }
.app-logo-wrap { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid #eeede9; border-radius: 17px; overflow: hidden; background: #fff; margin-bottom: 22px; }
.app-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.app-card h3 { font: 800 20px Manrope, sans-serif; letter-spacing: -.025em; margin: 0 0 10px; }
.app-card p { margin: 0; color: var(--muted); line-height: 1.53; font-size: 14px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 24px; }
.guide-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border-radius: 10px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; transition: .2s; }
.guide-link:hover { background: var(--red-dark); transform: translateY(-1px); }
.guide-link::after { content: "↗"; font-size: 13px; }
.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state div { width: 70px; height: 70px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: #fff; color: var(--red); font-size: 34px; }
.empty-state h3 { color: var(--ink); margin-bottom: 5px; }
.empty-state p { margin-top: 0; }

footer { min-height: 190px; padding: 40px clamp(24px, 6vw, 96px); display: flex; align-items: center; gap: 42px; background: #17171a; color: #fff; }
.footer-brand { width: 190px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
footer img { width: 190px; }
.company-site { color: #fff; font-size: 13px; font-weight: 700; transition: color .2s; }
.company-site:hover { color: var(--yellow); }
footer p { color: #aaa; }
footer > a { margin-left: auto; font-size: 13px; font-weight: 700; }

@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-panel { display: none; }
  .apps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .site-header { height: 70px; padding-inline: 18px; }
  .brand { width: 150px; }
  .header-link { font-size: 0; gap: 0; }
  .hero { min-height: 560px; padding: 70px 24px; }
  .hero h1 { font-size: 47px; }
  .hero-text { font-size: 16px; }
  .apps-section { padding: 72px 18px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 315px; }
  footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  footer > a { margin: 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }
