
:root {
  --background-primary: #06101f;
  --background-secondary: #0a1930;
  --background-card: #0c172b;
  --background-dark: #02060d;
  --gold: #f2b51d;
  --gold-soft: #c88a10;
  --blue: #2f6df6;
  --blue-light: #4ea5ff;
  --cyan: #2ec8df;
  --green: #25c96f;
  --red: #ff4545;
  --amber: #ffad33;
  --text-primary: #ffffff;
  --text-secondary: #b7c5da;
  --border: rgba(242, 181, 29, 0.42);
  --border-blue: rgba(78, 165, 255, 0.32);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --radius-small: 14px;
  --max-width: 1440px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 16% 5%, rgba(47, 109, 246, 0.11), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(242, 181, 29, 0.06), transparent 24rem),
    var(--background-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
a { color: inherit; }
p { color: var(--text-secondary); margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: 12px 18px; background: var(--gold); color: #07111f; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.narrow { max-width: 1050px; text-align: center; }
.section { position: relative; padding: 110px 0; }
.section.alt { background: linear-gradient(180deg, rgba(10, 25, 48, 0.78), rgba(4, 12, 24, 0.86)); border-block: 1px solid rgba(78, 165, 255, 0.08); }
.section.compact { padding: 70px 0; }
.section-heading { max-width: 900px; margin: 0 auto 46px; text-align: center; }
.section-heading p { font-size: 1.08rem; }
.eyebrow { display: inline-block; color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-height); border-bottom: 1px solid transparent; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.site-header.scrolled { background: rgba(3, 11, 23, 0.93); backdrop-filter: blur(16px); border-color: rgba(78, 165, 255, 0.16); box-shadow: 0 10px 35px rgba(0,0,0,.28); }
.header-inner { width: min(calc(100% - 40px), var(--max-width)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 2px solid var(--gold); background: #07172c; box-shadow: inset 0 0 18px rgba(78,165,255,.16); font-weight: 900; }
.brand strong { display: inline-block; color: #fff; font-size: 1.02rem; }
.brand small { color: var(--blue-light); font-size: .84rem; }
.site-nav { display: flex; align-items: center; gap: clamp(10px, 1.25vw, 22px); }
.site-nav a { text-decoration: none; color: #d4deec; font-size: .88rem; font-weight: 700; transition: color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--gold); }
.site-nav .nav-cta { padding: 10px 16px; border: 1px solid var(--gold); border-radius: 999px; color: #07111f; background: var(--gold); }
.site-nav .nav-cta:hover { color: #07111f; filter: brightness(1.08); }
.menu-toggle { display: none; width: 46px; height: 42px; border: 1px solid var(--border-blue); border-radius: 11px; background: var(--background-card); cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: 100vh; padding-top: calc(var(--header-height) + 70px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(78,165,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(78,165,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; left: -240px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(47,109,246,.22), transparent 65%); filter: blur(20px); }
.hero::after { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(242,181,29,.14), transparent 66%); filter: blur(30px); }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 54px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; color: var(--gold); text-transform: uppercase; letter-spacing: .055em; font-size: clamp(2.65rem, 5.3vw, 5.4rem); text-shadow: 0 10px 35px rgba(242,181,29,.12); }
.hero-subtitle { color: #fff; font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 800; }
.hero-lead { max-width: 760px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--gold), #ffc94a); color: #07111f; box-shadow: 0 13px 35px rgba(242,181,29,.17); }
.button-secondary { background: linear-gradient(135deg, #224fa9, var(--blue)); color: #fff; border-color: rgba(78,165,255,.55); box-shadow: 0 13px 35px rgba(47,109,246,.18); }
.button-ghost { background: rgba(8,22,42,.6); color: #fff; border-color: rgba(78,165,255,.4); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span, .pill-grid span { padding: 8px 11px; background: rgba(9, 27, 54, .72); border: 1px solid rgba(78,165,255,.28); border-radius: 999px; color: #dce9f9; font-size: .82rem; font-weight: 700; }
.hero-visual { position: relative; }
.hero-image { border: 1px solid rgba(242,181,29,.35); border-radius: 30px; background: linear-gradient(145deg, rgba(18,45,82,.7), rgba(3,8,16,.9)); padding: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.5), 0 0 50px rgba(47,109,246,.12); transform: perspective(1300px) rotateY(-4deg) rotateX(2deg); animation: floatHero 7s ease-in-out infinite; }
.hero-image img { border-radius: 20px; }
.hero-orbit { position: absolute; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(242,181,29,.5); background: rgba(5,15,30,.9); color: var(--gold); font-weight: 900; box-shadow: 0 0 30px rgba(242,181,29,.12); }
.orbit-one { left: -20px; top: 15%; }
.orbit-two { right: -25px; top: 28%; color: var(--cyan); border-color: rgba(46,200,223,.5); }
.orbit-three { right: 6%; bottom: -14px; color: var(--green); border-color: rgba(37,201,111,.45); }
.hero-banner { position: relative; z-index: 1; margin-top: 44px; opacity: .88; }
.hero-banner img { width: 100%; border: 1px solid rgba(242,181,29,.22); border-radius: 16px; }
@keyframes floatHero { 0%,100% { transform: perspective(1300px) rotateY(-4deg) rotateX(2deg) translateY(0); } 50% { transform: perspective(1300px) rotateY(-4deg) rotateX(2deg) translateY(-10px); } }

.capability-strip { border-block: 1px solid rgba(242,181,29,.18); background: rgba(3,10,20,.9); }
.capability-list { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 18px 0; }
.capability-list span { color: #dce6f4; font-size: .86rem; font-weight: 750; padding: 6px 12px; border-right: 1px solid rgba(78,165,255,.2); }
.capability-list span:last-child { border-right: 0; }

.fact-row { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 38px; border: 1px solid var(--border-blue); border-radius: var(--radius); overflow: hidden; background: rgba(4,14,29,.65); }
.fact-row div { padding: 20px 14px; border-right: 1px solid var(--border-blue); }
.fact-row div:last-child { border-right: 0; }
.fact-row strong, .fact-row span { display: block; }
.fact-row strong { color: var(--gold); font-size: 1.15rem; }
.fact-row span { color: var(--text-secondary); font-size: .82rem; }

.showcase-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: stretch; }
.study-cards { display: grid; gap: 16px; }
.study-card { position: relative; padding: 30px; border-radius: var(--radius); background: linear-gradient(145deg, rgba(14,35,66,.94), rgba(5,14,28,.96)); border: 1px solid var(--border-blue); box-shadow: var(--shadow); overflow: hidden; }
.study-card.featured { border-color: var(--border); background: linear-gradient(145deg, rgba(32,65,119,.94), rgba(5,14,28,.98)); }
.study-card h3 { font-size: 1.65rem; color: #fff; }
.card-index { position: absolute; right: 24px; top: 18px; color: rgba(78,165,255,.24); font-size: 3rem; font-weight: 900; }
.card-tag { display: inline-flex; padding: 5px 9px; background: rgba(242,181,29,.13); border: 1px solid rgba(242,181,29,.4); color: var(--gold); border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.text-link, .view-link { color: var(--blue-light); font-weight: 800; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover, .view-link:hover { color: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.align-center { align-items: center; }
.mini-feature-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mini-feature-grid span { padding: 9px 12px; border-radius: 10px; background: rgba(47,109,246,.1); border: 1px solid rgba(78,165,255,.25); color: #d9e8fa; font-size: .85rem; }

.image-button { appearance: none; border: 0; color: inherit; padding: 0; display: block; width: 100%; text-align: inherit; background: transparent; cursor: zoom-in; }
.framed-image { position: relative; padding: 12px; border-radius: var(--radius); background: linear-gradient(145deg, rgba(15,38,71,.7), rgba(2,7,14,.96)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.framed-image::after { content: "Click to enlarge"; position: absolute; right: 18px; bottom: 18px; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; padding: 7px 10px; border-radius: 9px; background: rgba(2,7,14,.88); color: #fff; border: 1px solid rgba(242,181,29,.45); font-size: .72rem; font-weight: 800; }
.framed-image:hover::after { opacity: 1; transform: translateY(0); }
.framed-image img { border-radius: 14px; width: 100%; }
.toolbar-image { padding: 18px; }
.wide-showcase { margin-bottom: 30px; }
.feature-card-grid { display: grid; gap: 18px; margin-top: 28px; }
.feature-card-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-card-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-card, .benefit-card { padding: 24px; background: rgba(7,22,43,.78); border: 1px solid rgba(78,165,255,.22); border-radius: var(--radius-small); transition: transform .22s ease, border-color .22s ease; }
.feature-card:hover, .benefit-card:hover { transform: translateY(-5px); border-color: rgba(242,181,29,.45); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(47,109,246,.16); border: 1px solid rgba(78,165,255,.32); color: var(--cyan); font-weight: 900; margin-bottom: 18px; }

.settings-showcase { display: grid; grid-template-columns: 1.2fr .8fr; gap: 46px; align-items: center; }
.settings-gallery { display: grid; grid-template-columns: 1fr 1.13fr; gap: 18px; align-items: start; }
.portrait { max-width: 100%; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #d7e3f2; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.two-column-list { grid-template-columns: 1fr 1fr; }

.media-text-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.media-text-grid.reverse { grid-template-columns: .75fr 1.25fr; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.pill-grid.centered { justify-content: center; }
.axis-note { margin-top: 24px; padding: 15px 18px; border-left: 3px solid var(--cyan); background: rgba(46,200,223,.06); border-radius: 8px; color: #d7e3f2; }
.axis-note span { display: inline-block; width: 20px; }
.portrait-sld { max-width: 720px; justify-self: end; }

.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.alarm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.alarm-card { padding: 20px; background: rgba(7,22,43,.72); border: 1px solid rgba(78,165,255,.2); border-radius: 14px; }
.alarm-card h3 { font-size: 1rem; margin-bottom: 8px; }
.alarm-card p { font-size: .86rem; margin: 0; }
.alarm-card.critical { border-color: rgba(255,69,69,.55); background: rgba(95,18,26,.24); }
.alarm-card.critical h3 { color: #ff9a9a; }
.alarm-card.caution { border-color: rgba(255,173,51,.48); background: rgba(91,59,12,.2); }
.alarm-card.caution h3 { color: #ffc66d; }

.earth-gallery { display: grid; gap: 22px; }
.zone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 10px; }
.zone-card { padding: 22px; border-radius: 14px; border: 1px solid rgba(78,165,255,.25); background: rgba(6,20,40,.78); }
.zone-card strong, .zone-card span { display: block; }
.zone-card strong { font-size: 1.2rem; margin-bottom: 4px; }
.zone-card span { color: var(--text-secondary); }
.zone-one { border-color: rgba(87,129,255,.5); }
.zone-two { border-color: rgba(37,201,111,.45); }
.zone-three { border-color: rgba(242,181,29,.4); }

.report-filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-button { padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(78,165,255,.32); background: rgba(7,22,43,.7); color: #dbe8f7; font-weight: 800; cursor: pointer; }
.filter-button.active, .filter-button:hover { background: var(--blue); border-color: var(--blue-light); color: #fff; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.report-card { overflow: hidden; background: rgba(6,18,35,.88); border: 1px solid rgba(78,165,255,.22); border-radius: var(--radius); box-shadow: 0 16px 45px rgba(0,0,0,.22); transition: transform .22s ease, border-color .22s ease; }
.report-card:hover { transform: translateY(-5px); border-color: rgba(242,181,29,.45); }
.report-card.hidden { display: none; }
.report-image { height: 250px; overflow: hidden; background: #fff; }
.report-image img { width: 100%; height: 100%; object-fit: contain; }
.report-card > div { padding: 22px; }
.report-label { display: inline-block; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }

.export-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: center; }
.export-images { display: grid; gap: 14px; }
.export-toolbar { width: min(565px, 100%); padding: 8px; border: 1px solid var(--border-blue); border-radius: 12px; background: #050b14; }

.calculation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.calc-card { padding: 25px; border-radius: 16px; background: linear-gradient(145deg, rgba(11,34,65,.78), rgba(3,11,22,.9)); border: 1px solid rgba(78,165,255,.23); }
.calc-card span { color: var(--gold); font-size: .78rem; font-weight: 900; }
.calc-card h3 { margin-top: 12px; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--gold); border: 1px solid rgba(242,181,29,.36); margin-bottom: 18px; font-weight: 900; }

.workflow-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative; }
.workflow-list::before { content: ""; position: absolute; left: 7%; right: 7%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--gold)); opacity: .5; }
.workflow-list li { position: relative; text-align: center; color: #dce8f6; font-size: .9rem; }
.workflow-list span { position: relative; z-index: 1; width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: #07111f; background: var(--gold); border: 5px solid var(--background-primary); font-weight: 900; }
.workflow-list strong { display: block; }

.cta-section { padding: 80px 0; }
.cta-inner { position: relative; overflow: hidden; padding: 70px 40px; text-align: center; border: 1px solid var(--border); border-radius: 30px; background: linear-gradient(135deg, rgba(10,35,69,.98), rgba(2,7,14,.98)); box-shadow: var(--shadow); }
.cta-inner::before { content: ""; position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(78,165,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(78,165,255,.1) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle at center, black, transparent 72%); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner p { max-width: 850px; margin-inline: auto; }
.centered-actions { justify-content: center; }
.cta-inner small { color: #94a8c3; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.contact-note { margin-top: 28px; padding: 22px; border-left: 3px solid var(--gold); background: rgba(242,181,29,.06); border-radius: 0 12px 12px 0; }
.contact-note strong, .contact-note span { display: block; }
.contact-note span { color: var(--text-secondary); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 30px; border: 1px solid var(--border-blue); border-radius: var(--radius); background: rgba(7,22,43,.75); }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row:nth-child(4) { grid-column: 1 / -1; }
.form-row label { color: #dce8f7; font-weight: 800; }
.form-row input, .form-row textarea { width: 100%; padding: 13px 14px; color: #fff; background: rgba(1,7,15,.72); border: 1px solid rgba(78,165,255,.3); border-radius: 10px; outline: none; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(78,165,255,.12); }
.form-row input.invalid, .form-row textarea.invalid { border-color: var(--red); }
.field-error { min-height: 18px; color: #ff9898; font-size: .78rem; }
.form-status { grid-column: 1 / -1; margin: 0; }

.site-footer { padding: 68px 0 24px; background: #020811; border-top: 1px solid rgba(242,181,29,.18); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.footer-grid h2 { font-size: 1rem; color: var(--gold); letter-spacing: .04em; }
.footer-grid a:not(.brand) { display: block; color: #aebed2; text-decoration: none; margin: 8px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(78,165,255,.14); display: flex; justify-content: space-between; gap: 20px; color: #8fa3bd; font-size: .82rem; }
.footer-brand { margin-bottom: 18px; }

.back-to-top { position: fixed; z-index: 600; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 50%; color: #07111f; background: var(--gold); font-weight: 900; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,3,8,.92); backdrop-filter: blur(12px); }
.lightbox-dialog { position: relative; z-index: 1; width: min(96vw, 1500px); height: min(92vh, 1000px); display: grid; place-items: center; }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; border: 1px solid var(--border); border-radius: 18px; background: #040a13; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.lightbox figure img { width: 100%; height: 100%; object-fit: contain; background: #02060d; }
.lightbox figcaption { display: grid; gap: 3px; padding: 14px 18px; border-top: 1px solid rgba(78,165,255,.18); }
.lightbox figcaption strong { color: #fff; }
.lightbox figcaption span { color: var(--text-secondary); font-size: .9rem; }
.lightbox-close, .lightbox-nav { position: absolute; z-index: 2; border: 1px solid rgba(242,181,29,.5); color: #fff; background: rgba(3,11,23,.88); cursor: pointer; }
.lightbox-close { right: -12px; top: -12px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border-radius: 12px; font-size: 2rem; }
.lightbox-prev { left: -58px; }
.lightbox-next { right: -58px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1200px) {
  .site-nav { position: fixed; inset: var(--header-height) 18px auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 18px; border-radius: 16px; background: rgba(3,11,23,.97); border: 1px solid var(--border-blue); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s ease; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 10px 12px; border-radius: 8px; }
  .menu-toggle { display: block; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 1000px; margin: 0 auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { max-width: 1000px; margin: 0 auto; }
  .hero-banner { margin-top: 60px; }
  .feature-card-grid.four, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .alarm-grid { grid-template-columns: repeat(3, 1fr); }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .calculation-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-list { grid-template-columns: repeat(4, 1fr); row-gap: 35px; }
  .workflow-list::before { display: none; }
}

@media (max-width: 900px) {
  .section { padding: 85px 0; }
  .showcase-grid, .split, .settings-showcase, .media-text-grid, .media-text-grid.reverse, .export-layout, .contact-grid { grid-template-columns: 1fr; }
  .media-text-grid.reverse .reveal:first-child { order: 2; }
  .media-text-grid.reverse .image-button { order: 1; }
  .fact-row { grid-template-columns: repeat(2, 1fr); }
  .fact-row div { border-bottom: 1px solid var(--border-blue); }
  .fact-row div:nth-child(2n) { border-right: 0; }
  .fact-row div:last-child { grid-column: 1 / -1; }
  .image-pair { grid-template-columns: 1fr; }
  .alarm-grid { grid-template-columns: repeat(2, 1fr); }
  .zone-row { grid-template-columns: 1fr; }
  .portrait-sld { justify-self: stretch; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 24px), var(--max-width)); }
  .site-nav { grid-template-columns: 1fr; max-height: calc(100vh - 90px); overflow-y: auto; }
  .hero { padding-top: calc(var(--header-height) + 42px); }
  .hero h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .hero-orbit { display: none; }
  .hero-image { transform: none; animation: none; padding: 8px; border-radius: 18px; }
  .hero-banner { margin-top: 34px; }
  .capability-list { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-inline: 12px; }
  .capability-list span { white-space: nowrap; }
  .fact-row, .settings-gallery, .feature-card-grid.four, .feature-card-grid.two, .alarm-grid, .report-grid, .calculation-grid, .benefit-grid, .footer-grid { grid-template-columns: 1fr; }
  .fact-row div { border-right: 0; }
  .fact-row div:last-child { grid-column: auto; }
  .two-column-list { grid-template-columns: 1fr; }
  .workflow-list { grid-template-columns: 1fr; gap: 16px; }
  .workflow-list li { display: grid; grid-template-columns: 50px 1fr; align-items: center; text-align: left; gap: 14px; }
  .workflow-list span { margin: 0; width: 46px; height: 46px; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .form-row:nth-child(4) { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .lightbox { padding: 10px; }
  .lightbox-nav { top: auto; bottom: 84px; width: 44px; height: 44px; }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox-close { right: 8px; top: 8px; }
  .cta-inner { padding: 48px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Revised start screen: based on the existing three-option homepage */
.launch-home {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 34px) 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(47,109,246,.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(242,181,29,.10), transparent 24rem),
    linear-gradient(180deg, #081a32 0%, #06111f 58%, #030a13 100%);
}
.launch-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(78,165,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,165,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.launch-shell { position: relative; z-index: 1; }
.launch-banner {
  overflow: hidden;
  border: 1px solid rgba(242,181,29,.38);
  border-radius: 18px;
  background: #0a203b;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.launch-banner img { width: 100%; }
.launch-heading { max-width: 880px; margin: 46px auto 34px; text-align: center; }
.launch-heading h1 {
  color: #fff;
  font-size: clamp(2.25rem, 4.3vw, 4.1rem);
  letter-spacing: -.045em;
}
.launch-heading p { font-size: 1.08rem; }
.launch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: 34px;
  align-items: stretch;
}
.launch-choices { display: grid; gap: 18px; }
.launch-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 170px;
  padding: 25px 26px;
  text-decoration: none;
  border: 1px solid rgba(78,165,255,.36);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(27,71,133,.97), rgba(8,24,48,.97));
  box-shadow: 0 20px 55px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.05);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.launch-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.055), transparent);
  transform: translateX(-110%);
  transition: transform .6s ease;
}
.launch-choice:hover {
  transform: translateY(-4px);
  border-color: rgba(242,181,29,.72);
  box-shadow: 0 28px 70px rgba(0,0,0,.36), 0 0 35px rgba(47,109,246,.12);
}
.launch-choice:hover::before { transform: translateX(110%); }
.launch-choice:focus-visible { outline-offset: 5px; }
.launch-advance {
  border-color: rgba(242,181,29,.55);
  background: linear-gradient(145deg, rgba(36,84,155,.98), rgba(9,27,53,.98));
}
.launch-calculator { background: linear-gradient(145deg, rgba(33,63,105,.96), rgba(15,23,38,.98)); }
.launch-number {
  align-self: start;
  color: rgba(143,190,255,.48);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.launch-choice-copy { display: grid; gap: 7px; }
.launch-choice-copy strong { color: #fff; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.1; }
.launch-choice-copy small { color: #c8d8ec; font-size: .98rem; line-height: 1.45; }
.launch-choice-copy em { color: #83b8ff; font-size: .79rem; font-style: normal; font-weight: 750; }
.launch-advance .launch-choice-copy em { color: #ffd266; }
.launch-arrow {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(2,10,21,.58);
  font-size: 2.15rem;
  line-height: 1;
  transition: transform .22s ease, background .22s ease;
}
.launch-choice:hover .launch-arrow { transform: translateX(4px); background: rgba(242,181,29,.18); }
.launch-preview {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(78,165,255,.26);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(12,36,70,.92), rgba(2,9,18,.96));
  box-shadow: var(--shadow);
}
.launch-preview-label { display: grid; gap: 2px; padding: 2px 4px 15px; }
.launch-preview-label span { color: var(--gold); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.launch-preview-label strong { color: #fff; font-size: 1.1rem; }
.launch-preview-image {
  flex: 1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 19px;
  overflow: hidden;
  background: #061426;
  cursor: zoom-in;
}
.launch-preview-image img { width: 100%; height: 100%; object-fit: contain; }
.mode-guide {
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: 38px;
  align-items: start;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(242,181,29,.28);
  border-radius: 23px;
  background: rgba(3,13,26,.72);
}
.mode-guide h2 { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.mode-guide-kicker { color: var(--gold); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.mode-guide-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-guide-items p { margin: 0; padding-left: 16px; border-left: 2px solid rgba(78,165,255,.45); font-size: .9rem; }
.mode-guide-items strong { color: #fff; }
.continue-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 20px;
  align-items: center;
  margin: 28px auto 0;
  max-width: 880px;
  padding: 18px 22px;
  text-decoration: none;
  text-align: center;
  border: 1px solid rgba(78,165,255,.26);
  border-radius: 16px;
  background: rgba(7,24,46,.72);
}
.continue-link > span:first-child { grid-column: 1; color: #95aac4; font-size: .8rem; }
.continue-link strong { grid-column: 1; color: #fff; font-size: 1.05rem; }
.continue-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--gold); font-size: 1.8rem; }
.continue-link:hover { border-color: var(--gold); }

@media (max-width: 1050px) {
  .launch-layout { grid-template-columns: 1fr; }
  .launch-preview { max-width: 720px; width: 100%; margin-inline: auto; }
  .launch-preview-image img { max-height: 620px; }
  .mode-guide { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .launch-home { padding-top: calc(var(--header-height) + 18px); }
  .launch-banner { border-radius: 12px; }
  .launch-heading { margin-top: 32px; }
  .launch-layout { gap: 22px; }
  .launch-choice { grid-template-columns: 1fr auto; min-height: auto; padding: 22px; }
  .launch-number { grid-column: 1; }
  .launch-choice-copy { grid-column: 1; }
  .launch-arrow { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .mode-guide-items { grid-template-columns: 1fr; }
  .mode-guide { padding: 23px; }
}
@media (max-width: 480px) {
  .launch-choice { gap: 12px; border-radius: 19px; }
  .launch-choice-copy strong { font-size: 1.45rem; }
  .launch-choice-copy small { font-size: .9rem; }
  .launch-preview { padding: 12px; border-radius: 20px; }
  .continue-link { text-align: left; }
}


/* =============================================================
   Compact homepage revision
   Mirrors the existing relaycoordination.com start screen and
   keeps the complete first screen comfortable on laptop displays.
   ============================================================= */
:root {
  --max-width: 1280px;
  --header-height: 58px;
  --radius: 18px;
  --radius-small: 12px;
}
body { font-size: 15px; line-height: 1.55; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); }
h3 { font-size: clamp(1.02rem, 1.5vw, 1.28rem); }
.container { width: min(calc(100% - 32px), var(--max-width)); }
.section { padding: 72px 0; }
.section.compact { padding: 54px 0; }
.section-heading { max-width: 820px; margin-bottom: 30px; }
.section-heading p { font-size: .98rem; }
.eyebrow { margin-bottom: 8px; font-size: .72rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(3, 11, 23, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(78, 165, 255, 0.16);
  box-shadow: 0 10px 35px rgba(0,0,0,.22);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(2, 8, 18, 0.96);
  border-color: rgba(78, 165, 255, 0.22);
  box-shadow: 0 12px 38px rgba(0,0,0,.30);
}
.header-inner { width: min(calc(100% - 32px), var(--max-width)); }
.brand-mark { width: 36px; height: 36px; }
.site-nav a { font-size: .81rem; }
.site-nav .nav-cta { padding: 8px 14px; }

.compact-start {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(16px, 2.4vh, 28px)) 0 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(78,165,255,.10);
  background:
    radial-gradient(circle at 18% 10%, rgba(47,109,246,.10), transparent 24rem),
    radial-gradient(circle at 84% 16%, rgba(242,181,29,.06), transparent 22rem),
    linear-gradient(180deg, rgba(10,25,48,.95) 0%, rgba(5,15,29,.98) 58%, rgba(4,12,24,1) 100%);
}
.home-grid-bg {
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image:
    linear-gradient(rgba(78,165,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,165,255,.11) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
}
.home-start-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), 1320px);
  margin-inline: auto;
}
.home-title-block { text-align: center; margin-bottom: clamp(14px, 2vh, 22px); }
.home-title-block h1 {
  margin: 0 0 5px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.65vw, 2.55rem);
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-shadow: 0 7px 24px rgba(242,181,29,.11);
}
.home-subtitle { margin: 0 0 7px; color: #fff; font-size: clamp(.92rem, 1.35vw, 1.18rem); font-weight: 750; }
.home-summary {
  margin: 0 auto;
  max-width: 1120px;
  color: #becbe0;
  font-size: clamp(.74rem, 1vw, .92rem);
  font-weight: 680;
  line-height: 1.35;
}
.home-summary span { color: var(--gold); padding: 0 3px; }
.home-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(300px, .95fr);
  gap: clamp(16px, 1.7vw, 24px);
  align-items: stretch;
}
.home-product-visual,
.home-study-options {
  min-height: 0;
  height: clamp(360px, 56vh, 500px);
  border-radius: 22px;
  border: 1px solid rgba(78,165,255,.18);
  background: rgba(5,15,29,.72);
  box-shadow: 0 18px 52px rgba(0,0,0,.35);
}
.home-product-visual {
  padding: clamp(10px, 1vw, 15px);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(8,27,51,.86), rgba(4,11,21,.92));
}
.home-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #071019;
}
.home-study-options {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(10px, 1.25vh, 14px);
  padding: clamp(12px, 1.2vw, 16px);
  background: linear-gradient(180deg, rgba(8,27,51,.86), rgba(4,11,21,.92));
}
.home-study-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: clamp(14px, 1.35vw, 20px) clamp(14px, 1.45vw, 21px);
  text-decoration: none;
  border: 1px solid rgba(78,165,255,.30);
  border-radius: 17px;
  background: linear-gradient(145deg, #24518e 0%, #123462 55%, #0c223e 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-study-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242,181,29,.58);
  box-shadow: 0 12px 28px rgba(0,0,0,.28), 0 0 24px rgba(47,109,246,.10);
}
.home-study-card.calculator { background: linear-gradient(145deg, #234978, #1b2b45 65%, #2a2928); }
.home-study-copy { min-width: 0; display: grid; gap: 5px; }
.home-study-copy strong { color: #fff; font-size: clamp(1.1rem, 1.55vw, 1.55rem); line-height: 1.05; }
.home-study-copy small { color: #c4d7ed; font-size: clamp(.72rem, .88vw, .84rem); line-height: 1.38; }
.home-study-arrow {
  width: clamp(36px, 3vw, 44px);
  height: clamp(36px, 3vw, 44px);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(242,181,29,.23);
  background: rgba(4,15,29,.72);
  font-size: 1.45rem;
  transition: transform .2s ease, background .2s ease;
}
.home-study-card:hover .home-study-arrow { transform: translateX(3px); background: rgba(242,181,29,.14); }
.home-start-footer {
  position: relative;
  margin-top: clamp(10px, 1.5vh, 16px);
  text-align: center;
}
.home-start-footer p { margin: 2px 0; color: #8fa5c0; font-size: clamp(.65rem, .76vw, .76rem); line-height: 1.3; }
.home-start-footer p:first-child { color: #b8c9dd; }
.home-start-footer a { color: #c3d9f5; text-decoration: none; font-weight: 750; }
.home-scroll-link {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78,165,255,.20);
  background: rgba(7,22,43,.56);
  color: #b9cbe2 !important;
  font-size: .72rem;
}
.home-scroll-link strong { color: #fff; }
.home-scroll-link b { color: var(--gold); font-size: 1rem; }

/* Compact feature presentation below the start screen. */
.wide-showcase img { max-height: 525px; object-fit: contain; }
.feature-card, .benefit-card { padding: 18px; }
.feature-card-grid { gap: 14px; }
.media-text-grid, .media-text-grid.reverse { gap: 34px; }
.framed-image { padding: 9px; border-radius: 16px; }
.framed-image img { border-radius: 10px; }
.report-grid { gap: 16px; }
.report-image { height: 190px; }
.report-card > div { padding: 17px; }
.report-card p { font-size: .9rem; }
.alarm-grid { gap: 11px; }
.alarm-card { padding: 15px; }
.calculation-grid, .benefit-grid { gap: 13px; }
.calc-card { padding: 19px; }
.workflow-list span { width: 46px; height: 46px; }
.workflow-list::before { top: 23px; }
.cta-section { padding: 55px 0; }
.cta-inner { padding: 48px 30px; }
.site-footer { padding-top: 48px; }

@media (max-width: 1100px) {
  .home-start-grid { grid-template-columns: minmax(0,1.6fr) minmax(280px,.85fr); }
  .home-product-visual, .home-study-options { height: clamp(330px, 52vh, 455px); }
  .home-study-card { padding: 13px 15px; }
  .home-study-copy strong { font-size: 1.12rem; }
  .home-study-copy small { font-size: .72rem; }
}

@media (max-width: 820px) {
  .compact-start { min-height: auto; padding: calc(var(--header-height) + 16px) 0 20px; }
  .home-start-grid { grid-template-columns: 1fr; }
  .home-product-visual { height: auto; aspect-ratio: 1.48 / 1; }
  .home-study-options { height: auto; min-height: 330px; }
  .home-title-block h1 { letter-spacing: .04em; }
  .home-start-footer p:nth-child(2) { display: none; }
  .home-scroll-link { grid-template-columns: 1fr auto; }
  .home-scroll-link span { display: none; }
}

@media (max-width: 560px) {
  .home-start-shell { width: min(calc(100% - 18px), 1320px); }
  .home-title-block h1 { font-size: 1.48rem; }
  .home-summary { font-size: .7rem; }
  .home-product-visual { padding: 7px; border-radius: 15px; }
  .home-study-options { padding: 9px; gap: 9px; border-radius: 15px; }
  .home-study-card { border-radius: 13px; }
  .home-study-copy strong { font-size: 1.05rem; }
  .home-study-copy small { font-size: .69rem; }
  .home-study-arrow { width: 36px; height: 36px; }
  .home-scroll-link { font-size: .65rem; }
  .section { padding: 58px 0; }
}

@media (max-height: 760px) and (min-width: 821px) {
  .compact-start { padding-top: calc(var(--header-height) + 8px); }
  .home-title-block { margin-bottom: 10px; }
  .home-title-block h1 { font-size: clamp(1.45rem, 2.25vw, 2.05rem); }
  .home-subtitle { font-size: .86rem; margin-bottom: 4px; }
  .home-summary { font-size: .72rem; }
  .home-product-visual, .home-study-options { height: clamp(320px, 50vh, 400px); }
  .home-start-footer { margin-top: 8px; }
  .home-scroll-link { margin-top: 5px; }
}


/* Final homepage adjustments */
.site-nav .nav-cta { padding: 8px 14px; }
.home-start-grid { align-items: center; }
.home-study-options { align-self: stretch; }


/* =========================================================
   Spacious opening screen: enlarged image and safe card text
   ========================================================= */
:root { --header-height: 72px; --max-width: 1560px; }

.site-header { background: rgba(2, 10, 22, .97); }
.site-nav .nav-cta,
.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
  color: #07111f !important;
  min-width: 128px;
  white-space: nowrap;
}

.compact-start {
  min-height: auto;
  padding: calc(var(--header-height) + 48px) 0 36px;
  place-items: start center;
  background:
    radial-gradient(circle at 18% 12%, rgba(47,109,246,.12), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(242,181,29,.06), transparent 25rem),
    linear-gradient(180deg, rgba(8,24,46,.98) 0%, rgba(5,16,31,.99) 62%, rgba(4,12,24,1) 100%);
}

.home-start-shell {
  width: min(calc(100% - 48px), 1560px);
}

.home-title-block {
  margin-bottom: 28px;
}
.home-title-block h1 {
  font-size: clamp(2rem, 2.55vw, 3.05rem);
  letter-spacing: .065em;
}
.home-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.28rem);
}
.home-summary {
  max-width: 1220px;
  font-size: clamp(.82rem, .92vw, 1rem);
  line-height: 1.5;
}

.home-start-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(360px, .82fr);
  gap: clamp(24px, 2vw, 34px);
  align-items: stretch;
}

.home-product-visual,
.home-study-options {
  height: auto;
  min-height: 0;
  border-radius: 24px;
}

.home-product-visual {
  aspect-ratio: 1198 / 806;
  padding: 16px;
  background: linear-gradient(145deg, rgba(12,34,65,.92), rgba(3,10,20,.98));
}
.home-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 17px;
  background: transparent;
}

.home-study-options {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(9,29,56,.90), rgba(4,13,26,.96));
}
.study-options-heading {
  padding: 3px 6px 1px;
  display: grid;
  gap: 2px;
}
.study-options-heading strong {
  color: var(--gold);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.study-options-heading small {
  color: #91a9c6;
  font-size: .78rem;
}

.home-study-card {
  min-height: 132px;
  padding: 22px 22px 22px 26px;
  border-radius: 19px;
  gap: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(78,165,255,.16), transparent 8rem),
    linear-gradient(145deg, #24518e 0%, #133866 55%, #0b2341 100%);
}
.home-study-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--gold), var(--blue-light));
  opacity: .7;
}
.home-study-card { position: relative; }
.home-study-card.calculator {
  background:
    radial-gradient(circle at 88% 18%, rgba(242,181,29,.10), transparent 8rem),
    linear-gradient(145deg, #234978, #1b2b45 64%, #2a2928);
}
.home-study-copy {
  gap: 9px;
  align-content: center;
  overflow: hidden;
}
.home-study-copy strong {
  font-size: clamp(1.45rem, 1.65vw, 1.85rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.home-study-copy small {
  display: block;
  max-width: 100%;
  color: #d1e0f2;
  font-size: clamp(.86rem, .92vw, 1rem);
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: normal;
}
.home-study-arrow {
  width: 52px;
  height: 52px;
  font-size: 1.65rem;
}

.home-start-footer {
  margin-top: 24px;
}
.home-start-footer p {
  font-size: .78rem;
  line-height: 1.45;
}
.home-scroll-link {
  margin-top: 13px;
  padding: 8px 16px;
  font-size: .76rem;
}

@media (max-width: 1280px) {
  .home-start-shell { width: min(calc(100% - 34px), 1400px); }
  .home-start-grid { grid-template-columns: minmax(0, 1.55fr) minmax(330px, .78fr); gap: 22px; }
  .home-study-options { gap: 12px; padding: 14px; }
  .home-study-card { min-height: 118px; padding: 17px 17px 17px 20px; }
  .home-study-copy strong { font-size: 1.35rem; }
  .home-study-copy small { font-size: .82rem; }
  .home-study-arrow { width: 44px; height: 44px; }
}

@media (max-width: 1000px) {
  .compact-start { padding-top: calc(var(--header-height) + 34px); }
  .home-start-grid { grid-template-columns: 1fr; }
  .home-product-visual { width: 100%; }
  .home-study-options { grid-template-rows: auto repeat(3, auto); }
  .home-study-card { min-height: 118px; }
}

@media (max-width: 820px) {
  :root { --header-height: 66px; }
  .compact-start { padding: calc(var(--header-height) + 26px) 0 26px; }
  .home-start-shell { width: min(calc(100% - 22px), 1560px); }
  .home-title-block { margin-bottom: 20px; }
  .home-product-visual { aspect-ratio: 1198 / 806; }
  .home-study-options { min-height: 0; }
  .home-start-footer p:nth-child(2) { display: block; }
}

@media (max-width: 560px) {
  .home-title-block h1 { font-size: 1.55rem; }
  .home-subtitle { font-size: .9rem; }
  .home-summary { font-size: .72rem; }
  .home-product-visual { padding: 8px; border-radius: 17px; }
  .home-study-options { padding: 10px; gap: 10px; border-radius: 17px; }
  .home-study-card { min-height: 112px; padding: 16px; gap: 12px; }
  .home-study-copy strong { font-size: 1.18rem; }
  .home-study-copy small { font-size: .74rem; line-height: 1.36; }
  .home-study-arrow { width: 40px; height: 40px; }
  .home-scroll-link { display: flex; flex-wrap: wrap; justify-content: center; }
}

@media (max-height: 760px) and (min-width: 1001px) {
  .compact-start { padding-top: calc(var(--header-height) + 28px); }
  .home-title-block h1 { font-size: clamp(1.8rem, 2.25vw, 2.55rem); }
  .home-study-card { min-height: 110px; }
}


/* Homepage video: only enhances the existing preview, no changes to other sections. */
.home-video-area { position: relative; min-width: 0; min-height: 0; isolation: isolate; }
.home-video-area > .home-product-visual { width: 100%; height: 100%; }
.home-youtube-play { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border: 0; border-radius: 16px; background: rgba(0,0,0,.66); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 9px 35px rgba(0,0,0,.45); }
.home-youtube-play:hover, .home-youtube-play:focus-visible { background: rgba(0,0,0,.9); }
.home-youtube-play svg { display: block; max-width: 64px; height: auto; }
.home-video-player { position: absolute; inset: 0; z-index: 4; border-radius: 17px; overflow: hidden; background: #000; }
.home-video-area > .home-product-visual[hidden], .home-youtube-play[hidden], .home-video-player[hidden], .home-video-close[hidden] { display: none !important; }
.home-video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.home-video-close { position: absolute; top: 9px; right: 9px; z-index: 6; border: 1px solid rgba(255,255,255,.65); border-radius: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 10px; cursor: pointer; }
@media (max-width: 650px) { .home-youtube-play { padding: 7px 11px; font-size: 12px; } .home-youtube-play svg { max-width: 50px; } }

/* Responsive first-screen height correction (laptop / desktop only).
   Keep the video and all existing links / handlers unchanged. */
@media (min-width: 1001px) {
  .compact-start {
    min-height: 100svh;
    padding: calc(var(--header-height) + clamp(12px, 2.2vh, 24px)) 0 clamp(12px, 2vh, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .home-start-shell { min-width: 0; }
  .home-title-block { margin-bottom: clamp(10px, 1.8vh, 20px); }
  .home-title-block h1 { font-size: clamp(1.65rem, min(2.55vw, 4.4vh), 3.05rem); }
  .home-subtitle { font-size: clamp(.88rem, min(1.25vw, 2.5vh), 1.28rem); margin-bottom: 5px; }
  .home-summary { font-size: clamp(.74rem, min(.92vw, 1.9vh), 1rem); line-height: 1.4; }
  .home-start-grid { align-items: stretch; }
  .home-video-area, .home-study-options {
    height: clamp(320px, calc(100svh - var(--header-height) - 205px), 650px);
    min-height: 0;
  }
  .home-video-area > .home-product-visual {
    width: 100%; height: 100%; aspect-ratio: auto;
    padding: clamp(8px, 1vw, 16px);
  }
  .home-video-area > .home-product-visual img { width: 100%; height: 100%; object-fit: contain; }
  .home-study-options {
    grid-template-rows: auto repeat(3, minmax(0, 1fr));
    gap: clamp(7px, 1.2vh, 14px);
    padding: clamp(10px, 1.4vh, 18px);
  }
  .study-options-heading { gap: 0; padding: 0 5px; }
  .home-study-card { min-height: 0; padding: clamp(10px, 1.6vh, 20px) clamp(12px, 1.3vw, 22px); gap: 12px; }
  .home-study-copy { gap: clamp(3px, .6vh, 8px); }
  .home-study-copy strong { font-size: clamp(1.02rem, min(1.65vw, 3vh), 1.85rem); }
  .home-study-copy small { font-size: clamp(.72rem, min(.92vw, 1.75vh), 1rem); line-height: 1.3; }
  .home-study-arrow { width: clamp(34px, 3vw, 52px); height: clamp(34px, 3vw, 52px); }
  .home-start-footer { margin-top: clamp(7px, 1vh, 15px); }
  .home-start-footer p { font-size: clamp(.65rem, 1.25vh, .78rem); line-height: 1.25; }
  .home-scroll-link { margin-top: 5px; padding: 5px 12px; }
}
@media (min-width: 1001px) and (max-height: 650px) {
  .home-video-area, .home-study-options { height: max(280px, calc(100svh - var(--header-height) - 175px)); }
  .home-title-block { margin-bottom: 8px; }
  .home-title-block h1 { font-size: 1.55rem; }
  .home-start-footer p:nth-child(2) { display: none; }
}
