:root { color-scheme: dark; --navy: #062638; --deep: #041a28; --blue: #0c4565; --mint: #a2f3d2; --cyan: #a1e4fc; --text: #f4fafc; --muted: #c0d4df; --line: #496775; --glass: #123647dd; --radius: 24px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--deep); color: var(--text); font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ffdc81; outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 18px; }
h3 { font-size: 1.65rem; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 20; padding: 12px; background: var(--mint); color: var(--deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 104px; padding-block: 22px; }
.brand { display: block; max-width: 440px; }
.brand img { width: 100%; height: auto; }
.brand-button { padding: 0; border: 0; background: none; }
nav { display: flex; gap: 22px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--mint); }
.hero { position: relative; isolation: isolate; min-height: 610px; display: grid; align-items: center; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: url('./img/dron-poster.webp') center/cover; }
.hero-media video { height: 100%; width: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgb(0 10 20 / 66%), rgb(3 25 42 / 60%)); }
.hero-content { padding-block: 72px 100px; }
.eyebrow { color: var(--mint); font-size: .8rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
h1 { max-width: 880px; font-size: clamp(2.5rem, 5.8vw, 4.8rem); letter-spacing: -.045em; margin-bottom: 26px; }
h1 span { color: var(--mint); }
.hero-description { max-width: 660px; font-size: clamp(1.05rem, 2vw, 1.2rem); margin-bottom: 32px; color: #f4fafc; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; border: 1px solid #83b6c8; border-radius: 12px; background: #163e50; color: white; font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.button:hover { background: #245b70; transform: translateY(-2px); }
.button.primary { background: var(--mint); color: #062638; border-color: var(--mint); }
.button.primary:hover { background: #c1ffe6; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; margin-left: 24px; font-weight: 600; }
.video-toggle { position: absolute; right: 24px; bottom: 20px; min-height: 44px; padding: 8px 16px; border: 1px solid #aac3d0; border-radius: 30px; background: #041a28ed; color: white; font-size: .85rem; }
.section { padding-block: 80px; }
.section-heading { margin-bottom: 32px; max-width: 720px; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.module-card { --accent: var(--mint); padding: 32px; overflow: hidden; background: linear-gradient(140deg, #21594666, transparent 60%), var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px #0002; display: flex; flex-direction: column; align-items: flex-start; }
.module-card.aquaculture { --accent: var(--cyan); background: linear-gradient(140deg, #21628866, transparent 60%), var(--glass); }
.module-card > img { width: 104px; height: 104px; object-fit: contain; margin-bottom: 24px; }
.module-tag { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 750; margin-bottom: 12px; }
.module-card h3 { margin-bottom: 16px; }
.module-card > p:not(.module-tag) { color: var(--muted); }
.chips { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.chips li { padding: 4px 12px; background: #061d2b; border: 1px solid var(--line); border-radius: 30px; font-size: .8rem; color: var(--accent); }
.module-card .button { margin-top: auto; width: 100%; }
.circuit-section { background: linear-gradient(135deg, #0c3544, #0a293d); border-block: 1px solid #315463; }
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 20px; padding: 0; gap: 14px; }
.cycle li { display: flex; min-width: 0; }
.cycle button { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 196px; text-align: left; padding: 20px; border: 1px solid #6d8997; border-radius: 18px; background: #082739; color: var(--text); font-weight: 650; transition: border-color .15s, background .15s; }
.cycle button[aria-pressed="true"] { border-color: var(--mint); background: #194c48; box-shadow: inset 0 0 0 1px var(--mint); }
.cycle button:hover { background: #20514f; }
.step-number { color: var(--muted); font-size: .8rem; }
.step-symbol { color: var(--mint); font-size: 2.6rem; line-height: 1.4; }
.step-arrow { position: absolute; top: 17px; right: 20px; color: var(--mint); font-size: 1.4rem; }
.cycle-detail { padding: 28px; border-radius: 18px; background: #041d2b; border-left: 4px solid var(--mint); min-height: 170px; }
.cycle-detail h3 { font-size: 1.3rem; margin-bottom: 14px; }
.cycle-detail p { max-width: 850px; color: var(--muted); margin: 0; }
.technical-note { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.circuit-section .technical-note { margin: 18px 0 0; }
.feedback-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.feedback-intro { max-width: 360px; }
.feedback-form { background: #103142; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
fieldset { margin: 0 0 24px; border: 0; padding: 0; }
legend, .feedback-form > label { font-weight: 650; margin-bottom: 12px; display: block; }
.rating { display: flex; gap: 10px; flex-wrap: wrap; }
.rating label { position: relative; cursor: pointer; }
.rating input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating label > span[aria-hidden] { display: grid; place-items: center; width: 48px; height: 48px; background: #071e2d; border: 1px solid #7b9cae; border-radius: 10px; color: #c0d4df; font-size: 1.65rem; }
.rating input:checked + span, .rating label[data-filled] > span[aria-hidden] { color: #ffdd86; border-color: #ffdd86; background: #3a3424; }
.rating input:focus-visible + span { outline: 3px solid #ffdc81; outline-offset: 4px; }
.optional { font-size: .85rem; font-weight: 400; color: var(--muted); }
textarea { display: block; width: 100%; min-height: 124px; resize: vertical; padding: 12px; border: 1px solid #7b9cae; border-radius: 10px; color: white; background: #061e2b; }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.text-button { padding: 8px; min-height: 44px; border: 0; color: var(--muted); background: none; text-decoration: underline; text-underline-offset: 4px; }
.status { font-size: .9rem; margin: 14px 0 0; }
.status:empty { margin: 0; }
.site-footer { padding-block: 36px; border-top: 1px solid var(--line); background: var(--navy); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-content p { margin-bottom: 6px; color: var(--muted); font-size: .85rem; }
.footer-content .footer-brand { color: var(--text); font-weight: 700; font-size: 1rem; }
.source-link { font-size: .8rem; color: var(--mint); }
.socials { display: flex; gap: 12px; }
.socials a, .socials button, .icon-button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #7b9cae; background: #0b2d40; color: white; }
.socials svg { width: 21px; height: 21px; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-content > .status { flex-basis: 100%; }
dialog { width: min(1000px, calc(100% - 32px)); max-height: 90dvh; padding: 24px; border: 1px solid #7b9cae; border-radius: 18px; background: var(--navy); color: var(--text); }
dialog[open] { animation: dialog-in .18s ease-out; }
dialog.closing { animation: dialog-out .18s ease-in forwards; }
dialog::backdrop { background: #00101ce6; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.dialog-header h2 { margin: 0; font-size: 1.2rem; }
.icon-button { flex-shrink: 0; font-size: 1.7rem; }
dialog img { max-height: 65dvh; object-fit: contain; width: 100%; height: auto; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { flex-direction: column; gap: 14px; min-height: auto; }
  .brand { max-width: 380px; width: 100%; }
  nav { width: 100%; justify-content: center; gap: 28px; }
  .hero { min-height: 580px; }
  .hero-content { padding-block: 56px 100px; }
  .hero-description { max-width: 550px; }
  .module-grid, .feedback-section { grid-template-columns: 1fr; }
  .section { padding-block: 52px; }
  .module-card { padding: 26px; }
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cycle button { min-height: 190px; padding: 16px; }
  .cycle-detail { padding: 22px; }
  .feedback-section { gap: 24px; }
  .feedback-intro { max-width: none; }
  .feedback-form { padding: 22px; }
  .text-link { margin-left: 0; display: flex; width: fit-content; margin-top: 14px; }
  .video-toggle { right: 16px; }
}
@media (max-width: 360px) {
  .rating { gap: 6px; }
  .rating label > span[aria-hidden] { width: 44px; height: 44px; }
  .feedback-form { padding: 16px; }
  .cycle { grid-template-columns: 1fr; }
  .cycle button { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media video { visibility: hidden; }
}
.module-card > img { border-radius: 50%; }

.feedback-form input[type="email"] { display:block; width:100%; padding:12px; border:1px solid #7b9cae; border-radius:10px; color:white; background:#061e2b; margin-bottom:16px; }
.feedback-form textarea { margin-bottom:22px; }
.feedback-form > label.contact-consent { display:flex; align-items:flex-start; gap:12px; font-weight:400; line-height:1.5; }
.contact-consent input { flex:0 0 auto; width:22px; height:22px; margin:2px 0 0; accent-color:#5ce0c1; }
.feedback-form input[type="email"]:focus-visible,.contact-consent input:focus-visible { outline:3px solid #ffdc81; outline-offset:3px; }
.feedback-form button:disabled { opacity:.7; cursor:wait; }

:root { --technical-height: 146px; }
body { padding-top: var(--technical-height); }
html { scroll-padding-top: calc(var(--technical-height) + 20px); }
.technical-bar { position: fixed; inset: 0 0 auto; z-index: 15; background: rgb(4 26 40 / 96%); border-bottom: 1px solid #577785; box-shadow: 0 8px 28px #0004; }
@supports (backdrop-filter: blur(16px)) { .technical-bar { background: rgb(4 26 40 / 88%); backdrop-filter: blur(16px); } }
.technical-inner { display: flex; flex-direction: column; gap: 12px; padding-block: 14px; }
.technical-brand { text-decoration: none; font-size: .95rem; font-weight: 750; line-height: 1.35; }
.technical-brand span { display: block; font-size: .75rem; font-weight: 450; color: var(--muted); }
.technical-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; justify-content: flex-start; }
.technical-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 12px; border: 1px solid #709787; border-radius: 10px; background: #173e36; color: #dcfff0; font-size: .8rem; font-weight: 650; flex: 1 1 180px; line-height: 1.4; }
.technical-button:hover { background: #245448; }
.metrics-button { border-color: #7199ad; background: #16394e; color: #e1f4ff; }
.metrics-button:hover { background: #23546d; }
.technical-button svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iot-state { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: #ffe0a1; flex-basis: 100%; }
.iot-state > span { width: 8px; height: 8px; border-radius: 50%; background: #f4c66d; }
@media (min-width: 1050px) {
  :root { --technical-height: 100px; }
  .technical-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .technical-brand { max-width: 270px; flex-shrink: 0; }
  .technical-actions { width: auto; max-width: 690px; justify-content: flex-end; }
  .technical-button { flex: 0 1 auto; }
  .iot-state { justify-content: flex-end; }
}
@media (max-width: 420px) { :root { --technical-height: 215px; } .technical-button { flex-basis: 100%; } }

.technical-button[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
.technical-button[aria-disabled="true"]:hover { background: #173e36; }
