/* ============================================================
   AurelFront — corporate landing page
   Light editorial theme built on the brand palette:
   navy #0c1830 · gold #b4843c · ivory #fbf9f4
   ============================================================ */

:root {
  /* palette — sampled from the AurelFront logo */
  --navy:       #0c1830;
  --navy-2:     #14243f;
  --navy-soft:  #2c3a55;

  --ivory:      #fbf9f4;
  --ivory-2:    #f4f0e7;
  --paper:      #ffffff;

  --gold:       #b4843c;
  --gold-deep:  #97692c;
  --gold-soft:  #c79b54;
  --gold-wash:  #f3ead8;

  --text:       #0c1830;
  --text-muted: #555f72;
  --text-dim:   #8b93a2;
  --line:       rgba(12, 24, 48, 0.12);
  --line-soft:  rgba(12, 24, 48, 0.07);

  --green:      #3f9d6b;

  /* type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* layout */
  --maxw: 1120px;
  --pad:  clamp(1.25rem, 5vw, 4rem);
  --r:    16px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* soft warm glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55rem 38rem at 78% -8%, rgba(180, 132, 60, 0.10), transparent 60%),
    radial-gradient(45rem 38rem at -5% 4%, rgba(12, 24, 48, 0.05), transparent 55%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--ivory);
  padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy); color: var(--ivory); font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(12, 24, 48, .5);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--ivory) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--ivory) 92%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--text-muted); font-size: .95rem; font-weight: 500; transition: color .15s ease; }
.site-nav a:hover { color: var(--navy); }
.nav-cta {
  border: 1px solid var(--line); padding: .45rem 1.1rem; border-radius: 999px;
}
.nav-cta:hover { border-color: var(--gold); color: var(--gold-deep) !important; }
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-logo { height: 32px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(4rem, 12vh, 9rem) 0 clamp(3rem, 8vh, 6rem); }
.hero::after {
  content: '';
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(46vw, 560px); aspect-ratio: 1; z-index: -1;
  background: url('logos/aurelfront-simple-nobg.png') no-repeat center / contain;
  opacity: 0.05; pointer-events: none;
}
@media (max-width: 820px) { .hero::after { display: none; } }
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 1.4rem;
}
.eyebrow::before { content: '— '; color: var(--gold); }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.01em; max-width: 16ch; color: var(--navy);
}
.hero-title em { font-style: italic; color: var(--gold-deep); }
.hero-sub {
  margin-top: 1.6rem; max-width: 56ch;
  font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-muted);
}
.hero-actions { margin-top: 2.2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats {
  margin-top: clamp(3rem, 7vh, 4.5rem); display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); padding-top: 2rem; max-width: 760px;
}
.hero-stats dt { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); }
.hero-stats dd { color: var(--text-dim); font-size: .92rem; margin-top: .15rem; }
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 11vh, 8rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--ivory-2), var(--ivory)); border-block: 1px solid var(--line-soft); }
.section-title {
  font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.01em;
}
.section-lede { margin-top: 1rem; max-width: 60ch; color: var(--text-muted); font-size: 1.1rem; }

/* ---------- grids ---------- */
.grid-3 { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { margin-top: 3rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2rem 1.7rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 40px -28px rgba(12,24,48,.4); }
.card-num { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); }
.card h3 { font-size: 1.3rem; margin: .6rem 0 .5rem; font-weight: 600; color: var(--navy); }
.card p { color: var(--text-muted); font-size: .98rem; }

.principle {
  border-left: 2px solid var(--line); padding: .2rem 0 .2rem 1.5rem;
  transition: border-color .2s ease;
}
.principle:hover { border-left-color: var(--gold); }
.principle h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: .4rem; color: var(--navy); }
.principle p { color: var(--text-muted); }

/* ---------- product ---------- */
.product {
  margin-top: 3rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(12,24,48,.4);
}
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.product-body { padding: clamp(1.8rem, 4vw, 3rem); }
.product-head { display: flex; align-items: center; gap: .8rem; }
.product-badge {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  padding: .2rem .6rem; border-radius: 999px;
}
.product-name { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 400; color: var(--navy); }
.product-tag { color: var(--gold-deep); margin-top: .3rem; font-size: 1.05rem; }
.product-desc { color: var(--text-muted); margin-top: 1rem; max-width: 50ch; }
.product-points { list-style: none; padding: 0; margin: 1.3rem 0 1.8rem; display: grid; gap: .55rem; }
.product-points li { position: relative; padding-left: 1.6rem; color: var(--navy); font-size: .96rem; }
.product-points li::before {
  content: ''; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem;
  border-radius: 50%; background: var(--gold);
}
.product-aside {
  background: radial-gradient(30rem 30rem at 80% 0%, var(--gold-wash), transparent 62%), var(--ivory-2);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  padding: 2.5rem;
}
@media (max-width: 820px) { .product-aside { border-left: none; border-top: 1px solid var(--line); } }
.score-ring {
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--gold) 0 61%, #e3dccc 61% 100%);
  position: relative;
}
.score-ring::after {
  content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--paper);
}
.score-val { font-family: var(--serif); font-size: 3rem; line-height: 1; z-index: 1; color: var(--navy); }
.score-label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); z-index: 1; }
.score-bars { display: flex; gap: .5rem; align-items: flex-end; height: 64px; }
.score-bars span {
  width: 16px; border-radius: 5px 5px 0 0; height: var(--v);
  background: linear-gradient(var(--gold-soft), var(--gold));
}
.product-more { margin-top: 2rem; color: var(--text-dim); max-width: 52ch; }

/* ---------- CTA ---------- */
.section-cta { text-align: center; background: var(--navy); color: var(--ivory); }
.section-cta .cta-sub { color: rgba(251, 249, 244, 0.72); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.04; color: var(--ivory); }
.cta-title::after { content: ''; display: block; width: 64px; height: 3px; background: var(--gold); margin: 1.1rem auto 0; border-radius: 2px; }
.cta-sub { margin: 1.4rem 0 2rem; max-width: 46ch; font-size: 1.12rem; }
.section-cta .btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(180,132,60,.6); }
.section-cta .btn-primary:hover { background: var(--gold-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 3.5rem; background: var(--ivory); }
.footer-inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer-logo { height: 40px; width: auto; }
.footer-brand p { color: var(--text-dim); margin-top: .7rem; max-width: 32ch; font-size: .95rem; }
.footer-nav { display: flex; gap: 3.5rem; }
.footer-nav h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .8rem; font-weight: 600; }
.footer-nav a { display: block; color: var(--text-muted); font-size: .95rem; margin-bottom: .5rem; transition: color .15s ease; }
.footer-nav a:hover { color: var(--gold-deep); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding: 1.5rem var(--pad) 2.5rem;
  color: var(--text-dim); font-size: .85rem;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
