:root {
  html {
  scroll-behavior: smooth;
}
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --red: #ff1b1c;
  --red-dark: #d91012;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}
.article-content .dashboard-objective {
  margin: 20px 0 55px;
  padding: 34px 38px;
  background: rgba(120,120,120,0.08);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
}

.article-content .dashboard-objective h2 {
  font-size: 2rem;
  margin: 0 0 18px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.article-content .dashboard-objective p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.dashboard-objective h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.dashboard-objective p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-soft);
  margin: 0;
}
html[data-theme="dark"] {
  --bg: #050505;
  --bg-soft: #0b0b0d;
  --bg-card: #111113;
  --text: #f5f5f5;
  --text-soft: #a3a3a3;
  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  --hero-glow: rgba(255, 27, 28, 0.22);
  --header: rgba(5, 5, 5, 0.84);
  --logo-filter: invert(1);
  --dashboard-bg: #101114;
  --dashboard-panel: #17181c;
  --dashboard-text: #ffffff;
  --dashboard-soft: #9ca3af;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-card: #ffffff;
  --text: #080808;
  --text-soft: #5f6368;
  --border: rgba(0, 0, 0, 0.11);
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.10);
  --hero-glow: rgba(255, 27, 28, 0.10);
  --header: rgba(255, 255, 255, 0.88);
  --logo-filter: none;
  --dashboard-bg: #f3f4f6;
  --dashboard-panel: #ffffff;
  --dashboard-text: #09090b;
  --dashboard-soft: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}

.brand-logo {
  display: flex;
  align-items: center;
  min-width: 260px;
  max-width: 42vw;
  height: 58px;
  overflow: visible;
}

.brand-logo-text {
  display: none;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  color: var(--text);
}

.brand-logo-text span { color: var(--red); font-size: 0.82em; vertical-align: top; margin-left: 2px; }

.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: var(--logo-filter);
}

.logo-img.is-hidden { display: none; }
.logo-img.is-hidden + .brand-logo-text { display: block; }

.nav-links { display: flex; gap: 28px; color: var(--text-soft); font-size: 0.93rem; font-weight: 700; }
.nav-links a { position: relative; padding: 30px 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}
.nav-cta:hover, .btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }

.hero {
  min-height: 100vh;
  padding: 146px 0 86px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 30%, var(--hero-glow), transparent 35%),
    radial-gradient(circle at 18% 20%, rgba(255, 27, 28, 0.07), transparent 28%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 58px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px rgba(255, 27, 28, 0.85);
}
.hero h1 {
  max-width: 700px;
  margin-bottom: 26px;
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}
.hero h1 span, .red-dot { color: var(--red); }
.hero p { max-width: 630px; margin-bottom: 34px; color: var(--text-soft); font-size: 1.1rem; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: var(--transition);
}
.btn-primary { color: #fff; background: var(--red); box-shadow: 0 18px 36px rgba(255, 27, 28, 0.28); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }

.dashboard-preview {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 86%, var(--red) 14%);
  box-shadow: var(--shadow);
}
.dashboard-window {
  min-height: 500px;
  padding: 24px;
  border-radius: 22px;
  background: var(--dashboard-bg);
  border: 1px solid var(--border);
  color: var(--dashboard-text);
  overflow: hidden;
}
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dashboard-top h3 { font-size: 1.1rem; letter-spacing: -0.04em; }
.dashboard-top small, .select-pill, .dash-kpi small { color: var(--dashboard-soft); }
.selects { display: flex; gap: 10px; }
.select-pill {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--dashboard-panel);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  min-width: 110px;
}
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.dash-kpi, .dash-panel {
  padding: 14px;
  background: var(--dashboard-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.dash-kpi strong { display: block; font-size: 1.35rem; letter-spacing: -0.05em; margin-bottom: 4px; }
.dash-kpi span { color: #16a34a; font-size: 0.72rem; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 12px; margin-bottom: 12px; }
.dash-bottom { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 12px; }
.dash-panel { min-height: 150px; }
.dash-panel h4 { font-size: 0.8rem; margin-bottom: 14px; }
.bar-chart { height: 95px; display: flex; gap: 6px; align-items: end; }
.bar-chart span { flex: 1; min-width: 8px; border-radius: 6px 6px 0 0; background: linear-gradient(to top, var(--red-dark), var(--red)); opacity: 0.85; }
.donut {
  width: 105px; height: 105px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(#ef4444 0 32%, #3b82f6 32% 56%, #22c55e 56% 72%, #f59e0b 72% 100%);
  position: relative;
}
.donut::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--dashboard-panel); }
.line-chart {
  height: 95px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 8%, rgba(255, 27, 28, 0.2) 8% 18%, transparent 18% 28%, rgba(255, 27, 28, 0.4) 28% 42%, transparent 42% 55%, rgba(255, 27, 28, 0.22) 55% 68%, transparent 68%),
    repeating-linear-gradient(to top, transparent 0 22px, rgba(128,128,128,0.18) 22px 23px);
  clip-path: polygon(0 80%, 12% 58%, 23% 68%, 34% 38%, 45% 55%, 58% 24%, 70% 38%, 83% 18%, 100% 35%, 100% 100%, 0 100%);
}
.table-lines { display: grid; gap: 8px; }
.table-lines span { display: block; height: 11px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,27,28,0.55), rgba(255,255,255,0.08)); }
html[data-theme="light"] .table-lines span { background: linear-gradient(90deg, rgba(255,27,28,0.44), rgba(0,0,0,0.08)); }
.funnel { display: grid; gap: 7px; place-items: center; }
.funnel span { display: block; height: 24px; border-radius: 4px; background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.funnel span:nth-child(1) { width: 100%; }
.funnel span:nth-child(2) { width: 72%; }
.funnel span:nth-child(3) { width: 48%; }
.funnel span:nth-child(4) { width: 26%; }

.metrics-band {
  padding: 70px 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
}

.motto-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 34px 42px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  max-width: 1100px;
  margin: 0 auto;
}

