:root {
    --bg: #f7f5ef;
    --card: #ffffff;
    --text: #1f2a24;
    --muted: #66736b;
    --accent: #6fae9a;
    --accent-dark: #3f7f6e;
    --soft: #e6f1ec;
    --line: #d8e4dd;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

html {
  scroll-behavior: smooth;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 239, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

nav {
    max-width: 1120px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 20px;
    color: var(--accent-dark);
}

nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    font-size: 14px;
}

nav a {
    text-decoration: none;
    color: var(--text);
}

nav a:hover {
    color: var(--accent-dark);
}

.hero {
    max-width: 1120px;
    margin: auto;
    padding: 90px 24px 70px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.tag {
    display: inline-block;
    padding: 8px 14px;
    background: var(--soft);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
}

.buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

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

.secondary {
    border: 1px solid var(--accent);
    color: var(--accent-dark);
}

.hero-media {
    background: var(--soft);
    border-radius: 28px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

#characters {
  margin-bottom: 100px;
}

.character-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.character-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 8px 24px rgba(31, 42, 36, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.character-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(31, 42, 36, 0.12);
}

.character-card img {
  width: 150px;
  height: auto;
  flex-shrink: 0;
}

.character-card h4 {
  font-size: 22px;
  margin-bottom: 10px;
}

.character-card p {
  color: var(--muted);
  font-size: 15px;
}


/* Breathing character floating animation */

.breath-character {
  animation: floatBreath 5s ease-in-out infinite;
}

@keyframes floatBreath {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-32px);
  }

  100% {
    transform: translateY(0);
  }
}


/* sEMG character appear/disappear animation */

.emg-character {
  animation: appearDisappear 5s ease-in-out infinite;
}

@keyframes appearDisappear {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(0.75);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .character-row {
    grid-template-columns: 1fr;
  }

  .character-card {
    flex-direction: column;
    text-align: center;
  }

  .character-card img {
    width: 130px;
  }
}

section {
    max-width: 1120px;
    margin: auto;
    padding: 80px 24px;
}

.section-title {
    margin-bottom: 36px;
}

.section-title span {
    color: var(--accent-dark);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h3 {
    font-size: 36px;
    margin-top: 8px;
}

.section-title p {
    color: var(--muted);
    max-width: 1200px;
    margin-top: 12px;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(31, 42, 36, 0.05);
}

.card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link .card {
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.card-link .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(31, 42, 36, 0.12);
  border-color: var(--accent);
}

.card-link .card h4::after {
  content: " →";
  color: var(--accent-dark);
}

.card-small {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    height: 550px;
    box-shadow: 0 8px 24px rgba(31, 42, 36, 0.05);
}

.card-small h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card-small p {
    color: var(--muted);
    font-size: 15px;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.image-box {
    background: var(--soft);
    border-radius: 24px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
    overflow: hidden;
}

.image-box-small {
    background: var(--soft);
    border-radius: 24px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
    overflow: hidden;
}

.image-box-small img,
.image-box-small video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-box img,
.image-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list {
    display: grid;
    gap: 18px;
}

.list-item {
    background: var(--card);
    border-left: 5px solid var(--accent);
    padding: 20px 24px;
    border-radius: 16px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.list-item strong {
    display: block;
    margin-bottom: 4px;
}

.list-item p {
    color: var(--muted);
    font-size: 15px;
}

footer {
    padding: 40px 24px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    text-align: left;
}

.footer-logo {
  text-align: right;
}

@media (max-width: 900px) {
    nav ul {
        display: none;
    }

    .hero,
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 42px;
    }

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

    section {
        padding: 60px 24px;
    }
}