:root {
  --ink: #071723;
  --ink-soft: #102a3b;
  --paper: #f5f8f7;
  --white: #ffffff;
  --muted: #60717c;
  --line: rgba(7, 23, 35, .13);
  --cyan: #23c7d9;
  --green: #57d68d;
  --solar: #ffca58;
  --blue: #4b83ff;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(7, 23, 35, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(20px, 5vw, 76px);
  color: var(--white);
  background: rgba(7, 23, 35, .92);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 154px; height: auto; filter: brightness(0) invert(1); }
.brand span {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 650; }
.site-nav a { color: rgba(255,255,255,.78); transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav .nav-cta { padding: 12px 18px; color: var(--ink); background: var(--green); border-radius: 999px; }
.menu-toggle { display: none; border: 0; color: white; background: transparent; font-size: 1.5rem; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 730px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 110px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 24%, rgba(35,199,217,.22), transparent 27%),
    radial-gradient(circle at 70% 80%, rgba(87,214,141,.14), transparent 31%),
    linear-gradient(110deg, #071723 10%, #0b2231 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .17;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, transparent 15%, black 70%);
}

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1, .product-hero h1 { max-width: 850px; margin: 24px 0; font-size: clamp(3.35rem, 7.5vw, 7.8rem); line-height: .91; letter-spacing: -.065em; }
.hero h1 em, .product-hero h1 em { color: var(--cyan); font-family: Georgia, serif; font-weight: 400; }
.hero-copy > p, .product-lead { max-width: 670px; margin: 0; color: rgba(255,255,255,.68); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--green); }
.button-secondary { color: var(--white); border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.06); }
.button-dark { color: var(--white); background: var(--ink); }

.system-map { position: relative; min-height: 470px; }
.system-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 184px; height: 184px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(87,214,141,.5);
  border-radius: 50%;
  background: rgba(7,23,35,.88);
  box-shadow: 0 0 0 22px rgba(87,214,141,.04), 0 0 80px rgba(35,199,217,.15);
}
.system-core::after { content: ""; position: absolute; inset: 19px; border: 1px dashed rgba(255,255,255,.22); border-radius: 50%; animation: spin 20s linear infinite; }
.system-core strong { font-size: 1.15rem; letter-spacing: -.03em; }
.system-core small { display: block; margin-top: 6px; color: var(--green); text-align: center; letter-spacing: .18em; }
.system-node { position: absolute; width: 154px; padding: 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: 0 20px 50px rgba(0,0,0,.22); backdrop-filter: blur(12px); }
.system-node small { display: block; margin-bottom: 6px; color: rgba(255,255,255,.5); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.system-node strong { font-size: .95rem; }
.node-a { left: 0; top: 8%; }
.node-b { right: 0; top: 13%; }
.node-c { left: 3%; bottom: 5%; }
.node-d { right: 2%; bottom: 3%; }
.system-line { position: absolute; left: 50%; top: 50%; width: 64%; height: 64%; transform: translate(-50%, -50%); border: 1px dashed rgba(35,199,217,.25); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.section { padding: clamp(74px, 9vw, 130px) clamp(24px, 7vw, 110px); }
.section-dark { color: var(--white); background: var(--ink-soft); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: end; margin-bottom: 52px; }
.section-head h2 { max-width: 760px; margin: 14px 0 0; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
.section-head p { max-width: 580px; margin: 0; color: var(--muted); line-height: 1.7; }
.section-dark .section-head p { color: rgba(255,255,255,.62); }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project-card { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card:nth-child(1), .project-card:nth-child(2) { grid-column: span 6; }
.project-card:nth-child(3), .project-card:nth-child(4) { grid-column: span 6; min-height: 310px; }
.project-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -100px; border-radius: 50%; background: var(--card-color, var(--cyan)); opacity: .12; }
.project-tag { width: max-content; padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3 { margin: 26px 0 12px; font-size: clamp(2rem, 3vw, 3.25rem); letter-spacing: -.055em; }
.project-card p { max-width: 570px; margin: 0; color: var(--muted); line-height: 1.65; }
.project-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; font-size: .82rem; font-weight: 800; }
.project-card footer span:last-child { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); border-radius: 50%; background: var(--ink); }
.project-pv { --card-color: var(--solar); }
.project-iot { --card-color: var(--cyan); }
.project-legacy { --card-color: var(--blue); }
.project-monitor { --card-color: var(--green); }

.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.12); }
.capability-grid article { min-height: 260px; padding: 30px; background: var(--ink-soft); }
.capability-grid b { display: block; color: var(--green); font-size: 2rem; font-weight: 450; }
.capability-grid h3 { margin: 45px 0 12px; font-size: 1.25rem; }
.capability-grid p { margin: 0; color: rgba(255,255,255,.58); line-height: 1.6; }

