* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:     #f6f6f8;
  --bg2:    #ecedf0;
  --border: #dddde3;
  --text:   #45474f;
  --muted:  #9496a1;
  --white:  #1c1d22;
}

html { scroll-behavior: smooth; }

/* ── Aurora blobs ── */
.hero,
.page-intro {
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-intro::before {
  content: '';
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(ellipse 40% 35% at 20% 40%, rgba(200, 215, 255, 0.2), transparent),
    radial-gradient(ellipse 35% 30% at 80% 25%, rgba(190, 208, 255, 0.15), transparent),
    radial-gradient(ellipse 30% 28% at 55% 80%, rgba(210, 222, 255, 0.18), transparent);
  animation: aurora 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero > *,
.page-intro > * {
  position: relative;
  z-index: 1;
}

@keyframes aurora {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(10%, -7%) scale(1.15); }
  66%  { transform: translate(-8%, 10%) scale(0.88); }
  100% { transform: translate(8%, 5%) scale(1.12); }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1.19rem;
  color: var(--muted);
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: background 0.15s;
}
.hamburger:hover span { background: var(--white); }

@media (max-width: 680px) {
  nav { padding: 0 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
}

/* ── Page sections ── */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 2rem;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ── Hero ── */
.hero {
  padding: 8rem 2rem 7rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  max-width: 640px;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ── Pillars ── */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 680px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--bg);
  padding: 4rem 3rem;
  display: block;
  transition: background 0.2s;
}

.pillar:hover { background: var(--bg2); }

.pillar-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pillar h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.pillar p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 340px;
}

.pillar-arrow {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.pillar:hover .pillar-arrow { color: var(--white); }

/* ── Generic heading block ── */
.page-intro {
  padding: 6rem 0 4rem;
  min-height: 300px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-intro .label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.page-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  max-width: 680px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-intro p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
}

/* ── Body content ── */
h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

p { color: var(--muted); }

.body-text p + p { margin-top: 1rem; }

/* ── Feature list ── */
.feat-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feat-list li h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.feat-list li p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Dark band ── */
.dark-band {
  background: #1c1d22;
  padding: 5rem 0;
  margin: 0;
  position: relative;
}

.dark-band::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20px;
  background: linear-gradient(to bottom, transparent, #f6f6f8);
  pointer-events: none;
}

.dark-band-heading {
  color: #f6f6f8;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.4;
}

.dark-band .process-step {
  opacity: 0.5;
  animation: step-pulse 10s ease-in-out infinite;
}

.dark-band .process-step:nth-child(1) { animation-delay:    0s; }
.dark-band .process-step:nth-child(2) { animation-delay: -7.5s; }
.dark-band .process-step:nth-child(3) { animation-delay:   -5s; }
.dark-band .process-step:nth-child(4) { animation-delay: -2.5s; }

@keyframes step-pulse {
  0%   { opacity: 1;   }
  20%  { opacity: 1;   }
  32%  { opacity: 0.5; }
  95%  { opacity: 0.5; }
  100% { opacity: 1;   }
}

.dark-band .process-step .num {
  color: rgba(255,255,255,0.15);
}

.dark-band .process-step h4 {
  color: #f6f6f8;
}

.dark-band .process-step p {
  color: rgba(255,255,255,0.5);
}

/* ── Process ── */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 0;
}

.process-step .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process-step h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Products ── */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}

.product-item {
  background: var(--bg);
  padding: 2.5rem;
}

.product-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.product-item .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.product-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.spec-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.spec-list li span {
  color: var(--text);
}

a.product-item-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

a.product-item-link:hover {
  background: var(--bg2);
}

/* ── Contact form ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  margin-top: 1rem;
}

@media (max-width: 680px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-details h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-details p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.contact-details a { color: var(--text); border-bottom: 1px solid var(--border); }
.contact-details a:hover { color: var(--white); }

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

input, textarea, select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: 3px;
  width: 100%;
  transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #444;
}

select option { background: var(--bg2); }

button[type=submit] {
  background: #1c1d22;
  color: #f6f6f8;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  align-self: flex-start;
  transition: opacity 0.15s;
}

button[type=submit]:hover { opacity: 0.85; }

.success-msg {
  display: none;
  font-size: 0.9rem;
  color: #7ec8a0;
  margin-top: 0.5rem;
}

/* ── Example app ── */
.example-app {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
  text-decoration: none;
  max-width: 720px;
}

.example-app:hover { border-color: var(--muted); }

.example-img {
  background: var(--bg2);
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.example-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.example-img.placeholder::after {
  content: 'Screenshot coming soon';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.85rem;
  color: var(--muted);
}

.example-img.placeholder img { display: none; }

.example-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  transition: color 0.2s;
}

.example-app:hover .example-caption { color: var(--text); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img { height: 20px; opacity: 0.3; }

footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

footer nav-foot {
  display: flex;
  gap: 1.5rem;
}

.foot-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.foot-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.15s;
}

.foot-links a:hover { color: var(--white); }
