/* ===========================================================
   TPanel marketing site — styles
   Brand: red #E53935 / #D32F2F · ink #111111 · Inter
   =========================================================== */

:root {
  --red: #E53935;
  --red-dark: #D32F2F;
  --ink: #111111;
  --muted: #6B7280;
  --surface: #F5F5F7;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #111111;
  --text-soft: #4b5563;
  --card: #ffffff;
  --border: #e7e9ee;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 12px 32px -12px rgba(17,17,17,.12);
  --shadow-lg: 0 24px 60px -20px rgba(17,17,17,.28);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --nav-h: 68px;
}

:root.dark {
  --bg: #0c0c0e;
  --bg-alt: #121317;
  --text: #f4f5f7;
  --text-soft: #a1a6b0;
  --card: #17181d;
  --border: #24262e;
  --surface: #16171b;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(229,57,53,.6); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(229,57,53,.7); }
.btn--outline { border-color: var(--border); background: var(--card); color: var(--text); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { color: var(--red); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__logo { height: 34px; width: auto; display: block; }
.nav .brand__logo--dark { display: none; }
.dark .nav .brand__logo { display: none; }
.dark .nav .brand__logo--dark { display: block; }
.brand__slogan {
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .005em;
  padding-left: 14px; border-left: 1px solid var(--border); white-space: nowrap;
}
.brand__slogan b { color: var(--red); font-weight: 700; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-weight: 500; font-size: 15px; color: var(--text-soft); transition: color .15s; }
.nav__links a:hover { color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer; transition: all .15s;
}
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.icon-moon { display: none; }
.dark .icon-sun { display: none; }
.dark .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.nav__burger span { height: 2px; width: 22px; background: var(--text); border-radius: 2px; transition: .25s; margin: 0 auto; }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 340px at 78% -6%, rgba(229,57,53,.16), transparent 60%),
    radial-gradient(560px 320px at 8% 12%, rgba(99,102,241,.10), transparent 55%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__copy { max-width: 560px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 22%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229,57,53,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(229,57,53,.55)} 70%{box-shadow:0 0 0 8px rgba(229,57,53,0)} 100%{box-shadow:0 0 0 0 rgba(229,57,53,0)} }

.hero__title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.hero__title .grad {
  display: block; margin-top: 8px;
  background: linear-gradient(100deg, var(--red), #ff6b5e 60%, var(--red-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--text-soft); font-size: 18px; margin: 22px 0 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: 28px; list-style: none; padding: 0; margin: 34px 0 0; flex-wrap: wrap; }
.hero__facts li { color: var(--text-soft); font-size: 14px; }
.hero__facts strong { display: block; font-size: 22px; color: var(--text); font-weight: 800; letter-spacing: -.02em; }

.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); background: var(--card);
}
.hero__shot .shot { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .4s ease; }
.hero__shot .shot:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }

/* trust strip */
.trust { margin-top: 56px; text-align: center; }
.trust__label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.trust__row span { font-weight: 700; font-size: 15px; color: var(--text-soft); opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section__head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section__head p { color: var(--text-soft); font-size: 17px; margin-top: 14px; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--red) 40%, var(--border)); box-shadow: var(--shadow-lg); }
.feature__icon {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--text);
  border-radius: 12px; background: color-mix(in srgb, var(--red) 10%, transparent); margin-bottom: 16px;
}
.bi { display: block; width: 24px; height: 24px; }
.feature__icon .bi { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 15px; }
.mini h3 { font-size: 18px; margin-bottom: 8px; }
.mini p { color: var(--text-soft); font-size: 15px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 14px; }
.split__copy > p { color: var(--text-soft); font-size: 17px; margin-bottom: 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-soft); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--red); border-radius: 50%;
}

/* dashboard tabs */
.shot--tabs .shot__tabs { display: flex; gap: 6px; padding: 10px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.shot__tab { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--text-soft); cursor: pointer; transition: all .15s; }
.shot__tab.is-active { background: var(--red); color: #fff; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chips span {
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  border: 1px solid var(--border); background: var(--card);
  padding: 8px 16px; border-radius: 999px; transition: all .15s;
}
.chips span:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ---------- Hierarchy ---------- */
.hier { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 48px; }
.hier__node {
  font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hier__node--leaf { background: var(--red); color: #fff; border-color: var(--red); }
.hier__arrow { color: var(--red); font-weight: 800; font-size: 20px; }

/* ---------- Security ---------- */
.security__grid { margin-top: 8px; }
.sec { display: flex; gap: 12px; align-items: flex-start; }
.sec__ic { flex-shrink: 0; display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--text); }
.sec__ic .bi { width: 23px; height: 23px; }
.sec strong { display: block; font-size: 15px; }
.sec p { margin: 2px 0 0; font-size: 14px; color: var(--text-soft); }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .02em;
}
.plan__name { font-size: 18px; font-weight: 700; color: var(--red); }
.plan__price { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan__price .amt { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.plan__price .per { color: var(--muted); font-weight: 600; }
.plan__note { color: var(--text-soft); font-size: 14px; margin: 0 0 20px; min-height: 40px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text-soft); }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ---------- CTA ---------- */
.cta { padding: 84px 0; background: linear-gradient(120deg, var(--red), var(--red-dark)); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.18), transparent 60%); }
.cta__inner { position: relative; text-align: center; color: #fff; max-width: 680px; margin: 0 auto; }
.cta__inner h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cta__inner p { font-size: 18px; opacity: .92; margin: 16px 0 30px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cbd0da; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand__mark { height: 30px; }
.footer__tag { color: #9aa0ac; font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer__col a { display: block; color: #9aa0ac; font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--red); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; color: #8b91a0; flex-wrap: wrap; gap: 8px; }
.footer__legal a:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) { .brand__slogan { display: none; } }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav .btn--ghost, .nav .btn--primary { display: none; }
  .hero__inner, .split { grid-template-columns: 1fr; }
  .hero__shot { order: -1; }
  .hero__shot .shot { transform: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .brand__slogan { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav__mobile.is-open {
    display: flex; flex-direction: column; gap: 6px; padding: 16px 24px 22px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav__mobile a { padding: 10px 4px; color: var(--text-soft); font-weight: 600; }
  .nav__mobile .btn { margin-top: 8px; }
  .burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-open span:nth-child(2) { opacity: 0; }
  .burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .pricing, .footer__cols { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .hero__facts { gap: 20px; }
  .section { padding: 60px 0; }
  .hier__arrow { transform: rotate(90deg); }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
