/* ─── Variables & Reset ─── */
:root {
  --bg-color: #fcf6eb;
  /* Soft, warm linoleum cream */
  --card-bg: #f9f2e4;
  --border-color: #f0e6cf;

  --text-main: #141414;
  --text-muted: #6b6b6b;
  --brand-red: #d10000;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --glass-bg: rgba(251, 246, 237, 0.7);
  --glass-border: rgba(251, 246, 237, 0.3);
  --header-height: 70px;
}

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

/* =========================================================================
   GLOBAL NAVIGATION
   ========================================================================= */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  transition: transform 0.3s ease;
}

.global-nav.scrolled-down {
  transform: translateY(-100%);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  height: 32px;
  margin-right: 12px;
  border-radius: 8px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-accent);
}

/* ─── Hamburger Menu (Mobile) ─── */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 8px;
  z-index: 1001;
  /* Above the nav links */
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-main);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--card-bg);
    /* Opaque background for mobile menu */
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.active {
    right: 0;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Base Layout */
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  /* Kept original text-main */
  font-family: var(--font-sans);
  /* Kept original font-sans */
  line-height: 1.5;
  /* Added line-height */
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  /* Added padding-top */
  min-height: 100vh;
  /* Kept original min-height */
  display: flex;
  flex-direction: column;
}

/* ─── Navigation ─── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5%;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.btn-primary {
  background: var(--brand-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary.large {
  padding: 16px 36px;
  font-size: 16px;
}

/* ─── Hero Section ─── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 5% 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 540px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* ─── Phone Mockup Frame ─── */
.phone-frame {
  width: 320px;
  height: 693px;
  background: #000;
  border-radius: 46px;
  padding: 10px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), inset 0 0 0 2px #333;
}

.phone-frame.small {
  width: 280px;
  height: 606px;
  border-radius: 40px;
}

.screen-img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
  background-color: #fff;
}

.phone-frame.small .screen-img {
  border-radius: 30px;
}

.content-sections {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 80px;
}

.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.split-text {
  flex: 1;
  max-width: 500px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Uses Cases Card */
.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 60px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  background: var(--bg-color);
  padding: 30px 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.list-icon {
  font-size: 32px;
  background: var(--card-bg);
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.feature-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer p {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.social-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.social-links a {
  display: inline-block;
  padding: 8px;
  /* enlarge click area */
}

.social-links a svg {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover svg {
  color: #111;
  transform: translateY(-1px);
}

/* ─── Lyrics Card ─── */
.lyrics-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lyrics-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.lyrics-card h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #111;
  text-align: center;
}

.lyrics-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 16px;
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lyrics-scroll p {
  margin-bottom: 16px;
}

.lyrics-scroll strong {
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lyrics-scroll::-webkit-scrollbar {
  width: 6px;
}

.lyrics-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.lyrics-scroll::-webkit-scrollbar-thumb {
  background: #d6cfbf;
  border-radius: 10px;
}

/* ─── Animations ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {

  .hero,
  .split-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text,
  .split-text {
    margin: 0 auto;
  }

  .split-section.reverse {
    flex-direction: column;
  }

  .card-icon {
    margin: 0 auto 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================================================
   APP EXPERIENCE LIVE MOCKUPS
   ========================================================================= */

.app-device-frame {
  width: 393px;
  background: linear-gradient(rgba(252, 248, 235, 0.7), rgba(252, 248, 235, 0.7)), url('images/white-leather-texture.jpg');
  background-size: cover;
  border: 12px solid #111;
  border-radius: 54px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #333;
  height: 852px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  transform: scale(0.85);
  /* Scale down slightly to fit standard laptop screens better */
  transform-origin: top center;
}

@media (max-width: 900px) {
  .app-device-frame {
    transform: scale(0.75);
  }
}

.app-device-frame * {
  box-sizing: border-box;
}

.app-status-bar {
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 32px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  z-index: 10;
}

.app-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 37px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}

.app-content {
  flex: 1;
  overflow-y: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* Gallery Component */
.app-gallery-header {
  text-align: center;
  padding: 8px 16px 16px;
  position: relative;
}

.app-gallery-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-serif);
  color: #1A1A1A;
  letter-spacing: 0.5px;
}

.app-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow-y: auto;
  padding-bottom: 24px;
}

.app-gallery-grid::-webkit-scrollbar {
  display: none;
}

.app-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-image-container {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ECEAE6;
  border: 1px solid rgba(30, 25, 20, 0.05);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.05);
}

.app-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-signs {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
  text-align: center;
}

/* Match Component */
.app-match-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.app-portraits-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: 48px;
}

.app-portrait {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 80px;
  overflow: hidden;
  border: 4px solid #ECEAE6;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.15);
}

.app-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-portrait-left {
  left: 0;
  top: 0;
  z-index: 2;
}

.app-portrait-right {
  right: 0;
  bottom: 0;
  z-index: 1;
}

.app-connection-graphic {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(252, 248, 235, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(209, 0, 0, 0.1);
}

.app-match-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brand-red);
  font-size: 42px;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

/* Chat Component */
.app-chat-header {
  display: flex;
  align-items: center;
  padding: 16px 20px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(252, 248, 235, 0.8);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.app-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid #ECEAE6;
}

.app-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-chat-content {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-chat-content::-webkit-scrollbar {
  display: none;
}

.app-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.app-msg-row.sent {
  flex-direction: row-reverse;
}

.app-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-bubble {
  max-width: 70%;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.4;
  border-radius: 24px;
  color: #1A1A1A;
}

.app-bubble.received {
  background-color: #FFFFFF;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(30, 25, 20, 0.05);
}

.app-bubble.sent {
  background-color: #ECEAE6;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(30, 25, 20, 0.05);
}

.app-input-area {
  padding: 16px 20px 40px;
  background: rgba(252, 248, 235, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-input-box {
  flex: 1;
  height: 44px;
  background-color: #ECEAE6;
  border-radius: 22px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #6B6B6B;
  border: 1px solid rgba(26, 26, 26, 0.15);
}
/* Tiers specific styles moved to global */
.tier-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tier-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.tier-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 32px;
}

.tier-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.tier-features li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    position: relative;
    padding-left: 32px;
    line-height: 1.5;
}

.tier-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-size: 1.2rem;
    line-height: 1.5;
}

.nuclear-badge {
    position: absolute;
    top: 24px;
    right: -32px;
    background: #111;
    color: #fff;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(45deg);
}
