/* LumaFront — corporate site */

:root {
  --bg: #f4f8f8;
  --bg-elevated: #ffffff;
  --bg-section: #eaf2f2;
  --surface: #ffffff;
  --text: #0d1f24;
  --text-muted: #5a7178;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --line: rgba(13, 31, 36, 0.1);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul, ol, dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(244, 248, 248, 0.78);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  color: #ffffff !important;
  background: var(--accent);
  padding: 0.45rem 0.95rem;
  border-radius: 2px;
  font-weight: 600 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--accent-strong);
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero — one composition, brand-first, full-bleed */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 148, 136, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(45, 212, 191, 0.12), transparent 50%),
    linear-gradient(165deg, #eef6f6 0%, #f7fbfb 45%, #f4f8f8 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 31, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 31, 36, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 85%);
  animation: grid-drift 28s linear infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow--a {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  right: 8%;
  top: 12%;
  background: rgba(45, 212, 191, 0.35);
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-glow--b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  left: 5%;
  bottom: 18%;
  background: rgba(13, 148, 136, 0.2);
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

.hero-panel {
  position: absolute;
  right: max(0px, calc((100% - var(--max)) / 2 - 2rem));
  top: 12%;
  bottom: 18%;
  width: min(42vw, 460px);
  border: 1px solid rgba(13, 148, 136, 0.28);
  background:
    linear-gradient(145deg, rgba(13, 148, 136, 0.1), transparent 40%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(234, 242, 242, 0.45));
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  box-shadow: inset 0 0 80px rgba(13, 148, 136, 0.06);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 12% 14%;
  border: 1px solid rgba(13, 31, 36, 0.08);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(13, 148, 136, 0.08) 18px,
      rgba(13, 148, 136, 0.08) 19px
    );
}

.hero-content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6rem) var(--space) clamp(3.5rem, 12vh, 7rem);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  color: var(--text);
  animation: hero-in 0.9s var(--ease) both;
}

.hero-headline {
  max-width: 16ch;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  animation: hero-in 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  max-width: 36ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  animation: hero-in 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: hero-in 0.9s var(--ease) 0.32s both;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */

.section {
  padding: clamp(4.5rem, 12vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-head h2,
.about-layout h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Products — list, not card grid */

.product-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.product-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.product-item:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}

.product-code {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.product-item h3 {
  font-size: 1.25rem;
}

.product-item p {
  grid-column: 2;
  color: var(--text-muted);
  max-width: 48rem;
}

/* Solutions — horizontal rail */

.solutions {
  background: var(--bg-section);
}

.solution-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.solution-rail li {
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
  margin-right: 1.5rem;
}

.solution-rail li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.solution-rail h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.solution-rail p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Technology */

.technology {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(13, 148, 136, 0.08), transparent 55%),
    var(--bg);
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.tech-layout .section-head {
  margin-bottom: 0;
}

.tech-points {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
}

.tech-points dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tech-points dd {
  color: var(--text-muted);
  margin: 0;
}

/* About */

.about {
  background: var(--bg-elevated);
}

.about-layout {
  max-width: 40rem;
}

.about-copy {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.contact-layout .section-head {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: #f7fbfb;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.4em;
}

.form-note.is-error {
  color: #f87171;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Motion */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand,
  .hero-headline,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-grid,
  .hero-glow {
    animation: none !important;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .hero-panel {
    opacity: 0.45;
    width: min(55vw, 320px);
    top: 8%;
    bottom: 40%;
  }

  .solution-rail {
    grid-template-columns: 1fr 1fr;
  }

  .solution-rail li:nth-child(2n) {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .tech-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .tech-points {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.75rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--space) 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .product-item {
    grid-template-columns: 1fr;
  }

  .product-code {
    grid-row: auto;
  }

  .product-item p {
    grid-column: 1;
  }

  .solution-rail {
    grid-template-columns: 1fr;
  }

  .solution-rail li {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .hero-panel {
    display: none;
  }
}
