/* ============================================================
   AMIUS EDGE · LANDING PAGE
   Depends on tokens.css. Organised: base > layout > nav > hero
   > sections > cards > forms > footer > responsive.
   ============================================================ */

/* ---------------------------------------------------------- BASE */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--deep-petrol);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--ember); }

h1, h2, h3 { font-family: var(--font-display); font-stretch: 125%; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 3px;
}

.dark-section :focus-visible { outline-color: var(--sugar-dust); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--sugar-dust); color: var(--midnight);
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------- LAYOUT */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 96px; }

.section-head { max-width: 640px; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow--on-dark {
  color: var(--edge-accent);
  letter-spacing: 0.12em;
}

.section-title {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}
.section-title--on-dark { color: var(--sugar-dust); }

.section-lead {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}
.section-lead--on-dark { color: var(--text-on-dark-muted); }

/* Shared treatment for the midnight/petrol gradient sections. */
.dark-section {
  position: relative;
  overflow: hidden;
  background-color: var(--deep-navy);
  background-image:
    linear-gradient(118deg, rgba(11,20,36,.9) 0%, rgba(14,45,60,.72) 60%, rgba(11,20,36,.9) 100%),
    var(--hero-image, url('../assets/img/gradient-midnight-petrol.jpeg'));
  background-size: cover;
  background-position: center;
}
.dark-section > .container { position: relative; z-index: 1; }

.glow {
  position: absolute;
  inset: 0;
  opacity: .3;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* --------------------------------------------------------- BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn--primary {
  background: var(--ember);
  color: var(--sugar-dust);
}
.btn--primary:hover { background: var(--accent-hover); color: var(--sugar-dust); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(252,248,236,.38);
  color: var(--sugar-dust);
}
.btn--ghost-light:hover {
  border-color: var(--sugar-dust);
  background: rgba(252,248,236,.08);
  color: var(--sugar-dust);
}

.btn--sm { height: 36px; padding-inline: 16px; font-size: 13px; }
.btn--lg { height: 52px; padding-inline: 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(17,30,54,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(252,248,236,.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-lockup__rule { width: 1px; height: 22px; background: rgba(252,248,236,.28); }
.brand-lockup__amius { height: 22px; width: auto; }
.brand-lockup__edge  { height: 19px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 34px; }

.site-nav__link {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 600;
}
.site-nav__link:hover { color: var(--sugar-dust); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid rgba(252,248,236,.32);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--sugar-dust);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after  { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: rotate(-45deg); }

/* ----------------------------------------------------------- HERO */
.hero { padding: 0; }

.hero__glow {
  background: radial-gradient(620px circle at 80% 8%, var(--edge-accent), transparent 62%);
  opacity: .32;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-block: 88px 76px;
}

.hero__title {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.015em;
  color: var(--sugar-dust);
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-on-dark-muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(252,248,236,.24);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #dbe2ec;
}
.pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--edge-accent);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

.hero__media { position: relative; }
.hero__media::before {
  content: '';
  position: absolute;
  inset: -6% -4% -10% -4%;
  background: radial-gradient(closest-side, var(--edge-accent), transparent 78%);
  opacity: .4;
  filter: blur(8px);
}
.hero__media img {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}

/* ----------------------------------------------------- VALUE BAND */
.value-band {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(252,248,236,.14);
  background: rgba(9,17,31,.4);
}

.value-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 34px;
}

.value-band__item {
  padding: 4px 28px;
  border-right: 1px solid rgba(252,248,236,.12);
}
.value-band__item:first-child { padding-left: 0; }
.value-band__item:last-child  { padding-right: 0; border-right: 0; }

.value-band__term {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
  color: var(--sugar-dust);
}
.value-band__desc {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #9fb0c4;
}

/* -------------------------------------------------- WHAT IS EDGE */
.what__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.what__copy p { margin: 20px 0 0; font-size: 17px; line-height: 1.65; }

.what__figure {
  margin: 0;
  background: var(--coffee-30);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 18px 40px -24px rgba(22,40,69,.4);
}
.what__figure img { filter: drop-shadow(0 16px 30px rgba(22,40,69,.28)); }
.what__figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--midnight-60);
}
.what__figcaption::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--deep-petrol);
  flex: none;
}

/* ------------------------------------------------------ CARD GRIDS */
.card-grid {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card--interactive {
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card--interactive:hover {
  box-shadow: 0 22px 44px -28px rgba(22,40,69,.5);
  border-color: var(--petrol-40);
  transform: translateY(-3px);
}

.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--coffee-30);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__icon img { width: 28px; height: 28px; }
.card__icon--petrol { background: var(--petrol-20); }

.card__title {
  margin: 20px 0 0;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-heading);
}
.card__title--compact { margin-top: 18px; font-size: 17px; line-height: 1.3; }

