/* rampx.com.au landing page. Colours from the ECE RampX logo and the RampX web UI. */

@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../fonts/poppins-light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-semibold.woff2") format("woff2"); }

:root {
  --red: #ED3325;
  --orange: #F36725;
  --amber: #FAA524;
  --slate: #354052;
  --night: #1B212B;
  --night-deep: #12161D;
  --text: #F4F6F9;
  --text-soft: #C9D1DC;
  --text-muted: #8C97A8;
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--night-deep); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* page background, fixed so it doesn't repeat as the page scrolls */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, #2A3341 0%, var(--night) 55%, var(--night-deep) 100%);
}

/* Animated sensor network (assets/js/network.js) */
#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

/* Two slow-moving brand-coloured glows behind the content */
.glow {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(237, 51, 37, 0.16), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(250, 165, 36, 0.13), transparent 42%);
  filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(8deg); }
}

/* First screen */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.logo {
  width: min(280px, 64vw);
  height: auto;
  margin-bottom: 36px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

/* thin white line between the headline and the description */
.hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 20px auto 4px;
  background: #FFFFFF;
}

.lead {
  margin: 0 0 32px;
  max-width: 600px;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  line-height: 1.75;
  color: var(--text-soft);
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 12px 24px;
  border-radius: 4px;
  background: var(--orange);
  color: #151A22;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cta:hover { background: var(--amber); }

.cta:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* Content below the first screen */
main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section h2 {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 600;
}

.section h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.section p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps h3::before {
  content: counter(step) ". ";
  color: var(--amber);
}

.faq {
  max-width: 760px;
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  padding: 16px 28px 16px 0;
  position: relative;
  cursor: pointer;
  font-weight: 400;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
}

.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; }

.faq summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.closing { padding-bottom: 72px; }
.closing p { margin-bottom: 24px; max-width: 600px; }

footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--amber); text-decoration: underline; }

/* phones */
@media (max-width: 480px) {
  .hero { padding: 40px 20px 28px; }
  .logo { width: min(220px, 60vw); margin-bottom: 28px; }
  .lead { margin-bottom: 26px; line-height: 1.65; }
  .section { padding: 36px 20px; }
  .cards, .steps { gap: 24px; }
}

/* 404 page */
.notfound .lead { margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  .cta { transition: none; }
}
