/* =============================================================
   dmedia.ch — Digimedia product page
   Consumes the Illetes theme tokens (css/theme-illetes.css).
   Light, warm-neutral aesthetic. Amber-orange accent (#f18700).
   ============================================================= */

:root {
  /* Map Illetes theme tokens → semantic names used below */
  --bg:           var(--color-surface-50);    /* page background (warm near-white) */
  --bg-alt:       var(--color-surface-100);   /* alternating sections (warm white) */
  --surface:      #ffffff;                     /* cards */
  --surface-2:    var(--color-surface-100);
  --border:       var(--color-surface-200);
  --border-strong:var(--color-surface-300);

  --heading:      var(--color-surface-900);
  --text:         var(--color-surface-700);
  --text-mut:     var(--color-surface-600);
  --text-dim:     var(--color-surface-500);

  --primary:      var(--color-primary-500);   /* #f18700 */
  --primary-600:  var(--color-primary-600);
  --primary-700:  var(--color-primary-700);
  --primary-soft: var(--color-primary-50);
  --primary-soft2:var(--color-primary-100);
  --on-primary:   var(--color-primary-contrast-500);  /* near-black (theme cutoff) */

  --tertiary:     var(--color-tertiary-600);  /* steel blue */
  --tertiary-soft:var(--color-tertiary-50);
  --success:      var(--color-success-700);
  --success-soft: var(--color-success-50);
  --danger:       var(--color-error-600);

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius:    14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --shadow:    0 18px 48px -22px rgba(60, 45, 20, 0.35);
  --shadow-sm: 0 6px 20px -10px rgba(60, 45, 20, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Dark mode (html.dark) ----------
   Flips the surface scale to the theme's dark shades; the amber accent
   stays, soft tints become translucent so they read on dark. */
html.dark {
  --bg:            var(--color-surface-950);
  --bg-alt:        var(--color-surface-900);
  --surface:       var(--color-surface-900);
  --surface-2:     var(--color-surface-800);
  --border:        var(--color-surface-800);
  --border-strong: var(--color-surface-700);

  --heading:       oklch(1 0 0);
  --text:          var(--color-surface-300);
  --text-mut:      var(--color-surface-400);
  --text-dim:      var(--color-surface-500);

  --primary:       var(--color-primary-500);
  --primary-600:   var(--color-primary-400);   /* lighter accents/hover on dark */
  --primary-700:   var(--color-primary-300);   /* accent text reads light on dark */
  --primary-soft:  color-mix(in srgb, var(--color-primary-500) 16%, transparent);
  --primary-soft2: color-mix(in srgb, var(--color-primary-500) 32%, transparent);
  --on-primary:    var(--color-primary-contrast-500);

  --tertiary:      var(--color-tertiary-400);
  --success:       var(--color-success-400);
  --success-soft:  color-mix(in srgb, var(--color-success-500) 16%, transparent);
  --danger:        var(--color-error-400);

  --shadow:    0 22px 56px -22px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.accent { color: var(--primary-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 8px 22px -10px var(--color-primary-600);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--color-primary-700); }
.btn-ghost { border-color: var(--border-strong); color: var(--heading); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-700); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand-logo { height: 26px; width: auto; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--text-mut); font-weight: 500; font-size: 0.94rem; position: relative; transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--primary); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--heading); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Language switch */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-mut); font-weight: 600; font-size: 0.82rem; transition: border-color .2s, color .2s;
}
.lang-current:hover { color: var(--heading); border-color: var(--border-strong); }
.lang-current svg { transition: transform .25s var(--ease); }
.lang-switch.open .lang-current svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; list-style: none; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  max-height: min(70vh, 440px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.lang-menu::-webkit-scrollbar { width: 10px; }
.lang-menu::-webkit-scrollbar-track { background: transparent; }
.lang-menu::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--surface); background-clip: padding-box; }
.lang-menu::-webkit-scrollbar-thumb:hover { background: var(--text-dim); border-color: var(--surface); background-clip: padding-box; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-mut);
  padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; transition: background .15s, color .15s;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--heading); }
.lang-menu button[aria-current="true"] { color: var(--primary-700); background: var(--primary-soft); }

/* Theme toggle (matches the language pill) */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 34px; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-mut); transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { color: var(--heading); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 116px 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-glow {
  position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 62%);
  filter: blur(10px);
}
.waveform { position: absolute; bottom: 0; left: 0; width: 100%; height: 200px; opacity: 0.32; }
.wave { fill: none; stroke-width: 2; }
.wave-1 { stroke: var(--primary); opacity: 0.7; animation: waveShift 8s linear infinite; }
.wave-2 { stroke: var(--tertiary); opacity: 0.5; animation: waveShift 11s linear infinite reverse; }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-300px); } }

.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; margin-inline: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: var(--radius-pill);
  background: var(--primary-soft); border: 1px solid var(--primary-soft2); color: var(--primary-700);
  font-size: 0.82rem; font-weight: 600; margin-bottom: 26px;
}
.hero-title {
  font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1.04; margin-bottom: 22px;
}
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-mut); max-width: 680px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.hero-note { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 40px; }
.stat { text-align: center; }
.stat-num { display: block; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--primary-600); line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { display: block; color: var(--text-mut); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary-600); margin-bottom: 14px;
}
.section-title { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 16px; }
.section-subtitle { color: var(--text-mut); font-size: 1.08rem; }

