/* Athene Group Ltd — athenegroup.org
   Palette: ink #0E1B2C · brand teal #1F9C80 · slate #5B6472 · paper #FCFCFD */

:root {
  --ink: #0e1b2c;
  --ink-soft: #24344c;
  --slate: #5b6472;
  --brand: #1f9c80;
  --brand-soft: #57bfa6;
  --paper: #fcfcfd;
  --line: #e6e8ec;
  --card: #ffffff;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --w: 1100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; }

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

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 253, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--brand); }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 84px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brand);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lede {
  margin-top: 24px;
  font-size: 18px;
  color: var(--slate);
  max-width: 46ch;
}

.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 27, 44, 0.22);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.hero-stats {
  margin-top: 52px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.stat .stat-n {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.stat .stat-l {
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Icon mosaic */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mosaic a {
  display: block;
  border-radius: 24%;
  overflow: hidden;
  outline: 1px solid rgba(14, 27, 44, 0.07);
  outline-offset: -1px;
  box-shadow: 0 6px 18px rgba(14, 27, 44, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mosaic a:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 34px rgba(14, 27, 44, 0.2);
}

.mosaic img { aspect-ratio: 1; width: 100%; }

/* ---------- Meander divider ---------- */

.meander {
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'%3E%3Cpath d='M1 15 V1 H17 V10 H9 V6 H13' fill='none' stroke='%231f9c80' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0.5;
  margin: 0 auto;
  max-width: 198px;
}

/* ---------- Sections ---------- */

section { padding: 92px 0; }

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

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.section-head p { margin-top: 16px; color: var(--slate); font-size: 17px; }

/* Featured apps */

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.f-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.f-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(14, 27, 44, 0.12);
}

.f-card img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(14, 27, 44, 0.14);
}

.f-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f-card .f-cat {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 4px;
}

.f-card p { font-size: 14.5px; color: var(--slate); flex: 1; }

.f-card .f-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.f-card:hover .f-link { color: var(--brand); }

/* Portfolio grid */

#apps { background: #f6f7f9; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.a-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.a-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(14, 27, 44, 0.1);
}

.a-card img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex-shrink: 0;
}

.a-card .a-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.a-card .a-cat { display: block; font-size: 12px; color: var(--slate); margin-top: 2px; }

.apps-more { margin-top: 40px; text-align: center; }

/* Values */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.value h3 svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }

.value p { color: var(--slate); font-size: 15px; }

/* About band */

.about-band {
  background: var(--ink);
  color: #e9ecf1;
}

.about-band .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-band h2 { color: #fff; }

.about-band .owl-large {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.35);
}

.about-band .eyebrow { color: var(--brand-soft); }

.about-band p { color: #aeb7c4; margin-top: 18px; font-size: 16.5px; }

.about-band strong { color: #fff; font-weight: 600; }

/* Contact */

.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(31, 156, 128, 0.08), transparent 70%),
    var(--card);
}

.contact-card p {
  color: var(--slate);
  max-width: 52ch;
  margin: 16px auto 32px;
}

.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.8rem);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-soft);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.contact-mail:hover { color: var(--brand); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  font-size: 13.5px;
  color: var(--slate);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 24px; list-style: none; }

.footer-links a { text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand); }
.site-footer .ver { opacity: 0.5; font-size: 12px; margin-left: 6px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Legal page */

.legal { padding: 72px 0 96px; max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); margin-bottom: 8px; }
.legal .legal-date { color: var(--slate); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; }
.legal ul { padding-left: 22px; margin-top: 8px; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .mosaic { max-width: min(420px, 100%); }
  .featured { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-band .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .featured { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .a-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .values { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .mosaic { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