.card__body {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Analytics card: the one dark tile in the capabilities grid. */
.card--feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--midnight), #0f2740);
  border-color: var(--midnight);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card--feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at 90% 10%, var(--edge-accent), transparent 65%);
  opacity: .35;
  mix-blend-mode: screen;
}
.card--feature > * { position: relative; }
.card--feature .eyebrow { color: var(--edge-accent); font-size: 12px; letter-spacing: .1em; }
.card--feature p { margin: 12px 0 18px; font-size: 15.5px; line-height: 1.55; color: #dbe2ec; }
.card--feature a { color: var(--sugar-dust); font-weight: 600; font-size: 14px; }
.card--feature a:hover { color: var(--coffee-beans); }

/* ----------------------------------------------------------- DEMO */
.demo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo__glow {
  background: radial-gradient(600px circle at 88% 20%, var(--edge-accent), transparent 60%);
  opacity: .28;
}

.demo__title {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--sugar-dust);
}

.demo__lead { max-width: 460px; margin: 20px 0 0; }

.contact-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sugar-dust);
  font-size: 15px;
  font-weight: 600;
}
.contact-list a:hover { color: var(--coffee-beans); }
.contact-list a::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--edge-accent);
  flex: none;
}

/* ----------------------------------------------------------- FORM */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}

.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 22px; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 6px;
}
.field__required { color: var(--ember); }

.field__input,
.field__select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--midnight);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input::placeholder { color: #9aa6b6; }
.field__input:focus,
.field__select:focus {
  outline: none;
  border-color: var(--deep-petrol);
  box-shadow: 0 0 0 3px rgba(14,129,139,.15);
}
.field__input[aria-invalid="true"] { border-color: var(--ember); }

.field__error {
  margin-top: 5px;
  min-height: 1.4em; /* one line reserved so the form does not jump */
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ember);
}

.form-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--midnight-60);
}
.form-note a { color: var(--deep-petrol); text-decoration: underline; }
.form-note a:hover { color: var(--ember); }

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--ember);
  background: var(--ember-12);
  font-size: 13px;
  line-height: 1.5;
  color: #a12f04;
}
.form-error:empty { display: none; }

.form-success { text-align: center; padding: 26px 8px; }
.form-success__mark {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--petrol-20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 30px;
  color: var(--deep-petrol);
}
.form-success__title {
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 24px;
  color: var(--midnight);
}
.form-success__body {
  margin: 12px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.link-button {
  margin-top: 22px;
  background: none;
  border: none;
  padding: 0;
  color: var(--deep-petrol);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.link-button:hover { color: var(--ember); }

[hidden] { display: none !important; }

/* --------------------------------------------------------- FOOTER */
.site-footer {
  background: var(--footer-navy);
  color: var(--text-on-dark-muted);
}
.site-footer__inner { padding-block: 60px 40px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer__blurb {
  margin: 18px 0 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-on-dark-dim);
}

.office__city {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sugar-dust);
}
.office__address {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-on-dark-dim);
  font-style: normal;
}
.office__email {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--sugar-dust);
}
.office__email:hover { color: var(--coffee-beans); }

.legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(252,248,236,.12);
}
.legal p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #6b7789;
}
.legal__copyright {
  margin-top: 14px !important;
  font-size: 12px !important;
  color: var(--text-on-dark-dim) !important;
}

/* ----------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .section { padding-block: 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding-block: 64px 56px; }
  .hero__media img { margin-inline: auto; }
  .what__grid { grid-template-columns: 1fr; gap: 40px; }
  .demo__grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .value-band__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .value-band__item:nth-child(2) { border-right: 0; padding-right: 0; }
  .value-band__item:nth-child(3) { padding-left: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px var(--gutter) 24px;
    z-index: 70;
    background: #0d182b;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.7);
    border-bottom: 1px solid rgba(252,248,236,.14);
  }
  .site-nav[hidden] { display: none; }
  .site-nav__link { padding: 12px 0; font-size: 16px; }
  .site-nav .btn { margin-top: 8px; width: 100%; height: 46px; font-size: 15px; }

  .hero__actions .btn { width: 100%; }
  .value-band__grid { grid-template-columns: 1fr; }
  .value-band__item { padding: 0; border-right: 0; }
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card--interactive:hover { transform: none; }
}

/* ------------------------------------------------------------ PRINT */
@media print {
  .site-header, .nav-toggle, .glow, .hero__media::before { display: none !important; }
  body { background: #fff; color: #000; }
  .dark-section { background: #fff !important; color: #000; }
  .dark-section, .hero__title, .section-title--on-dark, .demo__title { color: #000 !important; }
  .card { break-inside: avoid; }
}
