/* =========================================================================
   Juvo Software - company site. Light and clean: white, charcoal, Juvo red.
   ========================================================================= */

:root {
  /* Brand (logo kit): red #F41320, charcoal #282828. The red is used as is
     for marks and rules; text and buttons use a deeper red that passes
     contrast on white. */
  --red-mark:  #f41320;
  --red:       #c8101b;
  --red-dark:  #a50d16;
  --ink:       #282828;
  --muted:     #5a5a5a;
  --faint:     #6e6e6e;
  --bg:        #ffffff;
  --soft:      #f6f5f3;
  --border:    #e6e3df;

  --shadow-sm: 0 1px 2px rgba(40, 40, 40, .06), 0 1px 3px rgba(40, 40, 40, .05);
  --shadow-lg: 0 18px 40px rgba(40, 40, 40, .12), 0 6px 14px rgba(40, 40, 40, .06);

  --radius:    14px;
  --container: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid rgba(200, 16, 27, .35); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); }
.h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem;
  line-height: 1; padding: 15px 24px; border-radius: 10px; border: 1.5px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--border); background: #fff; }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--red); }

/* Hero */
.hero { padding: 88px 0 96px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero .lead { max-width: 38ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
}
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red-mark);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts li {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.facts b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.facts span { color: var(--muted); font-size: .96rem; }

/* Product */
.product-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.product-logo { height: 52px; width: auto; margin-bottom: 22px; }
.points { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.points li { padding-left: 22px; position: relative; color: var(--muted); }
.points li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--red-mark);
}
.points b { color: var(--ink); }
.window {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-lg); padding: 12px;
}
.window img { border-radius: 8px; width: 100%; }
.window figcaption { margin: 10px 4px 2px; font-size: .86rem; color: var(--faint); }

/* Contact */
.contact { text-align: center; }
.contact .lead { max-width: 52ch; margin: 0 auto 28px; }
.contact-mail { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; }
.contact-note { margin-top: 18px; color: var(--muted); font-size: .96rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 40px 0; font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer img { height: 30px; width: auto; }
.site-footer a { color: #fff; }

/* Motion: the hero arrives in reading order; off for reduced motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-grid > div > * { animation: rise .6s cubic-bezier(.22, .65, .3, 1) both; }
.hero-grid > div > *:nth-child(2) { animation-delay: .08s; }
.hero-grid > div > *:nth-child(3) { animation-delay: .16s; }
.hero-grid > div > *:nth-child(4) { animation-delay: .24s; }
.hero .photo { animation: rise .75s .2s cubic-bezier(.22, .65, .3, 1) both; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid, .about-grid, .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-grid .window { order: 2; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .brand img { height: 34px; }
  .btn { padding: 14px 20px; }
}
