/* -----------------------------------------------------
   GLOBAL RESET + VARIABLES
------------------------------------------------------ */

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

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Inter", "Helvetica Neue", Arial, sans-serif;

  --black: #000;
  --ink: #111;
  --ink-soft: #555;
  --light-gray: #f5f5f7;
  --line: #e5e5e5;

  --accent-red: #e53935;

  --radius: 12px;
  --max-width: 1100px;

  --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 10px 28px rgba(0,0,0,0.10);

  --transition: 0.25s ease;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------
   TYPOGRAPHY
------------------------------------------------------ */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 18px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 30px;
}

.small-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* -----------------------------------------------------
   SECTIONS
------------------------------------------------------ */

section {
  padding: 90px 0;
}

.section.subtle {
  background: #fafafa;
}

.hero {
  text-align: center;
  padding: 130px 0 90px;
  background: #fafafa;
}

/* -----------------------------------------------------
   ENGINE / CORE CAPABILITIES
------------------------------------------------------ */

.engine-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .engine-block {
    grid-template-columns: 1fr 1fr;
  }
}

.engine-block > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.engine-block svg {
  margin-bottom: 14px;
}

.capability-problem {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-red);
}

/* -----------------------------------------------------
   PACKS (CAROUSEL)
------------------------------------------------------ */

/* --- PACK CAROUSEL FIX --- */

/* PACK CAROUSEL FIX */
.pack-carousel {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
}

.pack-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-packs 45s linear infinite;
}

.pack-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.pack-carousel:hover .pack-track {
  animation-play-state: paused;
}
.pack-carousel::before,
.pack-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

.pack-carousel::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.pack-carousel::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

/* Keep motion subtle and premium */
@keyframes scroll-packs {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.pack-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes packScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* -----------------------------------------------------
   REASONOS COULD POWER
------------------------------------------------------ */

.power-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 800px) {
  .power-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.power-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.power-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.power-card .icon {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--ink);
}

/* -----------------------------------------------------
   LISTS
------------------------------------------------------ */

ul {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}

ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #333;
}

ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #aaa;
}

/* -----------------------------------------------------
   FOOTER
------------------------------------------------------ */

.site-footer {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--black);
}

/* -----------------------------------------------------
   ANIMATION
------------------------------------------------------ */

section,
.hero h1,
.hero p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 { animation-delay: 0.1s; }
.hero p  { animation-delay: 0.2s; }

.architecture-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.arch-node {
  text-align: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 180px;
}

.arch-core {
  border: 2px solid var(--ink);
  background: #fafafa;
}

.arch-title {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.arch-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.arch-arrow {
  font-size: 1.6rem;
  color: var(--ink-soft);
}

.architecture-visual {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.architecture-visual img {
  max-width: 60%;
  height: auto;
  border-radius: 12px;
}


.problem-visual {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.problem-visual img {
  max-width: 50%;
  height: auto;
  border-radius: 12px;
}

.youos-section {
  padding: 120px 0;
}

.youos-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.youos-copy h2 {
  margin-bottom: 24px;
}

.youos-copy p {
  max-width: 560px;
}

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

.youos-visual img {
  max-width: 100%;
  height: auto;
  opacity: 0.95;
}

/* Mobile */
@media (max-width: 900px) {
  .youos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .youos-visual {
    order: -1;
  }
}