.architecture { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: space-between; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.architecture span { min-width: 120px; padding: 20px 14px; text-align: center; border-radius: 15px; background: var(--paper); font-weight: 750; }
.architecture i { width: 35px; height: 1px; position: relative; background: var(--cyan); }
.architecture i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--cyan); border-right: 1px solid var(--cyan); transform: rotate(45deg); }

.contact-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: clamp(50px, 7vw, 90px) clamp(24px, 7vw, 110px); color: var(--ink); background: var(--green); }
.contact-band h2 { max-width: 900px; margin: 0; font-size: clamp(2.3rem, 5vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.contact-band p { margin: 16px 0 0; font-size: 1.08rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding: 46px clamp(24px, 7vw, 110px); color: rgba(255,255,255,.62); background: var(--ink); font-size: .83rem; }
.site-footer strong { display: block; margin-bottom: 8px; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; color: rgba(255,255,255,.48); font-size: .77rem; }
.breadcrumb a:hover { color: white; }
.product-hero { position: relative; overflow: hidden; padding: clamp(70px, 8vw, 120px) clamp(24px, 7vw, 110px) clamp(80px, 10vw, 150px); color: white; background: var(--ink); }
.product-hero::after { content: ""; position: absolute; right: -12vw; top: -30vw; width: 60vw; height: 60vw; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); }
.product-hero h1 { position: relative; z-index: 1; max-width: 1050px; font-size: clamp(3.4rem, 7vw, 7rem); }
.product-hero .product-lead, .product-hero .hero-actions, .product-hero .breadcrumb, .product-hero .eyebrow { position: relative; z-index: 1; }
.tone-pv { background: linear-gradient(120deg, #112019, #071723 60%); }
.tone-pv h1 em { color: var(--solar); }
.tone-iot h1 em { color: var(--cyan); }
.tone-legacy { background: linear-gradient(120deg, #101b3d, #071723 65%); }
.tone-legacy h1 em { color: #87a8ff; }
.tone-monitor { background: linear-gradient(120deg, #0c2b2b, #071723 65%); }
.tone-monitor h1 em { color: var(--green); }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: white; }
.metric-strip div { padding: 30px clamp(24px, 5vw, 70px); border-right: 1px solid var(--line); }
.metric-strip div:last-child { border: 0; }
.metric-strip strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.metric-strip span { color: var(--muted); font-size: .82rem; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article { min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.feature-number { color: var(--cyan); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.feature-grid h3 { margin: 70px 0 13px; font-size: 1.3rem; letter-spacing: -.025em; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 7vw, 100px); align-items: center; }
.showcase-copy h2 { margin: 14px 0 20px; font-size: clamp(2.4rem, 4.5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.showcase-copy p { color: var(--muted); line-height: 1.75; }
.showcase-copy .text-link { display: inline-block; margin-top: 18px; font-weight: 850; border-bottom: 2px solid var(--green); }
.dashboard-card { padding: 24px; color: white; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: #0b1f2d; box-shadow: var(--shadow); }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dashboard-head small { display: block; margin-bottom: 6px; color: rgba(255,255,255,.48); }
.live { color: var(--green); font-size: .75rem; }
.chart { height: 220px; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.chart svg { width: 100%; height: 180px; overflow: visible; }
.chart-grid { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }
.chart-area { fill: url(#chartFill); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.dashboard-kpis span { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.06); }
.dashboard-kpis small { display: block; margin-bottom: 5px; color: rgba(255,255,255,.44); }

.flow-panel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.flow-stack { display: grid; gap: 10px; }
.flow-stack span { padding: 14px; border-radius: 12px; background: var(--paper); font-size: .85rem; font-weight: 750; }
.flow-core { width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); box-shadow: 0 0 0 13px rgba(35,199,217,.1); }
.flow-core strong { font-size: 1.1rem; }

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.doc-card small { display: block; margin-top: 5px; color: var(--muted); }
.doc-card span:last-child { font-size: 1.4rem; }

.section-faq { padding-top: 40px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-grid article { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.faq-grid h3 { margin: 0 0 12px; font-size: 1.2rem; letter-spacing: -.025em; }
.faq-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

[data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .system-map { max-width: 620px; width: 100%; margin: 0 auto; }
  .capability-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .architecture { grid-template-columns: 1fr; }
  .architecture i { width: 1px; height: 28px; margin: 0 auto; }
  .architecture i::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand img { width: 126px; }
  .brand span { display: none; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 15px 20px 24px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 4px; }
  .site-nav .nav-cta { margin-top: 8px; padding: 13px 18px; text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 75px; }
  .hero h1, .product-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .system-map { min-height: 390px; transform: scale(.88); }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .project-card, .project-card:nth-child(n) { grid-column: span 12; min-height: 330px; }
  .capability-grid, .feature-grid, .metric-strip, .doc-grid, .faq-grid { grid-template-columns: 1fr; }
  .metric-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-band, .site-footer { grid-template-columns: 1fr; }
  .flow-panel { grid-template-columns: 1fr; }
  .flow-core { margin: 10px auto; }
}

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