.motto-star {
  font-size: 3.8rem;
  font-weight: 700;
  color: #ff024e;
  line-height: 1;
  flex-shrink: 0;
  opacity: 1;
}

.motto-text {
  font-size: 1.55rem;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 900px;
}

.motto-text strong {
  font-weight: 700;
  color: var(--accent);
}
section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section-soft { background: var(--bg-soft); }
.section-heading { max-width: 790px; margin-bottom: 48px; }
.label { display: block; margin-bottom: 10px; color: var(--red); font-size: 0.78rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.12em; }
.section-heading h2, .page-hero h1 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -0.065em; }
.section-heading p, .page-hero p { color: var(--text-soft); font-size: 1.06rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card, .dashboard-card, .blog-card, .content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card { padding: 28px; }
.card:hover, .dashboard-card:hover, .blog-card:hover, .content-card:hover { transform: translateY(-6px); border-color: rgba(255, 27, 28, 0.42); }
.icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; background: rgba(255, 27, 28, 0.10); color: var(--red); border: 1px solid rgba(255, 27, 28, 0.28); font-weight: 950; }
.card h3 { margin-bottom: 10px; font-size: 1.12rem; letter-spacing: -0.04em; }
.card p { color: var(--text-soft); font-size: 0.94rem; }

.dashboard-grid, .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dashboard-image, .blog-image {
    height: 185px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.dashboard-image::after, .blog-image::after {
  display: none;
}
.card-body { padding: 24px; }
.card-body small { color: var(--red); font-size: 0.72rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.09em; }
.card-body h3 { margin: 10px 0; font-size: 1.16rem; line-height: 1.25; letter-spacing: -0.04em; }
.card-body p { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 18px; }
.text-link { color: var(--red); font-weight: 900; font-size: 0.92rem; }

.page-hero { padding: 150px 0 70px; background: linear-gradient(135deg, var(--bg), var(--bg-soft)); border-bottom: 1px solid var(--border); }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 42px; align-items: start; }
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 70px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.article-content h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin-bottom: 32px;
  color: var(--text);
}

.article-content h2 {
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  margin: 48px 0 18px;
  color: var(--text);
}

.article-content p {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 1.12rem;
  line-height: 1.85;
}

.article-content p:first-of-type {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text);
}

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 30px 0;
  padding-left: 0;
  list-style: none;
}

.article-content li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.article-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
}

.article-content ol {
  counter-reset: item;
}

.article-content ol li {
  counter-increment: item;
}

.article-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  line-height: 20px;
}

.article-content blockquote {
  margin: 42px 0;
  padding: 30px 36px;
  border-left: 4px solid var(--accent);
  background: rgba(120, 120, 120, 0.10);
  border-radius: 14px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.sidebar { display: grid; gap: 18px; }
.sidebar-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.sidebar-box h3 { margin-bottom: 10px; }
.looker-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: center; }
.profile-box { min-height: 460px; border-radius: 34px; background: radial-gradient(circle at 20% 20%, rgba(255, 27, 28, 0.16), transparent 30%), linear-gradient(135deg, var(--bg-card), var(--bg-soft)); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; padding: 36px; }
.profile-box img { width: min(330px, 82%); height: auto; filter: var(--logo-filter); }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.skill { padding: 8px 12px; border-radius: 999px; background: rgba(255, 27, 28, 0.08); color: var(--red); border: 1px solid rgba(255, 27, 28, 0.20); font-weight: 850; font-size: 0.84rem; }

.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 60px; border-radius: 38px; background: radial-gradient(circle at 16% 20%, var(--hero-glow), transparent 34%), linear-gradient(135deg, var(--bg-card), var(--bg-soft)); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-box h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.065em; }
.contact-box p { max-width: 680px; color: var(--text-soft); }

footer { padding: 46px 0 30px; background: var(--bg); color: var(--text-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer-logo { width: 230px; max-width: 100%; height: auto; margin-bottom: 16px; filter: var(--logo-filter); }
.footer-grid h4 { color: var(--text); margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid p, .footer-grid a { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: 0.93rem; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; }

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .brand-logo { min-width: 220px; max-width: 48vw; }
  .logo-img { height: 46px; }
}

@media (max-width: 980px) {
  .motto-band { flex-direction: column; gap: 10px; }
  .hero-grid, .about-grid, .contact-box, .article-layout { grid-template-columns: 1fr; }
  .dashboard-preview {
  display: none;
}
  .cards, .dashboard-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .dash-kpis, .dash-grid, .dash-bottom { grid-template-columns: 1fr; }
  .dashboard-window { min-height: auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { height: 76px; }
  .brand-logo { min-width: 170px; max-width: 58vw; height: 44px; }
  .logo-img { height: 38px; }
  .brand-logo-text { font-size: 1.45rem; }
  .hero, .page-hero { padding-top: 112px; }
  .contact-box, .article-content { padding: 32px 24px; }
  .selects { display: none; }
}