:root {
  --bg: #07101f;
  --bg-soft: #0b1629;
  --panel: rgba(14, 28, 50, .86);
  --panel-strong: #101f38;
  --line: rgba(148, 184, 226, .18);
  --text: #f7fbff;
  --muted: #a8bad1;
  --cyan: #32b8eb;
  --cyan-soft: #79d7f5;
  --blue: #3157d8;
  --green: #4fd39a;
  --amber: #f4c86b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --radius: 24px;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(49, 87, 216, .20), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(50, 184, 235, .13), transparent 28rem),
    linear-gradient(180deg, #07101f 0%, #081425 58%, #07101f 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99; }
.skip-link:focus { left: 16px; top: 16px; background: white; color: #081425; padding: 10px 14px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(148, 184, 226, .12);
  background: rgba(7, 16, 31, .78);
  backdrop-filter: blur(18px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3157d8, #28b5e7);
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 10px 30px rgba(49,87,216,.28);
  font-size: 15px;
}
.brand small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; margin-top: -4px; }
.desktop-nav { display: flex; gap: 6px; align-items: center; }
.desktop-nav a, .mobile-menu a { color: var(--muted); font-weight: 650; font-size: 14px; padding: 10px 13px; border-radius: 10px; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"], .mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 11px; padding: 9px 12px; }
.mobile-menu { padding: 0 0 14px; }
.mobile-menu a { display: block; }

.hero { padding: 52px 0 38px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 24px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-soft); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: .99; letter-spacing: -.055em; margin: 12px 0 16px; max-width: 860px; }
.hero p { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 700px; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 18px; border-radius: 13px;
  font-weight: 800; font-size: 14px; border: 1px solid transparent;
  transition: .2s ease; cursor: pointer;
}
.button.primary { background: linear-gradient(135deg, #3157d8, #2fb8e8); color: white; box-shadow: 0 14px 34px rgba(49,87,216,.24); }
.button.secondary { background: rgba(255,255,255,.045); border-color: var(--line); color: var(--text); }
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button.is-pending { opacity: .62; cursor: not-allowed; filter: grayscale(.2); }

.hero-visual, .visual-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18,37,66,.88), rgba(8,20,38,.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual { padding: 16px; transform: perspective(1000px) rotateY(-3deg) rotateX(1deg); }
.hero-visual img { border-radius: 18px; width: 100%; }

.trust-strip { padding: 8px 0 34px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust-item { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 14px; padding: 14px; }
.trust-item strong { display: block; font-size: 18px; }
.trust-item span { color: var(--muted); font-size: 13px; }

.section { padding: 48px 0; }
.section.compact { padding: 34px 0; }
.section-head { max-width: 760px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.06; margin: 7px 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { grid-column: span 2; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(18,37,66,.94), rgba(10,22,41,.9)); padding: var(--s4-pad); position: relative; overflow: hidden; }
.product-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 999px; right: -90px; top: -110px; background: radial-gradient(circle, rgba(50,184,235,.24), transparent 68%); }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; position: relative; z-index: 1; }
.product-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; background: rgba(50,184,235,.10); border: 1px solid rgba(50,184,235,.25); font-weight: 900; color: var(--cyan-soft); }
.product-card h3 { margin: 16px 0 7px; font-size: 31px; letter-spacing: -.035em; }
.product-card p { color: var(--muted); max-width: 610px; margin: 0 0 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #cbd9ea; font-size: 12px; font-weight: 750; }
.badge.green { color: #8ee8bc; border-color: rgba(79,211,154,.25); background: rgba(79,211,154,.08); }
.catalog-note { border: 1px dashed rgba(148,184,226,.22); border-radius: var(--radius); padding: 22px; color: var(--muted); display: flex; align-items: flex-end; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { height:100%; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); padding: var(--s4-card-pad); }
.feature .icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(50,184,235,.09); color: var(--cyan-soft); display: grid; place-items: center; margin-bottom: 12px; font-weight: 900; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.split + .split { margin-top: 36px; }
.visual-card { padding: 12px; }
.visual-card img { width: 100%; border-radius: 16px; }
.copy h3 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 14px; }
.copy p { color: var(--muted); margin: 0 0 15px; }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: #dce7f4; }
.check-list li::before { content: "✓"; color: var(--green); font-weight: 900; }

.support-card { border: 1px solid rgba(50,184,235,.22); border-radius: 28px; background: linear-gradient(145deg, rgba(16,37,66,.9), rgba(8,22,41,.94)); padding: var(--s4-pad); display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: center; box-shadow: var(--shadow); }
.support-card h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -.04em; margin: 0 0 14px; }
.support-card p { color: var(--muted); max-width: 690px; }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.qr-wrap { background: white; padding: 14px; border-radius: 22px; }
.qr-wrap img { width: 100%; image-rendering: crisp-edges; }
.microcopy { font-size: 12px; color: var(--muted); margin-top: 12px; }

.download-panel { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.download-row { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 15px 17px; background: rgba(255,255,255,.02); }
.download-row + .download-row { border-top: 1px solid var(--line); }
.download-row strong { display: block; }
.download-row span { color: var(--muted); font-size: 13px; }
.hash-box { margin-top: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.16); padding: 15px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hash-box code { color: #cfe9f7; font-size: 12px; overflow-wrap: anywhere; }
.hash-box button { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

.manuals { display: flex; flex-wrap: wrap; gap: 10px; }
.manual-link { display: inline-flex; gap: 8px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: #dce8f5; font-size: 13px; font-weight: 750; }
.manual-link:hover { background: rgba(255,255,255,.06); }

.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); padding: var(--s4-card-pad); }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin-bottom: 0; }

.notice { border-left: 3px solid var(--cyan); padding: 14px 18px; background: rgba(50,184,235,.055); color: #cde2f3; border-radius: 0 12px 12px 0; }
.breadcrumb { color: var(--muted); font-size: 13px; padding-top: 14px; }
.breadcrumb a:hover { color: var(--text); }

.site-footer { margin-top: 70px; border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid, .split, .support-card { grid-template-columns: 1fr; }
  .hero-visual { transform: none; }
  .trust-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
  .product-card { grid-column: auto; }
  .qr-wrap { max-width: 220px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .hero { padding-top: 64px; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .trust-grid, .feature-grid { grid-template-columns: 1fr; }
  .download-row { grid-template-columns: 1fr; }
  .download-row .button { width: 100%; }
  .hash-box { flex-direction: column; align-items: stretch; }
  .support-card { padding: 24px; }
  .footer-grid { flex-direction: column; }
}


/* Soft4All Software i18n + SmartScreen notice */
.language-switcher { margin-left: auto; display:flex; align-items:center; gap:8px; }
.language-switcher label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.language-switcher select { color:var(--text); background:#0d1b30; border:1px solid var(--line); border-radius:11px; padding:9px 32px 9px 11px; font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.language-switcher select:focus { outline:2px solid rgba(50,184,235,.55); outline-offset:2px; }
.language-modal-backdrop { position:fixed; inset:0; z-index:9999; display:grid; place-items:center; padding:20px; background:rgba(2,8,18,.84); backdrop-filter:blur(10px); }
.language-modal { width:min(560px,100%); border:1px solid var(--line); border-radius:24px; background:#0b1729; box-shadow:0 30px 90px rgba(0,0,0,.52); padding:28px; }
.language-modal h2 { margin:0 0 10px; font-size:28px; letter-spacing:-.03em; }
.language-modal p { margin:0 0 22px; color:var(--muted); }
.language-options { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.language-options button { border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--text); border-radius:13px; padding:13px 14px; text-align:left; cursor:pointer; font:inherit; font-weight:750; }
.language-options button:hover,.language-options button:focus { background:rgba(50,184,235,.10); border-color:rgba(50,184,235,.36); outline:none; }
.smartscreen-notice { margin-top:18px; display:grid; grid-template-columns:44px 1fr; gap:15px; padding:18px; border:1px solid rgba(251,191,36,.28); border-radius:16px; background:rgba(251,191,36,.055); }
.smartscreen-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:rgba(251,191,36,.14); color:#fcd34d; font-size:20px; font-weight:900; }
.smartscreen-notice strong { display:block; margin:1px 0 7px; color:#fff3c4; }
.smartscreen-notice p { margin:6px 0; color:#d7e1eb; font-size:13px; line-height:1.55; }
.smartscreen-actions { margin-top:12px; }
@media(max-width:900px){ .desktop-nav + .language-switcher { margin-left:0; } }
@media(max-width:680px){ .header-inner { gap:10px; } .language-switcher { margin-left:auto; } .language-switcher select { max-width:128px; } .language-options { grid-template-columns:1fr; } .smartscreen-notice { grid-template-columns:1fr; } }


/* ============================================================
   Soft4All Free — R24 Contact + panel coherence
   ============================================================ */
.s4-contact-page{width:min(1180px,calc(100% - (var(--s4-gutter) * 2)));margin:18px auto 34px}
.s4-contact-hero,.s4-contact-card,.s4-contact-guide,.s4-ticket-card{box-sizing:border-box;border:1px solid var(--s4-frame-card);border-radius:16px;background:linear-gradient(180deg,rgba(43,148,255,.032),rgba(255,255,255,.012));box-shadow:0 10px 30px rgba(0,0,0,.06)}
.s4-contact-hero{padding:var(--s4-pad)}
.s4-contact-hero h1{margin:5px 0 8px;font-size:clamp(2rem,4vw,3.1rem);line-height:1.02}
.s4-contact-hero p{max-width:820px;margin:0;color:var(--s4-copy);line-height:1.5}
.s4-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s4-gap);margin-top:var(--s4-gap);align-items:stretch}
.s4-contact-card{height:100%;padding:var(--s4-card-pad);display:flex;flex-direction:column}
.s4-contact-card h2{margin:0 0 6px;font-size:1.05rem}
.s4-contact-card p{margin:0 0 10px;color:var(--s4-muted);font-size:.88rem;line-height:1.5}
.s4-contact-card .s4-contact-address{margin-top:auto;color:#bfe1ff;font-weight:850;overflow-wrap:anywhere}
.s4-contact-card .s4-contact-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin-top:auto;padding:8px 11px;border:1px solid rgba(43,148,255,.26);border-radius:10px;background:rgba(43,148,255,.08);color:#ddecff;font-weight:800;text-decoration:none}
.s4-contact-guide{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:var(--s4-gap);margin-top:var(--s4-gap);padding:var(--s4-pad);align-items:stretch}
.s4-contact-guide h2,.s4-ticket-card h2{margin:0 0 7px;font-size:1.12rem}
.s4-contact-guide p,.s4-ticket-card p{margin:0;color:var(--s4-muted);font-size:.86rem;line-height:1.5}
.s4-support-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none}
.s4-support-checklist li{min-height:52px;padding:9px 10px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(0,0,0,.10);color:#b8cadb;font-size:.78rem;line-height:1.35}
.s4-support-checklist strong{display:block;color:#eef6ff;font-size:.8rem;margin-bottom:2px}
.s4-ticket-card{height:100%;padding:var(--s4-card-pad);display:flex;flex-direction:column}
.s4-ticket-badge{align-self:flex-start;margin:0 0 8px;padding:4px 8px;border:1px solid rgba(244,200,107,.22);border-radius:999px;background:rgba(244,200,107,.08);color:#f0cf8c;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.s4-ticket-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px}
.s4-ticket-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 11px;border:1px solid rgba(43,148,255,.26);border-radius:10px;background:rgba(43,148,255,.08);color:#ddecff;font-size:.78rem;font-weight:850;text-decoration:none}
.s4-ticket-action.is-pending{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.025);color:#8296a9;cursor:default}
.s4-support-methods-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.s4-support-method-pill{min-height:42px;display:flex;align-items:center;justify-content:center;padding:7px 9px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.025);color:#9fb2c4;font-size:.72rem;font-weight:800;text-align:center}
.s4-support-method-pill.is-active{border-color:rgba(43,148,255,.28);background:rgba(43,148,255,.08);color:#ddecff}
@media(max-width:900px){.s4-contact-grid,.s4-contact-guide{grid-template-columns:1fr}.s4-support-checklist{grid-template-columns:1fr}}
@media(max-width:620px){.s4-contact-page{width:calc(100% - 16px);margin-top:10px}.s4-contact-hero{padding:var(--s4-pad)}.s4-support-methods-inline{grid-template-columns:1fr}}
