/* ============================================
   AEDIA Landing — Design System
   ============================================ */

:root {
  --color-black: #0F1115;
  --color-gray: #2A2D34;
  --color-bg: #EBEAEE;
  --color-bg-light: #F4F2FF;
  --color-white: #FFFFFF;
  --color-accent: #7B4DFF;
  --color-accent-hover: #6A3FE8;

  --color-purple: #7B4DFF;
  --color-green: #4ADE80;
  --color-yellow: #FACC15;
  --color-pink: #F472B6;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-h1: 64px;
  --text-h1-lh: 72px;
  --text-h2: 36px;
  --text-h2-lh: 44px;
  --text-h3: 24px;
  --text-h3-lh: 32px;
  --text-body: 16px;
  --text-body-lh: 24px;
  --text-caption: 14px;
  --text-caption-lh: 20px;

  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;

  --container-max: 1200px;
  --section-padding: 120px;
  --header-height: 72px;

  --transition: 0.25s ease;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--color-gray);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  --header-bg: #f6ac2e;
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
  transition: background-color var(--transition);
}

.header--hero { --header-bg: #f6ac2e; }
.header--about { --header-bg: #0b8c99; }
.header--directions { --header-bg: #F4F2FF; }
.header--approach { --header-bg: #e00038; }
.header--status { --header-bg: #80d037; }
.header--cta { --header-bg: #eff6f6; }
.header--footer { --header-bg: #ffffff; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
}

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

.nav__link {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-gray);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-black);
}

.nav__link:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-black);
  transition: transform var(--transition), opacity var(--transition);
}

.burger--active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.burger--active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: var(--text-body);
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(123, 77, 255, 0.25);
}

.hero .btn--primary {
  background-color: #f6ac2e;
}

.hero .btn--primary:hover {
  background-color: #e09a20;
  box-shadow: 0 8px 24px rgba(246, 172, 46, 0.35);
}

.btn__icon {
  flex-shrink: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: calc(var(--header-height) + 80px) 0 var(--section-padding);
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: 75px;
  line-height: var(--text-h1-lh);
  font-weight: 300;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.38em;
  text-indent: 0;
  margin-bottom: 26px;
}

.hero__subtitle {
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 20px;
}

.hero__desc {
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--color-gray);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--section-padding) 0;
}

.section--about {
  background: var(--color-white);
}

.section--directions {
  background: var(--color-bg-light);
}

.section--approach {
  background: var(--color-white);
}

.section--approach .section__label {
  color: #e00038;
}

.section--status {
  background: var(--color-bg);
}

.section--status .section__label {
  color: #69c01a;
}

.section--cta {
  background-color: #eff6f6;
  padding-bottom: calc(var(--section-padding) + 40px);
}

.section--cta .btn--primary {
  background-color: #a4e443;
  color: black;
}

.section--cta .btn--primary:hover {
  background-color: #94d33b;
  box-shadow: 0 8px 24px rgba(164, 228, 67, 0.35);
}

.section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section__inner--reverse .section__content {
  order: 2;
}

.section__inner--reverse .section__visual {
  order: 1;
}

.section__label {
  display: block;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b8c99;
  margin-bottom: 16px;
}

.section__title {
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.section__title--cta {
  font-size: var(--text-h2);
}

.section__text p {
  margin-bottom: 16px;
}

.section__text p:last-child {
  margin-bottom: 0;
}

.section__text--single {
  margin-bottom: 32px;
}

.section__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-graphic,
.approach-graphic {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}

.cta-graphic {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ============================================
   Cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--color-white);
  border: 1px solid rgba(15, 17, 21, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(123, 77, 255, 0.08);
}

.card__illustration {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.card__title {
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 8px;
}

.card__desc {
  font-size: var(--text-caption);
  line-height: var(--text-caption-lh);
  color: var(--color-gray);
}

/* ============================================
   Status List
   ============================================ */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.status-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 17, 21, 0.05);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.status-list__item:hover {
  background: rgba(255, 255, 255, 0.8);
}

.status-list__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.status-list__name {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 4px;
}

.status-list__desc {
  display: block;
  font-size: var(--text-caption);
  line-height: var(--text-caption-lh);
  color: var(--color-gray);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0;
  background: var(--color-white);
  border-top: 1px solid rgba(15, 17, 21, 0.06);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer__brand {
  justify-self: start;
}

.footer__logo {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: var(--text-caption);
  line-height: var(--text-caption-lh);
  color: var(--color-gray);
  max-width: 280px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: center;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-gray);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: var(--text-caption);
  color: var(--color-gray);
  opacity: 0.6;
  text-align: right;
  justify-self: end;
  align-self: end;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --text-h1: 48px;
    --text-h1-lh: 56px;
    --text-h2: 28px;
    --text-h2-lh: 36px;
    --section-padding: 80px;
  }

  .hero__inner,
  .section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section__inner--reverse .section__content,
  .section__inner--reverse .section__visual {
    order: unset;
  }

  .hero__visual {
    order: -1;
  }

  .hero-graphic {
    max-width: 360px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --text-h1: 40px;
    --text-h1-lh: 48px;
    --text-h2: 24px;
    --text-h2-lh: 32px;
    --text-h3: 20px;
    --text-h3-lh: 28px;
    --section-padding: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px 24px;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(15, 17, 21, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    width: 100%;
    padding: 12px 0;
    font-size: var(--text-body);
  }

  .burger {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__links {
    justify-self: start;
  }

  .footer__copy {
    justify-self: start;
    text-align: left;
    align-self: start;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
  }
}

@media (max-width: 480px) {
  :root {
    --text-h1: 36px;
    --text-h1-lh: 42px;
  }

  .hero-graphic {
    max-width: 280px;
  }
}

/* ============================================
   Scroll reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