/* ---------- How it works ---------- */
.how-grid { display: flex; align-items: stretch; justify-content: center; gap: 18px; flex-wrap: wrap; }
.how-card {
  flex: 1 1 0; min-width: 230px; max-width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; text-align: center; box-shadow: var(--shadow-sm);
}
.how-step {
  width: 40px; height: 40px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700;
}
.how-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.how-card p { color: var(--text-mut); font-size: 0.95rem; }
.how-arrow { display: flex; align-items: center; color: var(--border-strong); flex: 0 0 auto; }
.how-arrow svg { width: 40px; }

/* ---------- Modules ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.module-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.module-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.module-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-700); border: 1px solid var(--primary-soft2);
}
.module-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.module-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.module-card p { color: var(--text-mut); font-size: 0.93rem; flex: 1; }
.module-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.78rem; color: var(--text-dim); }

/* Free / License badge */
.badge-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.badge-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-free { background: var(--success-soft); color: var(--success); }
.badge-license { background: var(--primary-soft); color: var(--primary-700); }
.module-port { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- Download ---------- */
.suite-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow-sm); margin-bottom: 44px;
}
.suite-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--primary); color: var(--on-primary);
}
.suite-icon svg { width: 30px; height: 30px; }
.suite-body { flex: 1; min-width: 220px; }
.suite-body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.suite-body p { color: var(--text-mut); margin-bottom: 10px; max-width: 560px; }
.suite-meta { font-size: 0.85rem; color: var(--text-dim); display: inline-flex; gap: 8px; flex-wrap: wrap; }
.suite-meta .dot { opacity: .5; }
.suite-action { flex: 0 0 auto; }

.download-sub { text-align: center; font-size: 1.05rem; color: var(--text-mut); margin-bottom: 24px; font-weight: 600; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 44px; }
.download-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .25s, box-shadow .25s;
}
.download-row:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.download-row .dl-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--primary-soft); color: var(--primary-700); }
.download-row .dl-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-weight: 600; color: var(--heading); font-size: 0.96rem; }
.dl-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.dl-get {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.83rem; font-weight: 600; background: var(--surface-2); color: var(--heading); border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.download-row:hover .dl-get { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.req-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.req-card h3 { font-size: 1.15rem; margin-bottom: 16px; }
.req-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); font-style: italic; }

/* check list (shared by download + about) */
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-soft);
}
.check-list li::after {
  content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--text-mut); margin-bottom: 16px; }
.about-copy .section-title { text-align: left; }
.about-copy .kicker { display: inline-block; }
.about-copy .check-list { margin-top: 24px; }
.about-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; }
/* Both logo links share one width so the logos render equally wide */
.logo-link, .partner-link { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 320px; text-decoration: none; }
.logo-plate {
  display: grid; place-items: center; width: 100%; padding: 26px 30px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
/* White plate — micromedia wordmark is black; dark plate — RAVENNA wordmark is white */
.logo-plate.light { background: #fff; }
.logo-plate.dark { background: #14110e; border-color: var(--border-strong); }
.logo-plate img { width: 100%; height: auto; display: block; }
.logo-link:hover .logo-plate, .partner-link:hover .logo-plate { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.partner-caption { font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-mut); transition: color .2s; }
.partner-link:hover .partner-caption { color: var(--primary-700); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-copy .section-title, .contact-copy .section-subtitle { text-align: left; }
.contact-copy .kicker { display: inline-block; }
.contact-direct { margin-top: 32px; }
.contact-or { font-weight: 600; color: var(--heading); margin-bottom: 16px; }
.contact-details { display: grid; gap: 16px; }
.contact-details dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 2px; }
.contact-details dd { color: var(--text); }
.contact-details a:hover { color: var(--primary-700); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-mut); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--heading); font-family: inherit; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand-logo { height: 26px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-mut); font-size: 0.95rem; max-width: 300px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--heading); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-mut); font-size: 0.92rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--primary-700); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--border); padding-block: 22px; color: var(--text-dim); font-size: 0.85rem;
}
.footer-bottom.center { justify-content: center; }

/* Minimal footer (logo + brand line) */
.footer-min { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 36px; text-align: center; }
.footer-min .brand-logo { height: 30px; }
.footer-min p { color: var(--text-mut); font-size: 0.95rem; }

/* ---------- Intro ---------- */
.intro { padding: 20px 0 8px; text-align: center; }
.intro .kicker { display: inline-block; }
.intro-text { max-width: 720px; margin: 0 auto; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.55; color: var(--text); letter-spacing: -0.01em; }

