/* ==============================
   Adora Robotics Website Styles
   ============================== */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f8fff;
  --border: #e2e8f0;
  --footer-bg: #0f172a;
  --max-width: 1080px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a.active {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

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

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.note {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  background: #fff;
}

.feature h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.feature p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- AdoraLearn / Intelligence ---------- */
.adoralearn,
.intelligence {
  background: #f8fafc;
  border: 1px solid #eff3f9;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 1.3rem;
}

.pricing-tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  background: #fff;
}

.pricing-tier h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.price {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Demo / Video ---------- */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Waitlist / Form ---------- */
.waitlist {
  background: #f8fafc;
  border: 1px solid #eff3f9;
  border-radius: var(--radius-lg);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-card label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: rgba(15, 143, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(15, 143, 255, 0.1);
}

.form-card button {
  margin-top: 0.4rem;
  align-self: flex-start;
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 1.4rem 1.5rem 2.4rem;
  margin-top: 2rem;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
}

.footer a:hover {
  opacity: 1;
}

/* ---------- 3-Column Gallery ---------- */
.gallery-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.gallery-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  align-items: flex-start;
}

.gallery-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gallery-color-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}

.gallery-color-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: -0.3rem;
  margin-bottom: 0.3rem;
}

.gallery-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  max-width: 260px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.gallery-item figcaption {
  padding: 0.45rem 0.6rem 0.55rem;
  font-size: 0.8rem;
  color: #0f172a;
  text-align: center;
}

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

/* tablets / small laptops */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .gallery-columns {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .gallery-item img {
    max-width: 240px;
    max-height: 200px;
  }
}

/* phones */
@media (max-width: 600px) {
  .gallery-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.3rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section {
    padding-inline: 1.1rem;
  }

  .form-card {
    max-width: 100%;
  }

  .gallery-item img {
    max-width: 220px;
    max-height: 190px;
  }
}

.media-section {
  padding: 4rem 1.5rem;
  background: #0f172a; /* dark blue like your Nyx theme */
  color: #fff;
}

.media-section .container {
  max-width: 820px;
  margin: 0 auto;
}

.media-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.media-subtitle {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.nyx-audio {
  width: 100%;
  margin-bottom: 1.5rem;
}

.lyrics-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem 1rem;
}

.lyrics-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.lyrics {
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 240px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lyrics.expanded {
  max-height: 1000px;
}

.lyrics-toggle {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.8rem;
}

.lyrics-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* mobile */
@media (max-width: 640px) {
  .media-section {
    padding: 3rem 1rem;
  }
  .lyrics {
    max-height: 180px;
  }
}


/* ---------- Life Assistant Highlight ---------- */
.life-assistant {
  background: #f0f7ff;
  border: 1px solid #e0efff;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}
.la-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 0.8rem;
}
.la-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.la-card h3 { margin: 0.2rem 0 0.4rem; font-size: 1.02rem; }
.la-card p { margin: 0 0 0.5rem; color: var(--muted); }
.la-card ul { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.la-emoji { font-size: 1.2rem; }
@media (max-width: 600px){
  .life-assistant { border-radius: var(--radius-md); }
}

/* === Nyx Proactive Intelligence Section Styles === */

/* Highlight card for the main section */
.card.highlight {
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  border-left: 4px solid #0059ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  border-radius: 1rem;
}
.card.highlight h3 {
  color: #0034a3;
  margin-bottom: 0.75rem;
}
.card.highlight blockquote {
  border-left: 3px solid #0059ff;
  margin-top: 1rem;
  padding-left: 1rem;
  font-style: italic;
  color: #002b7f;
}

/* Warm example box inside the highlight card */
.example {
  background: linear-gradient(135deg, #fff9f3 0%, #fff4e6 100%);
  border-left: 4px solid #ff9b42;
  padding: 1.2rem 1.5rem;
  border-radius: 0.75rem;
  margin: 1.2rem 0;
  font-size: 0.96rem;
  line-height: 1.65;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease-in-out;
}
.example:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.example strong {
  color: #c04a00;
  font-weight: 600;
}

/* Emphasized conclusion line inside the example box */
.example-conclusion {
  display: block;
  margin-top: 0.6rem;
  padding-left: 0.5rem;
  border-left: 3px solid #ffb472;
  color: #a94c00;
  font-style: italic;
}

/* Sub-example or follow-up paragraph */
.example-sub {
  margin-top: 0.8rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #ffd2a6;
}

/* === Mobile tuning for Proactive Intelligence section === */
@media (max-width: 700px) {
  /* 整体卡片：缩小左右内边距、减细左边框、加外边距 */
  .card.highlight {
    margin: 0.75rem 0.75rem;
    padding: 1rem 0.95rem 1.1rem;
    border-left-width: 3px;
    border-radius: 0.9rem;
  }
  .card.highlight h3 {
    font-size: 1.06rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
  }
  .card.highlight p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .card.highlight blockquote {
    margin-top: 0.9rem;
    padding-left: 0.75rem;
    border-left-width: 2px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* 示例框：减少左右内边距与阴影、标题独占一行、更好分段 */
  .example {
    margin: 0.9rem 0;
    padding: 0.9rem 1rem;
    border-left-width: 3px;
    box-shadow: none;
    font-size: 0.92rem;
    line-height: 1.58;
  }
  .example strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.94rem;
  }
  .example-conclusion {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left-width: 2px;
  }
  .example-sub {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
  }
}
