:root {
  --navy: #071f42;
  --navy-soft: #1f3b5c;
  --blue: #0089dc;
  --blue-dark: #0076bd;
  --sky: #eaf7ff;
  --mist: #f4f9fc;
  --white: #fff;
  --line: #d8e4ec;
  --text: #405872;
  --shadow: 0 18px 48px rgba(5, 35, 68, .14);
  --radius: 7px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 5px; }
.skip-link:focus { top: 12px; }

.site-header { height: 84px; position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.97); }
.site-header.scrolled { box-shadow: 0 4px 22px rgba(9, 43, 79, .09); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 190px; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link { position: relative; padding: 31px 0 26px; font-size: .92rem; color: #27415f; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--blue); transition: right .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--blue-dark); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform .25s, opacity .25s; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; padding: 0 28px; border: 1px solid var(--blue-dark); border-radius: var(--radius); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; font-weight: 700; font-size: .96rem; box-shadow: 0 10px 24px rgba(0, 126, 201, .17); transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(0, 126, 201, .24); }
.button:focus-visible, .nav-link:focus-visible, .menu-toggle:focus-visible, .contact-button:focus-visible { outline: 3px solid #75c9ff; outline-offset: 4px; }
.button-small { min-height: 46px; padding-inline: 25px; font-size: .9rem; }
.button-outline { background: rgba(255,255,255,.55); color: var(--navy); box-shadow: none; }
.button-outline:hover { background: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }

.hero { min-height: 445px; display: grid; align-items: center; position: relative; overflow: hidden; background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 31%, rgba(255,255,255,.08) 66%), url("../img/ocean-mountains.jpg"); background-position: center; background-size: cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 100px; background: linear-gradient(to top, rgba(229,245,254,.18), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding-block: 55px; }
.hero-copy { max-width: 560px; }
.hero h1 { margin: 0; letter-spacing: -.045em; font-size: clamp(2.8rem, 5vw, 4.25rem); line-height: 1.03; }
.hero h1 span, .section-copy h2 span, .contact-copy h2 span { color: var(--blue); }
.hero p { max-width: 560px; margin: 24px 0 0; color: #334b67; font-size: 1.17rem; line-height: 1.45; }

.capabilities { background: #fff; }
.capability-grid { min-height: 174px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.capability { min-width: 0; display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 24px; padding: 18px 44px; border-right: 1px solid var(--line); }
.capability:first-child { padding-left: 25px; }
.capability:last-child { border: 0; padding-right: 0; }
.icon-disc { width: 74px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--sky); color: var(--blue-dark); }
.icon-disc svg { width: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.capability h2 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.25; }
.capability p { margin: 0; color: var(--text); font-size: .93rem; }

.section { padding: 78px 0; }
.split-layout { display: grid; grid-template-columns: .86fr 1.24fr; align-items: center; gap: 64px; }
.eyebrow { margin: 0 0 16px; color: var(--blue-dark); font-size: .82rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-copy h2 { margin: 0; letter-spacing: -.035em; font-size: clamp(2.25rem, 4vw, 3.3rem); line-height: 1.08; }
.section-copy .lead { margin: 20px 0; color: var(--text); font-size: 1.08rem; line-height: 1.45; }
.check-list { list-style: none; display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; color: var(--text); }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: .75rem; font-weight: 900; }

.dashboard-visual { min-width: 0; padding-top: 20px; }
.laptop { position: relative; margin-inline: auto; width: min(100%, 690px); filter: drop-shadow(0 20px 16px rgba(0, 23, 51, .2)); }
.laptop-screen { height: 380px; display: grid; grid-template-columns: 22% 1fr; overflow: hidden; border: 12px solid #101315; border-radius: 18px 18px 6px 6px; background: #eef5fa; }
.dashboard-sidebar { padding: 22px 14px; background: linear-gradient(180deg, #163657, #071f42); color: #fff; }
.dashboard-sidebar strong { display: block; margin-bottom: 28px; font-size: .9rem; }
.dashboard-sidebar strong span { color: #fff; }
.dashboard-sidebar i { display: block; width: 72%; height: 7px; margin: 18px 0; border-radius: 4px; background: rgba(255,255,255,.28); }
.dashboard-sidebar i:nth-of-type(2), .dashboard-sidebar i:nth-of-type(5) { width: 52%; }
.dashboard-main { min-width: 0; padding: 34px 20px 20px; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dashboard-head strong { font-size: 1.15rem; }
.dashboard-head span { padding: 7px 9px; border-radius: 4px; background: #fff; color: #53667c; font-size: .58rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric-grid > div { min-width: 0; padding: 12px 10px 7px; border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(20,56,83,.04); }
.metric-grid small { display: block; min-height: 28px; color: #455a72; font-size: .5rem; font-weight: 700; }
.metric-grid b { display: block; margin-bottom: 2px; font-size: 1rem; }
.metric-grid sup { font-size: .5rem; }
.metric-grid svg { height: 18px; width: 100%; fill: none; stroke: #11a7e8; stroke-width: 2; }
.chart-card { margin-top: 14px; padding: 12px 12px 5px; background: #fff; border-radius: 6px; }
.chart-card small { color: #304a66; font-size: .57rem; font-weight: 800; }
.chart-card svg { width: 100%; height: 125px; overflow: visible; }
.chart-card .grid-line { fill: none; stroke: #e0eaf1; stroke-width: 1; }
.chart-card .area { fill: url(#none); opacity: .12; }
.chart-card .line { fill: none; stroke: #049bf0; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-labels { display: flex; justify-content: space-between; color: #718196; font-size: .5rem; }
.laptop-base { width: 112%; height: 18px; margin-left: -6%; position: relative; border-radius: 2px 2px 50% 50%; background: linear-gradient(#edf1f3, #8c9599 55%, #d5dbdd); }
.laptop-base::after { content: ""; position: absolute; left: 41%; top: 0; width: 18%; height: 7px; border-radius: 0 0 8px 8px; background: #aeb6ba; }

.sensors-section { overflow: hidden; background: linear-gradient(105deg, #f7fbfe, #e8f7ff); }
.sensors-layout { grid-template-columns: .9fr 1.35fr; }
.iot-diagram { display: grid; grid-template-columns: 1.05fr 34px .9fr 34px .75fr; align-items: center; gap: 8px; color: var(--navy); }
.sensor-list { display: grid; gap: 10px; }
.sensor-list > strong { margin-bottom: 4px; }
.sensor-list span { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .8rem; }
.sensor-list i { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #fff; color: var(--navy); font-style: normal; font-weight: 700; box-shadow: 0 5px 15px rgba(4,42,82,.05); }
.diagram-arrow { color: var(--blue); font-size: 2rem; font-weight: 300; text-align: center; }
.diagram-node { display: grid; justify-items: center; text-align: center; }
.diagram-node svg { width: 88px; height: 76px; margin-bottom: 10px; fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.diagram-node strong { font-size: .88rem; }
.diagram-node span { margin-top: 5px; color: var(--text); font-size: .72rem; line-height: 1.4; }
.iot-node svg { width: 100px; }

.contact-section { position: relative; isolation: isolate; padding: 57px 0; color: #fff; background: url("../img/ocean-mountains.jpg") center 68%/cover; }
.contact-section::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,34,67,.95), rgba(0,48,83,.78)); }
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 72px; }
.eyebrow.light { color: #d8efff; }
.contact-copy h2 { margin: 0; letter-spacing: -.03em; font-size: clamp(2.25rem, 4vw, 3.15rem); line-height: 1.08; }
.contact-copy p:last-child { margin: 16px 0 0; color: #c6d8e7; font-size: 1.08rem; }
.contact-actions { display: grid; gap: 14px; }
.contact-button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.75); border-radius: 7px; font-weight: 700; transition: transform .2s, background .2s; }
.contact-button:hover { transform: translateY(-2px); }
.contact-button svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-button.primary { background: #fff; color: #0a4179; }
.contact-button.secondary { background: rgba(0,19,45,.22); color: #fff; }

.site-footer { padding: 24px 0; background: #04162e; color: #9cb1c6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 170px; }
.footer-inner p { margin: 0; font-size: .85rem; }

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

@media (max-width: 980px) {
  .site-header, .site-header.scrolled { height: 72px; }
  .brand img { width: 165px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 72px 0 auto; display: grid; gap: 0; padding: 10px 20px 22px; background: #fff; box-shadow: 0 16px 25px rgba(3,34,66,.12); transform: translateY(-130%); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 15px 4px; border-bottom: 1px solid #e5eef4; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 14px; }
  .capability-grid { min-height: auto; padding-block: 25px; }
  .capability { grid-template-columns: 62px 1fr; gap: 16px; padding: 15px 22px; }
  .capability:first-child { padding-left: 0; }
  .icon-disc { width: 62px; }
  .split-layout, .sensors-layout { grid-template-columns: 1fr; gap: 42px; }
  .platform-section .section-copy { max-width: 620px; }
  .dashboard-visual { width: min(100%, 720px); margin-inline: auto; }
  .iot-diagram { width: min(100%, 700px); margin-inline: auto; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero { min-height: 570px; align-items: start; background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.05) 76%), url("../img/ocean-mountains.jpg"); background-position: 63% center; }
  .hero-inner { padding-top: 62px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.55rem); }
  .hero p { max-width: 440px; font-size: 1.03rem; }
  .button-row .button { flex: 1 1 190px; }
  .capability-grid { grid-template-columns: 1fr; padding-block: 18px; }
  .capability, .capability:first-child, .capability:last-child { padding: 18px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability:last-child { border: 0; }
  .section { padding: 62px 0; }
  .section-copy h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .laptop-screen { height: 315px; grid-template-columns: 19% 1fr; border-width: 8px; }
  .dashboard-sidebar { padding: 18px 8px; }
  .dashboard-sidebar strong { font-size: .6rem; }
  .dashboard-main { padding: 25px 12px 12px; }
  .metric-grid { gap: 5px; }
  .metric-grid > div { padding: 8px 5px; }
  .metric-grid small { min-height: 24px; font-size: .4rem; }
  .metric-grid b { font-size: .7rem; }
  .chart-card svg { height: 102px; }
  .iot-diagram { grid-template-columns: 1fr; gap: 12px; }
  .sensor-list { width: min(100%, 330px); margin-inline: auto; }
  .diagram-arrow { transform: rotate(90deg); }
  .diagram-node span { max-width: 180px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-section { padding-block: 60px; }
  .contact-copy h2 { font-size: clamp(2.15rem, 10vw, 2.8rem); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 440px) {
  .laptop-screen { height: 260px; }
  .dashboard-sidebar i { margin-block: 14px; }
  .dashboard-head { margin-bottom: 10px; }
  .dashboard-head span { display: none; }
  .metric-grid > div:nth-child(4) { display: none; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .chart-card { margin-top: 8px; }
  .chart-card svg { height: 78px; }
}

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