/* ---------- Highlights carousel (top hero) ---------- */
.carousel { padding: 36px 0 8px; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .55s var(--ease); }
.slide {
  flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center;
  background: linear-gradient(120deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-sm);
  min-height: 300px;
}
.slide-platform { display: block; margin-top: 16px; font-size: 0.82rem; color: var(--text-dim); }
.slide-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: var(--radius-pill);
  background: var(--primary-soft); border: 1px solid var(--primary-soft2); color: var(--primary-700);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px;
}
.dot-new { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--primary); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.slide-title { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.slide-text { color: var(--text-mut); margin-bottom: 22px; max-width: 540px; }
.slide-visual { display: grid; place-items: center; color: var(--primary); }
.slide-visual svg { width: 100%; max-width: 240px; }
.slide-visual img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel-arrow {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-mut);
  transition: color .2s, border-color .2s, background .2s;
}
.carousel-arrow:hover { color: var(--heading); border-color: var(--border-strong); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: none; background: var(--border-strong);
  transition: background .2s, transform .2s;
}
.carousel-dots button[aria-current="true"] { background: var(--primary); transform: scale(1.3); }

/* ---------- Tools ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-card {
  display: flex; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tool-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow); }
.tool-icon {
  width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-700); border: 1px solid var(--primary-soft2);
}
.tool-icon svg { width: 30px; height: 30px; }
.tool-body { flex: 1; min-width: 0; }
.tool-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tool-head h3 { font-size: 1.3rem; }
.tool-body p { color: var(--text-mut); font-size: 0.95rem; margin-bottom: 18px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool-platform { font-size: 0.82rem; color: var(--text-dim); }
.tool-dllink { font-size: 0.85rem; font-weight: 600; color: var(--primary-700); }
.tool-dllink:hover { text-decoration: underline; }
.tool-soon { font-size: 0.85rem; font-weight: 600; color: var(--primary-700); }

/* "Coming soon" chip (reused across carousel, modules, download) */
.tag-soon {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--primary-soft); border: 1px solid var(--primary-soft2); color: var(--primary-700);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.dl-soon { display: flex; align-items: center; }

/* ---------- News embed (iframe of news/news.html) ---------- */
.news-embed {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #14110e;
}
.news-embed iframe { display: block; width: 100%; height: 820px; border: 0; }

/* ---------- Download cards (per product, Windows + macOS) ---------- */
.dl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 20px;
  transition: border-color .25s, box-shadow .25s;
}
.dl-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.dl-card-top { display: flex; align-items: center; gap: 16px; }
.dl-card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--primary-soft); color: var(--primary-700); border: 1px solid var(--primary-soft2);
}
.dl-card-icon svg { width: 28px; height: 28px; }
.dl-card-info { flex: 1; min-width: 0; }
.dl-card-info .tool-head { margin-bottom: 3px; }
.dl-card-ver { font-size: 0.82rem; color: var(--text-dim); }
.dl-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-buttons .btn { flex: 1; min-width: 130px; }
.dl-buttons .btn svg { width: 16px; height: 16px; }
.req-note { margin-top: 28px; text-align: center; font-size: 0.85rem; color: var(--text-dim); font-style: italic; }

/* ---------- News page ---------- */
.subhero { padding: 20px 0 40px; text-align: center; position: relative; }
.subhero .kicker { display: inline-block; }
.news-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-mut); font-size: 0.9rem; margin-bottom: 24px; transition: color .2s; }
.news-back:hover { color: var(--primary-700); }
.news-back svg { width: 16px; height: 16px; }
.news-wrap { padding-bottom: 96px; }
.news-list { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; }
.news-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .25s; }
.news-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-tag { padding: 4px 11px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary-700); }
.news-date { font-size: 0.82rem; color: var(--text-dim); }
.news-item h2 { font-size: 1.4rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.news-item p { color: var(--text-mut); }

/* Inline news article */
.news-article {
  max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-sm);
}
.news-article h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -0.025em; margin-bottom: 16px; }
.news-body { color: var(--text-mut); font-size: 1.05rem; margin-bottom: 26px; }
.news-figure { margin: 0 0 28px; }
.news-figure img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.news-figure figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--text-dim); }
.news-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.news-feat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.news-feat h3 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.news-feat h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); flex: 0 0 auto; }
.news-feat p { font-size: 0.9rem; color: var(--text-mut); }
@media (max-width: 620px) { .news-features { grid-template-columns: 1fr; } }

/* ---------- Legal / prose page (privacy, etc.) ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal-intro { font-size: 1.08rem; color: var(--text); margin-bottom: 8px; }
.legal h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 40px 0 14px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal h4 { font-size: 1rem; margin: 20px 0 8px; }
.legal p { color: var(--text-mut); margin-bottom: 14px; }
.legal address { font-style: normal; color: var(--text); margin-bottom: 14px; }
.legal ul, .legal ol { color: var(--text-mut); margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--primary-700); }
.legal a:hover { text-decoration: underline; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .module-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid, .dl-cards { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-arrow { transform: rotate(90deg); }
  .slide { grid-template-columns: 1fr; padding: 28px; }
  .slide-content { order: 1; }
  .slide-visual { order: 2; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 24px;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 76px 0 64px; }
  .suite-card { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 520px) {
  .module-grid, .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tool-card { flex-direction: column; gap: 16px; }
}
